![]() |
Calling an Extra Field
Hi,
I'd like to have a simple yes/no extra field for a logic statement. In a template, how do I call this extra field? I've tried $products[product].Reduced but it didn't work. Is there a way to call the extra field (called reduced) or do I have to add a field to my database? If the latter, is there a tutorial available to show me how to add to the database, and then call the variable properly? Thanks, Jeremy |
Re: Calling an Extra Field
Depends on what template you want to call it in. Where do you want it to display?
|
Re: Calling an Extra Field
|
Re: Calling an Extra Field
Phil,
I tried that, but I couldn't find $query_data = array( ... ); in include/Product_Modify.php, so I didn't know how to continue. I want to call it in the customer/main/products.tpl and just use a logic statement to dictate what should be displayed given the assigned value for each item. Jeremy |
Re: Calling an Extra Field
That's because you are using v4.0.x, that code is meant for v4.1.x
In /include/product_modify.php look for this instead... Code:
# Add the new fields like this... Code:
newfield='$newfield', HTH |
Re: Calling an Extra Field
Brilliant! Thanks, Phil!
|
All times are GMT -8. The time now is 10:31 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.