| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
How can I put Smarty tags in "Product Options"? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I seem to remember a post about this, but after searching forever, I can't seem to find it.
How can I place Smarty tags into the "Product Options"? Initially, what I'm trying to do is to use an existing product as an option. I want to use Smarty to fill in the product name in the drop-down as well as the product price. Moving forward with the goal, I'd like to be able to add these options to the cart as a separate item so that the inventory is adjusted. As of now, all options are not accounted for in inventory, so if a customer buys a "Widget" and uses the "product option" to add on a "extension handle" (which is a different and indipendent item in the DB), the inventory is only adjusted for the "Widget". I guess what I'm looking for is a kind of "Product Option/Up-Selling/Configurator" solution. Thanks, Piper
__________________
x-cart 3.4.4 (UNIX) |
|||||||
#2
|
|||||||||
|
|||||||||
![]() Code:
You could add the above code the options .tpl code to help parse a variable in the options. Not sure if it'll do the trick but its how static pages can use smarty tags ![]() Take a peek at skin1/customer/main/pages.tpl |
|||||||||
|
|||
X-Cart forums © 2001-2020
|