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}
?