[Skip to main content](#vessel-content)

#   Badges on Category Images

##

- **[Ginius](/forum/user/39267-ginius "View Ginius's Profile")**
- [![Ginius's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39267-ginius "View Ginius's Profile") Topic Author
- [ Offline](/forum/user/39267-ginius)

Less More

- Posts: 52
- Thank you received: 4
-
-

4 years 1 month ago [\#345333](#345333) by [Ginius](/forum/user/39267-ginius "View Ginius's Profile")  *[Badges on Category Images](/forum/26-product-category-display/905118-badges-on-category-images#345333 "-- url of the page with the problem -- :   www.autovakshop.nl  I know it's possible to place badges on products (in product view), but I also like to place badges on category images. Is that possible?")* was created by *[Ginius](/forum/user/39267-ginius "View Ginius's Profile")*

-- url of the page with the problem -- : [ www.autovakshop.nl](http://www.autovakshop.nl)

I know it's possible to place badges on products (in product view), but I also like to place badges on category images.
Is that possible?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDUxMTgtYmFkZ2VzLW9uLWNhdGVnb3J5LWltYWdlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14290
-
-

4 years 1 month ago [\#345336](#345336) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Badges on Category Images](/forum/26-product-category-display/905118-badges-on-category-images#345336 "-- url of the page with the problem -- :   www.autovakshop.nl  I know it's possible to place badges on products (in product view), but I also like to place badges on category images. Is that possible?")*

Hi,

There is no option for that by default in HikaShop.
You could create a custom field of the table "category" and of the type "ajax image" so that you could add badge images to categories.
Then, with a bit of PHP code in a view override and a bit of CSS to place the image from the custom field on top of the category image on the listing, it should be doable. So with basic PHP/CSS skills, it should be possible.
Now, to have something more generic, like for example the possible to display several badges on a category, the possibility to have restrictions, like only display the badge if all the products in the category are out of stock, etc, that would be way more complex.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDUxMTgtYmFkZ2VzLW9uLWNhdGVnb3J5LWltYWdlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Ginius](/forum/user/39267-ginius "View Ginius's Profile")**
- [![Ginius's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/39267-ginius "View Ginius's Profile") Topic Author
- [ Offline](/forum/user/39267-ginius)

Less More

- Posts: 52
- Thank you received: 4
-
-

4 years 1 month ago [\#345367](#345367) by [Ginius](/forum/user/39267-ginius "View Ginius's Profile")  Replied by *[Ginius](/forum/user/39267-ginius "View Ginius's Profile")* on topic *[Badges on Category Images](/forum/26-product-category-display/905118-badges-on-category-images#345367 "-- url of the page with the problem -- :   www.autovakshop.nl  I know it's possible to place badges on products (in product view), but I also like to place badges on category images. Is that possible?")*

Thanks Nicolas,

can't I reuse somethng like this on categories?

if(!empty($this-&gt;element-&gt;badges))
$html .= $this-&gt;classbadge-&gt;placeBadges($this-&gt;image, $this-&gt;element-&gt;badges, '0', '0',false);

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDUxMTgtYmFkZ2VzLW9uLWNhdGVnb3J5LWltYWdlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14290
-
-

4 years 1 month ago [\#345369](#345369) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Badges on Category Images](/forum/26-product-category-display/905118-badges-on-category-images#345369 "-- url of the page with the problem -- :   www.autovakshop.nl  I know it's possible to place badges on products (in product view), but I also like to place badges on category images. Is that possible?")*

Unfortunately, it's not that easy because the $this-&gt;element-&gt;badges variable is not available for a category because categories don't have badges in HikaShop normally.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDUxMTgtYmFkZ2VzLW9uLWNhdGVnb3J5LWltYWdlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[joomleb](/forum/user/2322-joomleb "View joomleb's Profile")**
- [![joomleb's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/2322-joomleb "View joomleb's Profile")
- [ Offline](/forum/user/2322-joomleb)

Less More

- Posts: 461
- Thank you received: 36
-
-

4 years 2 weeks ago [\#345989](#345989) by [joomleb](/forum/user/2322-joomleb "View joomleb's Profile")  Replied by *[joomleb](/forum/user/2322-joomleb "View joomleb's Profile")* on topic *[Badges on Category Images](/forum/26-product-category-display/905118-badges-on-category-images#345989 "-- url of the page with the problem -- :   www.autovakshop.nl  I know it's possible to place badges on products (in product view), but I also like to place badges on category images. Is that possible?")*

Hi guys,

+1 to have the "Badges feature" working also for Category

The following user(s) said Thank You: [nicolas](/forum/user/63-nicolas "View nicolas's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDUxMTgtYmFkZ2VzLW9uLWNhdGVnb3J5LWltYWdlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.064 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
