X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How can I put Smarty tags in "Product Options"? (https://forum.x-cart.com/showthread.php?t=8385)

pipercub 07-08-2004 10:21 AM

How can I put Smarty tags in "Product Options"?
 
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

B00MER 07-12-2004 08:08 PM

Code:

{eval var=$variable}

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


All times are GMT -8. The time now is 10:46 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.