Jump to content

Help me with code please


Grin

Recommended Posts

The main category is 'Home'. This category includes two subcategoies - 'Sub1' and 'Sub2'.

I wanna see in homefeatured and product-list 'Text1' or 'Text2' under product price if current product belongs to 'Sub1' or 'Sub2'.

How can i write this condition in code?

I tried to do like this:

{if ($CategoryID != 5)}{l s='Text1'}{/if]
{if ($CategoryID != 6)}{l s='Text2'}{/if]



But it is wrong.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...