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

How can I add an image as an extra field in 4.x? Or can I?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-07-2005, 12:49 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default How can I add an image as an extra field in 4.x? Or can I?

I'm trying to add a manufacturer logo (gif image) to each product I sell, but cannot figure out how. I want the image (approximately 100 x 30) to rest on top of the Title of the product a person is viewing. Can anyone tell me how to do this? Thank you.
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
  #2  
Old 07-08-2005, 09:03 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

How about hard-coding it into the description?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-09-2005, 04:16 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

How would I do that exactly? I have about 40 different manufacturers with logos.
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
  #4  
Old 07-09-2005, 04:30 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Just call the image in your description using standard html.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 07-09-2005, 04:59 PM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Yeah, but what I mean is, I have about 2000 items now and don't want to go through each one individually if possible.
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
  #6  
Old 07-10-2005, 04:54 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

Maybe I am being thick here, but isn't that exacly what "Manufacturers" is for in 4.x?

You can add an image there for each manufacturer then just insert the proper variables in the product.tpl file where you want to see the logo.
Reply With Quote
  #7  
Old 07-11-2005, 02:22 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Thanks for the help too TelaFirma, very appreciated. How exactly would I do it as to not go through each item one by one? Also, what would be a sample code to use? Thanks.
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
  #8  
Old 07-11-2005, 04:28 AM
  TelaFirma's Avatar 
TelaFirma TelaFirma is offline
 

X-Adept
  
Join Date: Nov 2002
Location: North Carolina USA
Posts: 930
 

Default

You would need to set the images within Admin and then I would update all the products using an import.
Reply With Quote
  #9  
Old 07-26-2005, 07:44 AM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default

I did this by putting

Code:
[img]mlogo.php?manufacturerid={$manufacturerid.manufacturerid}[/img]

wherever you need the manufacturer's logo to display in product.tpl. If you would like the logo to link to the page that views all of the manufacturer's products, use

Code:
<a href="manufacturers.php?manufacturerid={$manufacturerid.manufacturerid}"> [img]mlogo.php?manufacturerid={$manufacturerid.manufacturerid}[/img]</a>

Make sure you put the manufacturer's logo's in the admin side for this to display correctly. Otherwise, default_image.gif will show up.

An example of it in action:

http://www.heritagetoys.com/product.php?productid=16840&cat=0&page=1
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote
  #10  
Old 08-01-2005, 03:36 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Thank you very much!
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not 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 02:13 AM.

   

 
X-Cart forums © 2001-2020