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
|