| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Calling an Extra Field | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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
__________________
Version 4.0.17/4.0.18 |
|||||||
#2
|
|||||||
|
|||||||
![]() Depends on what template you want to call it in. Where do you want it to display?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]()
__________________
xcartmods.co.uk |
|||||||
#4
|
|||||||
|
|||||||
![]() 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
__________________
Version 4.0.17/4.0.18 |
|||||||
#5
|
|||||||
|
|||||||
![]() 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:
HTH
__________________
xcartmods.co.uk |
|||||||
#6
|
|||||||
|
|||||||
![]() Brilliant! Thanks, Phil!
__________________
Version 4.0.17/4.0.18 |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|