Tagged: woocommerce
-
AuthorPosts
-
August 16, 2017 at 2:24 pm #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-838908Now 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,
BirgerAugust 16, 2017 at 2:27 pm #839880This reply has been marked as private.August 18, 2017 at 1:15 pm #840853Hi Birger,
Wordpress credentials did not work for me. Could you please update the credentials.
Best regards,
VictoriaAugust 18, 2017 at 2:14 pm #840874Hi Victoria,
there was a typo in the password… now it works!
August 19, 2017 at 9:16 pm #841422Hi Birger,
Try adding this code to your functions.php
add_action( 'woocommerce_before_single_product', 'woocommerce_show_messages', 15 );
Best regards,
VictoriaAugust 19, 2017 at 9:27 pm #841427Hi Victoria,
just tried your code, but no difference :(
I put it into my cild-themes functions.php
August 22, 2017 at 9:23 pm #842780Hi,
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,
BasilisAugust 24, 2017 at 12:27 am #843327Hi 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,
BirgerAugust 28, 2017 at 5:13 pm #844891Hi,
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,
BasilisAugust 29, 2017 at 10:40 am #845266Hi 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
BirgerAugust 29, 2017 at 11:40 am #845285Hi 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.
September 2, 2017 at 8:09 pm #847219September 3, 2017 at 10:02 am #847354Hi Mike,
yes, you can close this thread.
Greetz,
Birger -
AuthorPosts
- You must be logged in to reply to this topic.