Title: Version 1.13 issue
Last modified: January 21, 2021

---

# Version 1.13 issue

 *  [sandras21](https://wordpress.org/support/users/sandras21/)
 * (@sandras21)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/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?

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

 *  Plugin Author [ILLID](https://wordpress.org/support/users/mihail-barinov/)
 * (@mihail-barinov)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/version-1-13-issue/#post-13941919)
 * 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 )?
 *  Thread Starter [sandras21](https://wordpress.org/support/users/sandras21/)
 * (@sandras21)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/version-1-13-issue/#post-13942263)
 * 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.
 *  [seoaboles](https://wordpress.org/support/users/seoaboles/)
 * (@seoaboles)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/version-1-13-issue/#post-13942339)
 * 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/](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.
 *  Plugin Author [ILLID](https://wordpress.org/support/users/mihail-barinov/)
 * (@mihail-barinov)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/version-1-13-issue/#post-13946594)
 * [@sandras21](https://wordpress.org/support/users/sandras21/) [@seoaboles](https://wordpress.org/support/users/seoaboles/)
 * 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.
 *  [seoaboles](https://wordpress.org/support/users/seoaboles/)
 * (@seoaboles)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/version-1-13-issue/#post-13949179)
 * 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.
    -  This reply was modified 5 years, 3 months ago by [seoaboles](https://wordpress.org/support/users/seoaboles/).
    -  This reply was modified 5 years, 3 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
      Reason: please use CODE button for proper formatting
 *  [seoaboles](https://wordpress.org/support/users/seoaboles/)
 * (@seoaboles)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/version-1-13-issue/#post-13949201)
 * 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](https://wordpress.org/support/users/seoaboles/).
 *  Plugin Author [ILLID](https://wordpress.org/support/users/mihail-barinov/)
 * (@mihail-barinov)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/version-1-13-issue/#post-13949225)
 * [@seoaboles](https://wordpress.org/support/users/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](https://wordpress.org/support/topic/version-1-13-issue/support@advanced-woo-labels.com?output_format=md)
   email about this issue? I need some additional information.
 * Regards
 *  [seoaboles](https://wordpress.org/support/users/seoaboles/)
 * (@seoaboles)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/version-1-13-issue/#post-13949332)
 * Thank you again.
    I have emailed them. I will share their reply and hopefully
   resolution here once I have it.
 *  Plugin Author [ILLID](https://wordpress.org/support/users/mihail-barinov/)
 * (@mihail-barinov)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/version-1-13-issue/#post-13952352)
 * [@seoaboles](https://wordpress.org/support/users/seoaboles/)
 * Strange, can’t find your email. Can you please send it one more time?
 *  Thread Starter [sandras21](https://wordpress.org/support/users/sandras21/)
 * (@sandras21)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/version-1-13-issue/#post-13952856)
 * [@mihail-barinov](https://wordpress.org/support/users/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.
 *  [seoaboles](https://wordpress.org/support/users/seoaboles/)
 * (@seoaboles)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/version-1-13-issue/#post-13953387)
 * Resent email to [support@advanced-woo-labels.com](https://wordpress.org/support/topic/version-1-13-issue/support@advanced-woo-labels.com?output_format=md)

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

The topic ‘Version 1.13 issue’ is closed to new replies.

 * ![](https://ps.w.org/advanced-woo-labels/assets/icon-256x256.png?rev=3326325)
 * [Advanced Woo Labels - Product Labels & Badges for WooCommerce](https://wordpress.org/plugins/advanced-woo-labels/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-woo-labels/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-woo-labels/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-woo-labels/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-woo-labels/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-woo-labels/reviews/)

 * 11 replies
 * 3 participants
 * Last reply from: [seoaboles](https://wordpress.org/support/users/seoaboles/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/version-1-13-issue/#post-13953387)
 * Status: not resolved