X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Extra product fields (https://forum.x-cart.com/showthread.php?t=9419)

RobotDeathSquad 09-17-2004 11:37 AM

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?

shan 09-17-2004 11:39 AM

depends on your version number.

post it in your signature

RobotDeathSquad 09-17-2004 01:26 PM

Updated

willirl 09-17-2004 03:12 PM

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.

RobotDeathSquad 09-17-2004 04:54 PM

Well, that's great. But how do they work in 3?

shan 09-18-2004 05:49 AM

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

this is on the product page

RobotDeathSquad 09-18-2004 08:27 AM

Excellent. What about on the checkout pages?

RobotDeathSquad 09-22-2004 01:43 PM

How do these work in Version 4.0?

adpboss 09-22-2004 02:26 PM

They are in a new table called Extra fields and are no longer called out by product.param00, product.param01 etc.

willirl 09-23-2004 03:25 AM

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)

adpboss 09-23-2004 04:33 AM

It had to be moved to its own table, to accommodate having unlimited extra fields.

You don't want to add/remove fields to the database in the products table.

RobotDeathSquad 09-23-2004 07:00 AM

Quote:

Originally Posted by adpboss
It had to be moved to its own table, to accommodate having unlimited extra fields.

You don't want to add/remove fields to the database in the products table.



Very cool, but they could pull them automagically (to the user) and keep them in the $product namespace.

adpboss 09-23-2004 07:09 AM

They are added in the product array, I am sure you could add these to other arrays as necessary.


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

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