PDA

View Full Version : Finding category_code


delgriffith
01-11-07, 09:33 PM
Some products will have a price that is dependent on attributes selected and until they are selected it can have no price.

At the moment the price shows up as ?0.00 but that is incorrect. I want to substitute "Varies" and have successfully written the code to do so on the PROD page.

However to make matters more complicated in other categories there will be products that are free and hence ?0.00. So I need to have "Varies" show only when the category_code is "course".

I have written:

mvt:if expr="l.settings:category:Category_Code EQ course"

but this is obviously incorrect. Could someone please let me know what I need to write?

Thanks very much

Ambrose

Vic - WolfPaw Computers
01-12-07, 01:00 AM
I believe this is what you are looking for:

<mvt:if expr="l.settings:category:code EQ 'course'">


Some products will have a price that is dependent on attributes selected and until they are selected it can have no price.

At the moment the price shows up as ?0.00 but that is incorrect. I want to substitute &quot;Varies&quot; and have successfully written the code to do so on the PROD page.

However to make matters more complicated in other categories there will be products that are free and hence ?0.00. So I need to have &quot;Varies&quot; show only when the category_code is &quot;course&quot;.

I have written:

mvt:if expr=&quot;l.settings:category:Category_Code EQ course&quot;

but this is obviously incorrect. Could someone please let me know what I need to write?

Thanks very much

Ambrose

delgriffith
01-12-07, 02:41 AM
Thanks again Vic!