| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
1 Extra Field in products.tpl? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi there,
i wanna display one extra field in products.tpl. what do i have to add to let an extra field show up? in my 3.5.14 shop it was very easy. i just needed to add {$products[product].param00} in 4.1.9 i tried {$extra_fields[product][0].field_value} but nothing. can someone tell me the correct code? tia saskia
__________________
X-Cart Gold Version 3.5.14 (Live) X-Cart Gold Version 4.1.10 (in dev) Modification for 4.1.10 Run with 1 License, 1 Database up to 5 Shops with different domains, config, categories and more. click here for informations |
|||||||
#2
|
|||||||
|
|||||||
![]() Doesn't work that way I'm afraid, you'll want to read this:
http://forum.x-cart.com/showthread.php?t=9540
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() No true (anymore).
I asked the support and they send me this code and it's working in my 4.1.9 {$products[product].extra_fields.0.value} 0 is for field param00
__________________
X-Cart Gold Version 3.5.14 (Live) X-Cart Gold Version 4.1.10 (in dev) Modification for 4.1.10 Run with 1 License, 1 Database up to 5 Shops with different domains, config, categories and more. click here for informations |
|||||||
#4
|
|||||||
|
|||||||
![]() Interesting, will have to check it out!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#5
|
|||||||
|
|||||||
![]() does this work in 4.1.9
i have a extra called Sale ie 07 what should i use it dont seem to work
__________________
X-cart - 4.3.2 loads of mods and custom code |
|||||||
#6
|
|||||||||
|
|||||||||
![]() It seems the array only gets defined within the product and subcategory pages.
For 4.1.9 this appears to work for me referencing the first item in the array... {$extra_fields.0.field_value} Edit: I think I may have to reread this post again, getting mixed up with products.tpl. The above is for the product item page. Edit again: Yes, MOC's post appears correct. Extra fields are referenced in the array for products.tpl (subcats) with {$products[product].extra_fields.0.value}
__________________
Doms kube v4.1.9 |
|||||||||
#7
|
|||||||
|
|||||||
![]() @7th: replace the 0 with 7
__________________
X-Cart Gold Version 3.5.14 (Live) X-Cart Gold Version 4.1.10 (in dev) Modification for 4.1.10 Run with 1 License, 1 Database up to 5 Shops with different domains, config, categories and more. click here for informations |
|||||||
|
|||
X-Cart forums © 2001-2020
|