Announcement
Collapse
No announcement yet.
Attributes Double Negative
Collapse
X
-
Hi Leslie,
Try replacing the 'else' eval with this:
Code: <mvt:eval expr="' -$' $ glosub(rnd(l.settings:option:price, 2), '-', '')" />
Leave a comment:
-
Attributes Double Negative
How can I fix the double negative that the PROD Page Product Attribute Template displays with a negative value attribute?
Aesthetically, the second negative looks bad. I can see the coding that needs to be tweaked, I just don't know how to get rid of the second - that comes from the attribute price.
Code:<mvt:if expr="l.settings:option:price GT 0"> <mvt:eval expr="'+ $' $ rnd(l.settings:option:price, 2)" /> <mvt:else> <mvt:eval expr="'- $' $ rnd(l.settings:option:price, 2)" /> </mvt:if>
Tags: None
Leave a comment: