• Hey guys. When the plugin is activated, the buttons appear duplicated on the product page.
    Please help me with this!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Leanza Francesco

    (@leanzafrancesco)

    Hi,
    and thank you for writing in!

    We’ve just checked your site and it seems you set your single product page with Elementor.
    You see the waiting list shown twice, since probably in your template you used both “Product Stock” and “Add To Cart” widget; and in this case the “waiting list” info is shown in both of them.
    You can hide the second one by adding the following code snippet to Appearance > Customize > Additional CSS

    .elementor-widget-jet-single-add-to-cart #yith-wcwtl-output{
        display: none;
    }

    Otherwise, you can prevent printing more than one waiting-list form in single product pages, by adding the following code snippet to your theme functions.php

    if ( ! function_exists( 'yith_wcwtl_customization_prevent_double_form_in_single_product' ) ) {
    	function yith_wcwtl_customization_prevent_double_form_in_single_product( $form_html ) {
    		static $printed = false;
    		if ( function_exists( 'is_product' ) && is_product() ) {
    			if ( $printed ) {
    				$form_html = '';
    			}
    			$printed = true;
    		}
    
    		return $form_html;
    	}
    
    	add_filter( 'yith_wcwtl_form_html', 'yith_wcwtl_customization_prevent_double_form_in_single_product', 10, 1 );
    }

    Please try these solutions and let us know if everything works fine!

Viewing 1 replies (of 1 total)
  • The topic ‘Double buttons on waitlist’ is closed to new replies.