Thread: Help Please!
View Single Post
  #6  
Old 06-19-2009, 12:31 PM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Help Please!

productid is an numeric internal xcart value. It is used in database as a primary key so it is unique. If you browse to any product you will see URL like this
http://yourstore/product.php?productid=14334
14334 is a productid

you can also use SKU:
Code:
{if $main eq "product"}<script src="http://www.yakkingheads.com/sample {$product.productcode|escape}.js"> </script>{/if}

or even product title:

Code:
{if $main eq "product"}<script src="http://www.yakkingheads.com/sample {$product.producttitle|escape}.js"> </script>{/if}

but in last two cases you can get an invalid URL for your script as either title or SKU may contains characters that are not allowed to use in URI
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote