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

Extra product fields

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-17-2004, 11:37 AM
 
RobotDeathSquad RobotDeathSquad is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 80
 

Default Extra product fields

Hi All,
I have added an extra product field to the database.
I would like to display that on my product page and my checkout page, but how do I do this? How do I reference those varibles in smarty?
__________________
RobotDeathSquad
Version 4.0.11
Reply With Quote
  #2  
Old 09-17-2004, 11:39 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

depends on your version number.

post it in your signature
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 09-17-2004, 01:26 PM
 
RobotDeathSquad RobotDeathSquad is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 80
 

Default

Updated
__________________
RobotDeathSquad
Version 4.0.11
Reply With Quote
  #4  
Old 09-17-2004, 03:12 PM
 
willirl willirl is offline
 

eXpert
  
Join Date: Mar 2004
Location: OHIO
Posts: 271
 

Default

Be aware that they changed the way extra fields work in 4.x. Not even close to 3.x. So if you make use of them in 3.x you'll have to change your code again in 4.x.
__________________
Richard

x-cart version 4.0.17
http://roguewavemarine.com
Reply With Quote
  #5  
Old 09-17-2004, 04:54 PM
 
RobotDeathSquad RobotDeathSquad is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 80
 

Default

Well, that's great. But how do they work in 3?
__________________
RobotDeathSquad
Version 4.0.11
Reply With Quote
  #6  
Old 09-18-2004, 05:49 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

{$product.param00} would be the first param, change 00 for other ones

this is on the product page
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 09-18-2004, 08:27 AM
 
RobotDeathSquad RobotDeathSquad is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 80
 

Default

Excellent. What about on the checkout pages?
__________________
RobotDeathSquad
Version 4.0.11
Reply With Quote
  #8  
Old 09-22-2004, 01:43 PM
 
RobotDeathSquad RobotDeathSquad is offline
 

Advanced Member
  
Join Date: Oct 2002
Posts: 80
 

Default

How do these work in Version 4.0?
__________________
RobotDeathSquad
Version 4.0.11
Reply With Quote
  #9  
Old 09-22-2004, 02:26 PM
  adpboss's Avatar 
adpboss adpboss is offline
 

X-Man
  
Join Date: Feb 2003
Location: Ontario, Canada
Posts: 2,389
 

Default

They are in a new table called Extra fields and are no longer called out by product.param00, product.param01 etc.
Reply With Quote
  #10  
Old 09-23-2004, 03:25 AM
 
willirl willirl is offline
 

eXpert
  
Join Date: Mar 2004
Location: OHIO
Posts: 271
 

Default

and are harder to use since they are no longer fields of the "$product". So to use them you have to get them out of the database as needed.

Why couldn't they have just left them alone? It worked great the way it was pre-4.x

(sucks)
__________________
Richard

x-cart version 4.0.17
http://roguewavemarine.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


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 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 08:19 AM.

   

 
X-Cart forums © 2001-2020