Hi guys,
Ok, I know how to load "one" template for each product in showproduct.aspx.cs
example:
if (CommonLogic.QueryStringUSInt("ProductID") == 20)
{
SetTemplate("template_wedding.ascx");
}
But I can't seem to get different products to load different template pages. For example
I want all the products in Category1 to load: template1.ascx
and all the products in Category2 to load: template2.ascx
Changing:
if (CommonLogic.QueryStringUSInt("ProductID") == 20)
to
if (CommonLogic.QueryStringUSInt("CategoryID") == 1)
doesnt do it.
Can anyone steer me in the right direction?