View Single Post
  #1  
Old 09-15-2006, 07:37 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Unique product.tpl for one product only?

Can someone please point me in the right direction here?

I had previously purchased WebsiteCM's "mutliple template package" and I got very used to having unique templates for various products... until Jon gets it working with 4.1, I need a workaround...

My goal is for one specific product (which also just happenes to have its own category) - I want to totally re-design product.tpl -- but ONY for this one product.

I tried the following, and it works, but, is there a better way to do this? Is there a better way to call a specific product to its own product.tpl page? Can I accomplish this at the product level, not the category? Is there anything wrong with doing it this way?

This is what I did:

in /skin1/customer/home_main.tpl

{elseif $main eq "product"}
{if $product.categoryid == 1}
{include file="customer/main/special_product.tpl" product=$product}
{else}
{include file="customer/main/product.tpl" product=$product}
{/if}

Is there a better way to do this? Are the downsides to this? Is there a more optimized way?

Thanks!

Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote