Product Info Placeholders

STS 4: Product Info Placeholders list

This list placeholders is created in includes/modules/sts_inc/product_info.php. This file contains the placeholders (variously called "variables" or "tags") you can use when creating content templates for Product pages. The STS 4 Product Info module must be enable to use this. (see: Product Info module)
This list is directly from the STS User Manual, reproduced here for you convenience. The file product_info.php here is a placeholder file and as with all placeholder files, must be stored in the location noted above.
Placeholder Description
$productid The ID of the product being displayed. Added in v4.0.6 for compatibility with STS v3. Buggy until v4.3. Removed in v4.3SP1, use $productsid instead.
$productsid The ID of the product being displayed. Added in v4.0.6 for compatibility with STS v3. Buggy until v4.3SP1
$startform Required as the first item in the content area. This starts the HTML form needed for adding things to your cart
$endform This should be the last item in the content area. This closes the HTML form needed for adding things to your cart
$regularprice The price of the product, does not care of special prices
$specialprice The special price, empty if not defined
$regularpricestrike Contains "<s>$regularprice</s>" if a specialprice is set, otherwise contains $regularprice (not striked).
$productname The product name
$productmodel The product's model number
$productdesc The product description
$imagesmall The product image scaled down to the thumbnail size specified in your /admin/ tools. Since v4.0.7 it is empty if there is no product image. Use $product_popup if you want to have the popup option.
$imagelarge The product image with no resizing (actual size of image). Since v4.0.7 it is empty if there is no product image.
$product_popup New in v4.0.7: The Javascript with small image and link to popup window. Empty if no product image.
$optionheader The "Available Options:" text above the options, will change with the language. Blank if no options (product attributes)
$optionnames A list of Option (Product Attribute) names, separated by line breaks ("<br>"). Blank if no options
$optionchoices A list of Option (Product Attributes) choices as drop-down boxes, separated by line breaks ("<br>"). Blank if no options
NOTE: As shown in the “/catalog/includes/sts_templates/test/product_info.php_26.html” file, it is recommended that you use an HTML table to layout the options (Product Attributes). In the first column have $optionnames and in the second column have $optionchoices. This will automatically keep the correct names next to the correct choices. Use a table without a border.
$moreinfolabel The language-sensitive value of TEXT_MORE_INFORMATION (for linking to a more detailed page)
$moreinfourl The URL of the page where more information can be found
$productdatelabel Will contain either the Date Added or the Date Available messages, language specific
$productdate The date it will be available or the date it was added
$reviews The text with the number of reviews for the item. Empty if no reviews are available
$reviewsbutton The image for the reviews button
$reviewsurl The URL for the product's reviews
$addtocartbutton The button to send the product into the cart
$alsopurchased The box with products also purchased

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

 

Healthful Soulful Things

Custom Search