• Resolved azadbakhsh

    (@azadbakhsh)


    Hello,

    I am currently using the version 1.67, because when I update your plugin, the labels on the archive pages do not show. Please help

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    Please tell me the name of your current WordPress theme. Also – are you using any page builders to customize your archive pages??

    Regards

    Thread Starter azadbakhsh

    (@azadbakhsh)

    I am using Martfury theme.

    No, I just using the default archive page.

    Plugin Author ILLID

    (@mihail-barinov)

    As I understand it is a premium WordPress theme. Can you please send its file to [email protected] so I can test it?

    Thread Starter azadbakhsh

    (@azadbakhsh)

    Emailed.

    Please fix the problem

    Plugin Author ILLID

    (@mihail-barinov)

    The ZIP file was blocked by the email client. Can you please upload a file to some file hosting and then send me the link via email?

    Plugin Author ILLID

    (@mihail-barinov)

    Thanks, now I received it.

    What I found is that the labels for archive pages are working fine for me. Please tell me – are you using any page builder plugin to create those archive pages? If yes – what one and what blocks are you using to display WooCommerce products?

    Thread Starter azadbakhsh

    (@azadbakhsh)

    Hello,

    No I didn’t change the archive pages. Currently I am using the 1.67 version of your plugin which is working fine, but if I update it to the next version the labels not showing anymore.

    Plugin Author ILLID

    (@mihail-barinov)

    Thanks for your answer. But how do you create a shop main page? Is it some predefined layout of the Martfury theme?

    Thread Starter azadbakhsh

    (@azadbakhsh)

    Yes

    Plugin Author ILLID

    (@mihail-barinov)

    As I see this problem appears only for the ‘Recently Viewed Products Carousel‘ module. Other theme modules are working fine. So if it is possible – please replace this module with any other one.

    Also I will add a fix for this in the next plugin version. So you can just wait for it.

    Thread Starter azadbakhsh

    (@azadbakhsh)

    I found the problem. I used the below code on my function.php to sort my Products based on availability. This code have conflict with your plugin

    /** * WPML compatible * Sorting out of stock WooCommerce products – Order product collections by stock status, in-stock products first. */ class iWC_Orderby_Stock_Status { public function __construct() { // Check if WooCommerce is active if (in_array(‘woocommerce/woocommerce.php’, apply_filters(‘active_plugins’, get_option(‘active_plugins’)))) { add_filter(‘posts_clauses’, array($this, ‘order_by_stock_status’), 2000); } } public function order_by_stock_status($posts_clauses) { global $wpdb; // only change query on WooCommerce loops if (is_woocommerce() && (is_shop() || is_product_category() || is_product_tag())) { $posts_clauses[‘join’] .= ” INNER JOIN $wpdb->postmeta istockstatus ON ($wpdb->posts.ID = istockstatus.post_id) “; $posts_clauses[‘orderby’] = ” istockstatus.meta_value ASC, ” . $posts_clauses[‘orderby’]; $posts_clauses[‘where’] = ” AND istockstatus.meta_key = ‘_stock_status’ AND istockstatus.meta_value <> ” ” . $posts_clauses[‘where’]; } return $posts_clauses; } } new iWC_Orderby_Stock_Status; /** * END – Order product collections by stock status, instock products first. */

    Plugin Author ILLID

    (@mihail-barinov)

    Looks like I found what causes this issue.

    It is possible to fix this problem by making some small changes in the plugin source code. I will also add the same changes in the next plugin release.

    So please open wp-content/plugins/advanced-woo-labels/includes/class-awl-helpers.php file, find line

    ‘suppress_filters’ => false,

    and replace it with

    ‘suppress_filters’ => true,

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘labels not showing on archive layout’ is closed to new replies.