View Single Post
  #1  
Old 08-25-2003, 07:04 PM
 
John7 John7 is offline
 

Senior Member
  
Join Date: Jan 2003
Posts: 136
 

Default 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
Reply With Quote