Version 1.13 issue
-
After I updated to the latest version 1.13, it did not display labels for the 1st product in every category. Rolled back to 1.12, all products have labels and everything correct. Using Astra pro childtheme. A bug?
-
Hello,
Strange, but I can’t reproduce this.
Can you please give me some more details:1. Do you use any page builder plugin to create this category pages?
2. You see this issue for all labels only only for certain ones ( for example – only with specific display conditions )?
Hello!
No page builders for category or shop page.
As we had the condition for all products -10, then I can say that yes, it was for that specific condition. No special display conditions for products.
The discount plugin we use is Easy WooCommerce Discounts – WooCommerce Dynamic Pricing & Shipping by Asanaplugins.I have the same issue, first product in every category wont display label. It displays correctly if I do a search. But if I choose any category from the menu the first product is missing the label.
http://nou.agrisorg.com/produse/
Using Elementor Pro. Advanced Woo labels, Perfect brands for Woocommerce, Post duplicater, Woo Commerce, WP all import and Yoast SEO are only plugins installed. A few of them have has a recent update, including Advanced Woo labels.
I reinstalled the Advanced Woo labels pluggin and recreated from scrach the label, condition is for any item on stock. I have tried to add extra conditions, but same issue.
Thanks.
Please try to do following thing: open advanced-woo-labels/includes/class-awl-label-display.php, find lines
if ( ! isset( $GLOBALS['product'] ) ) { return ''; } global $product;and replace with
global $product; if ( ! $product || ! is_object( $product ) || ! method_exists( $product, 'get_id' ) ) { return ''; }Please write me than about the results.
Thanks for providing above reply. This hasnt worked for me. I have replaced
if ( ! isset( $GLOBALS['product'] ) ) { return ''; } global $product;with
global $product; if ( ! $product || ! is_object( $product ) || ! method_exists( $product, 'get_id' ) ) { return ''; }but nothing has changed on the front end.
In the email I received it says to replace:
if ( ! isset( $GLOBALS['product'] ) ) { return ''; } global $product;with
global $product; if ( ! $product || ! is_object( $product ) || ! method_exists( $product, 'get_id' ) ) { return ''; }However I cant find the code that contains “039” in class-awl-display.php
If you can offer more support I would be greatfull. Thanks.
In the email I received it says to find a
isset( $GLOBALS['product'line and explained what to replace it with. However, I cant find that line.PS:
Although I have copy pasted the code from the email that includes the code with 039, once I click submit the website displayed just the general functions as showing in my previous post. No idea why.
And it does the same when i paste in this post. isset ( $ GLOBALS [ & # 039; product & #039 ;-
This reply was modified 5 years, 3 months ago by
seoaboles.
039 are just some encoding characters that appers in the email. All changes that you describe is correct, its just not working for some reason.
In this case can you please write diretly to support@advanced-woo-labels.com email about this issue? I need some additional information.
Regards
Thank you again.
I have emailed them. I will share their reply and hopefully resolution here once I have it.Strange, can’t find your email. Can you please send it one more time?
@mihail-barinov
I tried also to replace the code as you suggested but nothing changed in front end. Rolled again back to previous version, then everything ok with labels.Resent email to support@advanced-woo-labels.com
-
This reply was modified 5 years, 3 months ago by
The topic ‘Version 1.13 issue’ is closed to new replies.