Title: BUtton shortcode
Last modified: November 16, 2018

---

# BUtton shortcode

 *  Resolved [AngeloLazzari](https://wordpress.org/support/users/angelolazzari/)
 * (@angelolazzari)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/button-shortcode-7/)
 * Hi, we are using your free plugin, great plugin! a question: can we have a shortcode
   to place the button whereever we want int the product page?
 * Thank you
    Angelo
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbutton-shortcode-7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [DualCube](https://wordpress.org/support/users/dualcube/)
 * (@dualcube)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/button-shortcode-7/#post-10887651)
 * Hi [@angelolazzari](https://wordpress.org/support/users/angelolazzari/), thanks
   for reaching WCMp Support!!
 * Currently we don’t have shortcode. but you can callback `$WC_Woocommerce_Catalog_Enquiry-
   >frontend->add_form_for_enquiry_without_popup()` or `$WC_Woocommerce_Catalog_Enquiry-
   >frontend->add_form_for_enquiry()` function ( as per your catalog settings) in
   woocommerce hooks/filters.
 * Let us know if you have any further query.
 *  Thread Starter [AngeloLazzari](https://wordpress.org/support/users/angelolazzari/)
 * (@angelolazzari)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/button-shortcode-7/#post-10887913)
 * Hi, thank you for re quick response!
 * i’m not really familia with callbacks.. so can you please help me in orienting
   me on a solution to put the button on the single product page?
 * should be something like this?
 * add_action( ‘woocommerce_after_single_product_summary’, ‘bbloomer_custom_action’,
   5 );
 * function bbloomer_custom_action() {
    $WC_Woocommerce_Catalog_Enquiry->frontend-
   >add_form_for_enquiry(); }
 * thank you!
    Angelo
 *  [DualCube](https://wordpress.org/support/users/dualcube/)
 * (@dualcube)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/button-shortcode-7/#post-10894801)
 * Hi [@angelolazzari](https://wordpress.org/support/users/angelolazzari/), your
   code is right. Just use this function
 *     ```
       function bbloomer_custom_action() 
       {
       global $WC_Woocommerce_Catalog_Enquiry; 
       $WC_Woocommerce_Catalog_Enquiry->frontend->add_form_for_enquiry();
       }
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘BUtton shortcode’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-catalog-enquiry/assets/icon-256x256.png?rev=
   3283706)
 * [CatalogX - Catalog Mode, Enquiry & Quotes for WooCommerce](https://wordpress.org/plugins/woocommerce-catalog-enquiry/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-catalog-enquiry/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-catalog-enquiry/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-catalog-enquiry/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-catalog-enquiry/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-catalog-enquiry/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [DualCube](https://wordpress.org/support/users/dualcube/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/button-shortcode-7/#post-10894801)
 * Status: resolved