Tagged: 

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #839879

    Hi Enfold Team,#

    it seems i have to ask again. (The last post was closed, because somebody aked another off-topic question and got an answer)
    https://kriesi.at/support/topic/woocommerceproduct-addons-no-errors-shown-at-avia-built-productlayouts/#post-838908

    Now my still existing problem:

    I’ve got a problem with NOT showing error-messages generated by WooCommerce with Product-Addons extension.
    If i use the standard product layout and editor the errors will be shown at top of the page, for example if the “size” of the product is not choosen.

    But if i built up the product layout with the Enfold AVIA editor the page just reloads, and no error is shown.

    Is the a possibility to fix this?

    Greetz,
    Birger

    #839880
    This reply has been marked as private.
    #840853

    Hi Birger,

    Wordpress credentials did not work for me. Could you please update the credentials.

    Best regards,
    Victoria

    #840874

    Hi Victoria,

    there was a typo in the password… now it works!

    #841422

    Hi Birger,

    Try adding this code to your functions.php

    
    add_action( 'woocommerce_before_single_product', 'woocommerce_show_messages', 15 );
    

    Best regards,
    Victoria

    #841427

    Hi Victoria,

    just tried your code, but no difference :(

    I put it into my cild-themes functions.php

    #842780

    Hi,

    The issue is happening, because Layout Builder is replacing the main functionality.
    Can you give us more details what errors are missing, so we can see which hook is and if we can generate it somewhere else please?

    Thank you

    Best regards,
    Basilis

    #843327

    Hi Basilis,

    thanks for your reply.
    I am using the official Woo extension “product addons” for creating input fields, select boxes and so on…
    So the missing errors should be displayed, if a required field is not answered/selected correctly.

    I’ve recently recognized, if you don’t input the size (required field) of the product (for example http://www.taisei-karategi.com/produkt/mizu-kopie)
    and put it into the basket, the page reloads without an error, but with a click on the basket, the error is shown there.
    But for the customer the error has to be shown at the product page ;)

    I’d like to give you a more professional description of my problem, but i’m really new to the WordPress/WooCommerce world.
    Just feel free to take a look at the project (logins are already posted) or ask/tell me where i have to look to give you needed information.

    Greetz,
    Birger

    #844891

    Hi,

    The project issue seems to be more related on the errors the plugin is throwing and not Enfold.
    we are using the main WooCommerce template files. Only if you have activated ALB to edit the Woo Products only then you might not be able to see the actual errors.

    Let me know if that is more clear

    Best regards,
    Basilis

    #845266

    Hi Basilis,

    yes I understand this. Without the ALB everything is working fine and the errors of the “Product Addons-Plugin” are shown if you
    dont fill out a requiered field.

    But it would be really nice if I could use the ALB for building up the products. So isn’t there a possibility the add somewhere some code, that ALB-built-products show the errors too?

    Greetz
    Birger

    #845285

    Hi Basilis,

    me again :) I found a solution.

    wc_print_notices(); is the code which is displaying the messages.
    So I created a shortcode in functions.php and put the shortcode into a code-block element on the ALB-product-page!

    function custom_shortcode_func() {
    	ob_start();
    	?>
    		
    	<?php
    	wc_print_notices();
    	$output = ob_get_clean();
        return $output;
    }
    add_shortcode('show_woo_errors', 'custom_shortcode_func');
    • This reply was modified 7 years, 2 months ago by SaikoSports.
    #847219

    Hi,
    Thank you for sharing your solution, shall we close this then?

    Best regards,
    Mike

    #847354

    Hi Mike,

    yes, you can close this thread.

    Greetz,
    Birger

Viewing 13 posts - 1 through 13 (of 13 total)
  • You must be logged in to reply to this topic.