• Resolved Emil K

    (@ghostspirit)


    Hi there,

    I’m trying to get this plugin to play nice on my website, with the goal of replacing the Acowebs Label plugin.

    However, after activating the Advanced Woo Labels plugin and making a label, the product image disappears from the main shop overview. I’m using the Neve Pro theme, not sure if that’s what’s causing problems here.

    The problem with missing product image ONLY happens on the main shop overview – the single product pages works just fine.

    See screenshots here showing the behaviour with the plugin turned on and off: https://imgur.com/a/8p0eXcX

    I hope you can help – if I can get this to work, I’ll ditch the Acowebs Label plugin and move to using your plugin instead, it looks far more flexible!

    • This topic was modified 2 years, 1 month ago by Emil K.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Emil K

    (@ghostspirit)

    Following up on this: I’ve added this

    add_filter( 'awl_labels_hooks', 'awl_labels_hooks' );
    function awl_labels_hooks( $hooks ) {
         $hooks['on_image']['archive'] = array( 'woocommerce_before_shop_loop_item' => array( 'priority' => 10 ) );
        return $hooks;
    }

    as a snippet, and it seems to have fixed the problem.

    I guess the real question is now whether this is a good solution, or if there’s a better fix?

    Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    Yes, your solutions looks good. I will check the problem with this theme and maybe also release a fix. But for now you can just use your code snippet.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Product Image disappears after setting hook’ is closed to new replies.