Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

How to Add Images as product Tags

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 09-15-2019, 08:33 AM
  johngwms's Avatar 
johngwms johngwms is offline
 

Senior Member
  
Join Date: Mar 2013
Location: North Wales
Posts: 191
 

Default 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?
__________________
John Legg
www.TheDebugStore.com

5.4.1.18 Business, Crisp White Skin Template
Backorder-Preorder Module
X-Cart to Zoho Creator (in progress)
Zoho Creator <-> Zoho Inventory for order processing
NGINX hosted - XC virtual server
Reply With Quote
  #2  
Old 09-15-2019, 09:11 AM
 
Ed B. Ed B. is offline
 

X-Adept
  
Join Date: Apr 2016
Posts: 446
 

Default 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?
__________________
X-cart 5.2.12, php 5.6
Ed from Grenoble, France
Reply With Quote
  #3  
Old 09-15-2019, 09:16 AM
  johngwms's Avatar 
johngwms johngwms is offline
 

Senior Member
  
Join Date: Mar 2013
Location: North Wales
Posts: 191
 

Default Re: How to Add Images as product Tags

Hi Ed

No, it is the Product Tags functionality provided by the X-Cart add-on.
__________________
John Legg
www.TheDebugStore.com

5.4.1.18 Business, Crisp White Skin Template
Backorder-Preorder Module
X-Cart to Zoho Creator (in progress)
Zoho Creator <-> Zoho Inventory for order processing
NGINX hosted - XC virtual server
Reply With Quote
  #4  
Old 09-15-2019, 10:10 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default 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.
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
johngwms (09-15-2019)
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:23 AM.

   

 
X-Cart forums © 2001-2020