• Resolved greentreefrog

    (@greentreefrog)


    Great plugin!

    I am having a problem, though, getting the badges to show on the shop page. If I switch to the Twenty Twenty-Four theme, they show just fine. Is there a particular class or id name the plugin needs in order to put the badge on the shop page?

    Badges show up on individual product pages just fine.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author AsanaPlugins

    (@asanaplugins)

    Hi @greentreefrog,

    Thank you for using our plugin.

    We apologize for the inconvenience.

    Please follow the steps below:

    • Refer to the plugin settings in the General tab.
    • Check all possible values for the “Sale badge position on the archive page” if there is an issue on the archive products page.
    • If there is an issue on the product page, check all possible values for the “Sale badge position on the product page”.

    If the above tips do not help, please let us know which theme you are using.

    I hope this information is helpful.

    Best Regards

    Thread Starter greentreefrog

    (@greentreefrog)

    I am using the “Jace” theme, which I don’t believe is widely used. In any case, this theme seems to be relying on WooCommerce Blocks to list all the products on the shop page, which I believe uses AJAX to load the products. I tried every hook provided by your plugin and none of them worked for the shop page, probably because they rely on PHP hooks rather than AJAX.

    I did, however, play with some JavaScript to show my own badge. Unlike the latest “Twenty Twenty…” themes provided by WordPress, the Jace theme fails to add an “outofstock” class for out of stock items, but it does change the “Add Item” button text to “Read More”, so I was able to look for that within a JavaScript “MutationObserver”.

    Anyway, by the time I had the Shop page as I wanted it, I decided to add to my own custom plugin to take care of the single product page as well, which meant I didn’t need your plugin. However, I really liked your plugin and will consider it for other sites. As I said, it worked fine on the Twenty Twenty-Four, -Three and -Two themes, and it is easy enough for less-technical people to figure out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Incompatible theme’ is closed to new replies.