X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (X-Cart 5) (https://forum.x-cart.com/forumdisplay.php?f=56)
-   -   How to Add Images as product Tags (https://forum.x-cart.com/showthread.php?t=77170)

johngwms 09-15-2019 08:33 AM

How to Add Images as product Tags
 
The tag functionality on product pages is great. However, I would like to add small images as well as text tags.

These will make products belonging to a certain family, such as having a USB interface stand-out better.

Can anyone suggest how I can adapt the Tag functionality to achieve this?

Ed B. 09-15-2019 09:11 AM

Re: How to Add Images as product Tags
 
I don't want to sound stupid, but where does the "tag functionality" come from? You are certainly not talking about product->Marketing->OpenGraph meta tags, are you?

johngwms 09-15-2019 09:16 AM

Re: How to Add Images as product Tags
 
Hi Ed

No, it is the Product Tags functionality provided by the X-Cart add-on.

cflsystems 09-15-2019 10:10 AM

Re: How to Add Images as product Tags
 
You will have to code custom module and decorate the existing Tag model to add image to it. Then decorate the Views etc to account for the image.
One problem you will have is one product can have many tags so you have to think about what/where will show as image. Right now the tags show as text list only. So where will the image show with that list is up to the custom module.
Definitely possible although from customer point of view i don't really see the benefit.

And by the way if you go that route may I suggest adding text field (or another) instead of an image and reference an svg - it is so much easier on page load.


All times are GMT -8. The time now is 06:42 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.