View Single Post
  #1  
Old 09-01-2003, 04:22 PM
 
5circles 5circles is offline
 

Advanced Member
  
Join Date: Mar 2003
Location: Kirkland, Washington, USA
Posts: 34
 

Default Product options / Add to Cart/ products.tpl vs product.tpl

I've been trying to make Add to Cart work properly with product options and having lots of trouble. I thought that I could take some of the code from product.tpl (which is used to display all the information from a single product) and simply add it to products.tpl (which displays multiple products) but this doesn't work. The underlying problem seems to be that I don't have access to the $product_options array in products.tpl, and I can't figure out how to get it there - so that the include of customer_options.tpl will work as it should. I think it comes down to my lack of knowledge about using mySQL data in the Smarty templates, and also my limited understanding of the relationship between the PHP and TPL files. My last (failed) AHA was to look at products.php and product.tpl to see if I could move a few things over. No luck.

I'm running 3.3.6, and reluctant to try to move to a later version until I can get this one live.

Thanks
Mike
Reply With Quote