![]() |
Assigning Variable - !!! Solved thanks to Funky!
I'm trying to assign the sku# to the variable $id.
Here is my code: Code:
{assign var="id" value="$product[productcode]" } Here is the code to display it: Code:
{$id} I'm adding this code to product.tpl This works successfully on an older version of x-cart, but as I test it on the newest version of x-cart the {$id} comes up as blank. Has somthing changed? Anyone got any ideas on how to make this work with the newest version of x-cart? Thanks in Advance! John7 |
try $product.productcode instead
that'll work :) |
Nope tried that already.
Nope tried that already.
When I use that instead it says Array.productcode as the results. |
{assign var="id" value=$product.productcode}
{$id} works for me on 3.4.4 in product.tpl :? |
just spotted the difference - the ""
|
It works!!!
It works!!!
It was the " " all along. It seemed so hard, but was so simple. Thanks once again Funydunk! John7 |
:)
|
All times are GMT -8. The time now is 09:50 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.