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.
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
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();
}