View Single Post
  #4  
Old 10-09-2003, 07:23 AM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

use the smarty {php} {/php} tags to include php code within templates.

I don't think your product code is going to be so simple, remember the client can re-order the products in the category, reverse list them, disable certain products etc etc. Your code needs to take into account all of those, the product ID isn't static either, if the customer deletes a product it no longer exists on the database and that product ID will show a blank.

Also watch it doesnt affect the static catalog generation.
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote