• I have found an issue with YITH Request A Quote not showning Extra Product Options for Woocommerce (https://themehigh.com/) fields.

    I’m using Astra Pro 4.0.2, Elementor Pro 3.10.2, Extra product options For WooCommerce Pro 3.1.9, YITH Request a Quote for WooCommerce 2.17.0.

    I have over-ridden the standard Astra Single Product Page with a custom Elementor template, and using a shortcode to display the ‘Request Quote’ button. The Extra fields show correct with ‘Add to Cart’, but when that is replaced with “Request Quote’ the fields do not show at all.

    I found a another support ticket that explains the problem as being due to the ‘Request Quote’ button not calling the woocommerce_before_add_to_cart_button hook. https://wordpress.org/support/topic/not-working-with-elementor-33/

    I have changed my shortcode to work around this, which has corrected the problem. Please consider adding the woocommerce hooks to the ‘Request Quote’ button as if it is replacing the ‘Add to Cart’ button it should support the same functionality. Thanks.

    /**
    * Shortcode to show Yith Request Quote button
    * 
    * usage: add [yith_request_quote_elementor] shortcode
    *
    * https://github.com/elementor/elementor/issues/5739
    * 
    * Add Woocommerce hooks for Extra product options For WooCommerce
    * https://wordpress.org/support/topic/not-working-with-elementor-33/
    * 
    * @since    1.0.0
    */
    	function yith_request_quote_elementor_shortcode()
    	{
    		if ( ! class_exists( 'YITH_YWRAQ_Frontend' ) ) {
    			return '';
    		}
    		
    		ob_start();
    
    		do_action( 'woocommerce_before_add_to_cart_button' );
    
    		YITH_YWRAQ_Frontend::get_instance()->add_button_single_page();
    		
    		do_action( 'woocommerce_after_add_to_cart_button' );
    		
    		return ob_get_clean();
    	}
    

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Alberto Martin

    (@albertomrtn)

    Hi @paulshipley, thanks for the feedback, we will analyze the possibility of adding it in future versions.

    Thread Starter PaulShipley

    (@paulshipley)

    Thank you. Appreciated.

    I have an almost identical problem with the same plugins. I am using Elementor Pro but did not change the Single Product Page. How do I implement the above function? I added function code to the functions.php page in the Template Child but where would I add the [yith_request_quote_elementor] shortcode?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Extra Product Options for Woocommerce fields not shown with YITH Request A Quote’ is closed to new replies.