Posted - March 05 2010 : 07:49:10
| It's not in the asp file, it's done via the template files instead. The product-summary page template (ie the bit which displays each product in shopdisplayproducts.asp) is:
for those template files, anything with a square bracket is a column name or a special template field.
will end up outputting your products.cname value at that point of the html.
For each product queried, it'll read your tmp_productformat.htm file, and then translate that into the relevant html using the data.
You can put whatever product columns you like into that file. The "translate" bit is only really relevant if you use multiple languages, so you can use something like:
[formatimage sub] is a special template field which gets the thumbnail, and then adds the link to it.
if you wanted, you could have an explicit link like this:
<a href="[formatshopexdlink][add_websesslink]" class="btn-details">Details</a>
NOTE: the formatshopexdlink template field is only relevant to v7; anyone who's reading this and is on 6.5 or below should use a different link as per the default 6.5 templates.
(the tmp_topsellers.htm template has those kinds of links/logic in it and explictly shows the image instead of using special template fields)
The corresponding template file for shopexd.asp (product-details) is tmp_product.htm
If you have an optional column and only want to display the label and other html such as a newline if the data's blank then put a $ at the front of the line in the template.
$Manufacturer: [mfg]<br />
Follow us on Twitter: http://twitter.com/bigyellowzone
Web Design, Online Marketing and VPASP addons
Edited by - devshb on March 05 2010 08:09:57