Announcement
Collapse
No announcement yet.
Attribute Price Display - Remove Addition Price - Suivant Theme
Collapse
X
-
So put it like this?
Code:<span><mvt:eval expr="' $' $ rnd(l.settings:product:price + l.settings:option:price, 2)" /></span>
Leave a comment:
-
You should be able to wrap the MVT:EVAL statements in the SPAN tags.
Leave a comment:
-
Okay, that worked, thanks!! I'm just cutting and pasting items that I don't understand so it's a little nerve racking. I know HTML, CSS and a tiny bit of javascript but not miva code.
So I have one other question. I'll make a new CSS class to make the text a little smaller and a lighter grey but I'll need to place a span tag around some code. Do you know where that should go?
Leave a comment:
-
Found the code and it was the page I updated earlier. Here's a few sections that didn't get updated. I don't understand what you mean by 'for use in radio buttons'. Do I need to update the sections of code below?
Code:&mvte:option:prompt; <mvt:if expr="l.settings:option:price"> <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>Code:&mvte:attribute:prompt; <mvt:if expr="l.settings:attribute:price"> <mvt:if expr="l.settings:attribute:price GT 0"> <mvt:eval expr="' +$' $ rnd(l.settings:attribute:price, 2)" /> <mvt:else> <mvt:eval expr="' -$' $ rnd(l.settings:attribute:price, 2)" /> </mvt:if>Code:&mvte:attribute:prompt; <mvt:if expr="l.settings:attribute:price"> <mvt:if expr="l.settings:attribute:price GT 0"> <mvt:eval expr="' +$' $ rnd(l.settings:attribute:price, 2)" /> <mvt:else> <mvt:eval expr="' -$' $ rnd(l.settings:attribute:price, 2)" /> </mvt:if>
Leave a comment:
-
Okay, I may have update the code on the wrong page. I used the search function to find the Product Attribute Template (PAT) and updated the section, however now I can't find it. I find the PAT section on the Missing and Missing Upsell pages but that's it for search.
What's the path to the correct area to update?
Leave a comment:
-
Looks like there might be a typo for the use in radio buttons which would cause a find/replace to not update it. Check that those are updated the same as the select ones.
Leave a comment:
-
Hi Matt,
I did exactly what you said and it didn't work. I found 4 instances of each piece of code in the Product Attribute Template section, replaced them with the code you provided, and nothing happened. The page and options work exactly the same as before. Thoughts?
Leave a comment:
-
In your Product Attribute Template, you should be able to replace all instances of:
with:Code:<mvt:eval expr="' +$' $ rnd(l.settings:option:price, 2)" />
andCode:<mvt:eval expr="' $' $ rnd(l.settings:product:price + l.settings:option:price, 2)" />
with:Code:<mvt:eval expr="' -$' $ rnd(l.settings:option:price, 2)" />
Code:<mvt:eval expr="' $' $ rnd(l.settings:product:price - l.settings:option:price, 2)" />
Leave a comment:
-
Attribute Price Display - Remove Addition Price - Suivant Theme
Hi,
I was wondering if there was a way to hide or remove the additional price that is displayed next to the attribute? Here's one of the pages on my dev site:
http://dev.imagescienceassociates.co...et-family.html
0.5X
1X + $40.00
2X + $115.00
1X and 0.5X with Case + $765.00
All 3 Targets with Case + $1315.00
I want to remove the + $123 and replace that with the FULL price. Or like this...
0.5X ($385)
1X ($425)
2X ($500)
1X and 0.5X with Case ($1150)
All 3 Targets with Case ($1700)
Any help would be appreciated. Thanks!
Tags: None
Leave a comment: