• Good morning,

    I am using YITH Request a Quote for WooCommerce and YITH WooCommerce Catalog Mode free versions and I have a question with YITH Request a Quote for WooCommerce please.

    When single product page for a variable product, loads the first time, the button add to quote is displayed. If user does not select a variable , the following error is displayed:
    Error occurred while adding product to Request a Quote list.
    All works well when selecting a variable. Also, if I clear the variable selection the add to quote button disappears.

    Is it possible to change the error text please? To inform user why he/she is getting an error?

    Thanks,
    Dan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dangauc

    (@dangauc)

    As a quick fix I added html to the “Add to Quote” label in plugin’s General Options as follows:

    <i class=”fa-solid fa-plus”></i> Add Product To Quote </br><span style=”font-size:10px;”>Kindly select a finish before adding to quote</span>

    Plugin Support Carlos M

    (@cjmora)

    Hi Dan,

    It’s possible to change the error message by adding the following code to the functions.php file of your child theme or to a Code Snippets plugin:

    add_filter( 'yith_ywraq_error_adding_to_list_message', function() {
    	return 'Your error message';
    } );

    Substitute the text “Your error message” with the text you prefer for the error message.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error with variable product’ is closed to new replies.