Viewing 1 replies (of 1 total)
  • Plugin Author WisdmLabs

    (@wisdmlabs)

    Hello,

    Try with placing this code in the file ‘product-enquiry-for-woocommerce.php’ of this plugin:

    add_filter('external_add_to_cart_text', 'wdm_replace_external_with_enquiry', 1, 99);
    
    function wdm_replace_external_with_enquiry($button){
    
        $form_data = get_option( 'wdm_form_data');
    
        $button = empty($form_data['custom_label']) ? 'Make an enquiry for this product' : $form_data['custom_label'];
    
        return $button;
    }

    This will change the label ‘Read More’ to label of enquiry button. However, it will not show you the enquiry form on click on shop page. The button will still redirect to the individual product page only.

    Thanks,
    WisdmLabs Team

Viewing 1 replies (of 1 total)
  • The topic ‘I need urgently help please’ is closed to new replies.