Product code
We are beginning to offer video content about some of our products and I am trying to create a link in the long decription that pops a new window and plays the video for that product.
My question is this: Is there any way to have the link carry the product code with it as a url variable without having to hard code the product code for each link?
For example
<a href=" somelocation.php?sku={$product.productcode}">
or would I be forced to do it this way
<a href="somelocation.php?sku=37-0001">
I am trying to make it so that I only have to add a very generic link to the description, that is the same for all products, and then have my script use the product code variable to select the video that needs to be shown. I have tried it a number of ways and the conclusion that I am coming to is that the link in the long description can not use the smarty or php variables.
What am I missing?
Thanks!
Cameron
__________________
Xcart
Version: 4.1.6
|