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
  #11  
Old 08-07-2005, 02:52 AM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Quote:
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.

I apologize for the ignorance, can you explain how to put it on the admin side? (because of multiple manufacturers). Thank you.
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
  #12  
Old 08-07-2005, 03:05 AM
  HWT's Avatar 
HWT HWT is offline
 

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

Default

No problem at all. When you log in to your admin account, under the management menu on the left hand side, you will find "Manufacturers about 3rd down. Here you can create new manufacturers, change their display order, make them acitve/inactive. If you click on the name of a manufacturer, you can add a logo, description, and URL.

I've found with X-cart that the question "Where the #$%% do I find that setting?!?" to come up a lot.

you can surf around www.heritagetoys.com to see how it works w/multiple manufacuturers.
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote
  #13  
Old 09-04-2005, 09:07 PM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Thank you. The way you have your site set up with it is exactly what I needed too.
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
  #14  
Old 09-05-2005, 01:12 PM
 
bluecat bluecat is offline
 

X-Adept
  
Join Date: Nov 2002
Posts: 674
 

Default

Well, if I could ask one last question on this...

I have it displayed in product.tpl exactly how I want it. However, it still brings up the default image even though an image is added to the manufacturer. Is there something I'm missing?

Thank you
__________________
--------------------
X-Cart Gold 4.1.11
Linux/Apache
--------------------
Reply With Quote
  #15  
Old 09-05-2005, 02:33 PM
  HWT's Avatar 
HWT HWT is offline
 

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

Default

Check to make sure that you have not named a manufacturer in 2 different ways (example - Acme and Acme, inc.) and then associated all of your products with the manufacturer name that doesn't have a logo. Sounds silly, but that happened to me during a product import once. If its not that, then ???.
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote
  #16  
Old 10-01-2005, 03:23 PM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default you have to add this

You have to add this to your product.php otherwise it won't work.
Code:
$manufacturer = func_query_first("SELECT manufacturer,image,image_type,manufacturerid FROM $sql_tbl[manufacturers] WHERE manufacturerid='$product_info[manufacturerid]'"); $smarty->assign("manufacturer", $manufacturer); { } $manufacturerid = func_query_first("SELECT manufacturerid FROM $sql_tbl[products] WHERE manufacturerid='$product_info[manufacturerid]'"); $smarty->assign("manufacturerid", $manufacturerid);{ }

right above
Code:
$smarty->assign("product",$product_info);

by default the manufacturer image is not called as a variable. I did it on my site and it works great.

good luck
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote
  #17  
Old 10-05-2005, 05:53 AM
  pctechtoys's Avatar 
pctechtoys pctechtoys is offline
 

Advanced Member
  
Join Date: Jul 2004
Location: Orlando, FL
Posts: 36
 

Default

I like this and I would like to use this but the directions on exactly where to put this I am just not finding. Could someone detail exactly where to put these codes for the morons like me.

Thank you,
__________________
X-Cart version 4.0.12
www.pctechtoys.com
www.ecsidirect.com
Reply With Quote
  #18  
Old 10-05-2005, 06:01 AM
 
balinor balinor is offline
 

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

Default

In product.php as stated above. Are you not finding the code or not finding the file?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #19  
Old 10-06-2005, 01:42 PM
  pctechtoys's Avatar 
pctechtoys pctechtoys is offline
 

Advanced Member
  
Join Date: Jul 2004
Location: Orlando, FL
Posts: 36
 

Default

Ok I found it. I did it exactly the way the said it and **POOF** nothing.
__________________
X-Cart version 4.0.12
www.pctechtoys.com
www.ecsidirect.com
Reply With Quote
  #20  
Old 10-13-2005, 08:36 AM
  HWT's Avatar 
HWT HWT is offline
 

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

Default

Haven't looked at this thread in awhile. Sorry about steering you wrong w/forgeting the .php part.

Just to clarify things a little.

Use the code weckie posted in product.php if you need the manufacturer to show up in product.tpl, products.php if it in products.tpl, and in include/search.php if you need it in the search.

This is the original thread I found all of this originally:

http://forum.x-cart.com/viewtopic.php?t=13883&highlight=manufacturer
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
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 10:21 PM.

   

 
X-Cart forums © 2001-2020