Show Badge When Item Is Not In Category

  • Posts: 966
  • Thank you received: 11
9 years 7 months ago #229275

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.8

I am using a badge on pre-owned items so that when they show anywhere on the site the badge is there to inform users that the item is pre-owned. It works fine except that I do not want the badge showing when the items are on the "pre-owned" page - it's looks redundant.

If you look at the page pre-owned page you will see that all the items are showing the pre-owned badge - I do not want that. However, I want the badge to show when the items are showing elsewhere on the site.

How can I change that please?

Thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 7 months ago #229276

Hi,

Go in the menu manager of Joomla, edit that menu item and turn off the "show badges" setting there.
That way, it will only remove the badges from that listing.

Please Log in or Create an account to join the conversation.

  • Posts: 966
  • Thank you received: 11
9 years 7 months ago #229464

Perfect! Thank you very much. :)

Please Log in or Create an account to join the conversation.

  • Posts: 966
  • Thank you received: 11
9 years 5 months ago #235378

Sorry nicolas,

I just realized something.

Although I don't want the "preowned" badge to show on the "preowned" page, when a preowned item is "sold out" I would like the "sold out" badge to show on the preowned page, but it is not showing.

Thank you!

Please Log in or Create an account to join the conversation.

  • Posts: 84307
  • Thank you received: 13701
  • MODERATOR
9 years 5 months ago #235401

Hi,

It's not showing since the badge setting of the menu item is turned off.
Turn it on and you'll see it.
But if you don't want the preowned badge there, then the only solution is to modify the file administrator/components/com_hikashop/classes/badge.php with custom code to not take into account the preowned badges on that page.

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum