• Resolved AngeloLazzari

    (@angelolazzari)


    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 to see the link]

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

    (@dualcube)

    Hi @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

    (@angelolazzari)

    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

    (@dualcube)

    Hi @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.