View Single Post
  #7  
Old 11-21-2006, 03:34 AM
 
carpeperdiem carpeperdiem is offline
 

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

Default Re: Custom Root Category Template

As I said, I am not certain the variable is "$category.categoryid" -- if you can determine the variable for the categoryid, you're there.

This one may have to go to x-cart support -- fortunately you don't need them to do the work, you are just asking a question, "what's the var?"

FYI, here's the code that I am using for my PRODUCT pages --- since WebsiteCM's templates mod doesn't work for 4.1 yet, I had to hard code the product pages... this works:

Code:
{elseif $main eq "product"} {if $product.categoryid == 1} {include file="customer/main/product_1.tpl" product=$product} {elseif $product.categoryid == 2} {include file="customer/main/product_2.tpl" product=$product} {else} {include file="customer/main/product.tpl" product=$product} {/if}

Upon further review, maybe change the last elseif line to just else?

Code:
{elseif $main eq "catalog"} {if $category.categoryid == 818} {include file="customer/main/subcategories_Mcards.tpl" cat=$cat} {else} {include file="customer/main/subcategories.tpl" cat=$cat} {/if}

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