![]() |
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? |
depends on your version number.
post it in your signature |
Updated
|
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.
|
Well, that's great. But how do they work in 3?
|
{$product.param00} would be the first param, change 00 for other ones
this is on the product page |
Excellent. What about on the checkout pages?
|
How do these work in Version 4.0?
|
They are in a new table called Extra fields and are no longer called out by product.param00, product.param01 etc.
|
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) |
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. |
Quote:
Very cool, but they could pull them automagically (to the user) and keep them in the $product namespace. |
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.