Jump to content

Customize product view per categories


Guest enslaved

Recommended Posts

Guest enslaved

Hi there,

I got a problem to customize the product THUMB per categories.

I know how to customize product display per category changing the viewProd.inc.php as this :

if($prodArray[0]['cat_id']!=57 && $prodArray[0]['cat_id']!=58 && $prodArray[0]['cat_id']!=59 ){$view_prod = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/content/viewProd.tpl");}

else  {$view_prod = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/content/viewProd2.tpl");}




but i've tried to make the same change for the viewCat.inc.php as this: 




if($prodArray[0]['cat_id']!=57 && $prodArray[0]['cat_id']!=58 && $prodArray[0]['cat_id']!=59 ){$view_cat = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/content/viewCat.tpl");}

else {$view_cat = new XTemplate ("skins/".$config['skinDir']."/styleTemplates/content/viewCat2.tpl");}

but it doesn't work, i think because the $prodArray is not the good command but i can't find what to do.

Please help!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...