Combine base price + option price
Collapse
X
-
eldon99 You should be able to replace this line, https://github.com/mivaecommerce/sha...ibutes.mvt#L40, within the default Shadows template with the following:
This will display the sum of the main product price and option price.Code:<mvt:assign name="l.settings:option:combinedprice" value="l.settings:product:price + l.settings:option:price" /> <mvt:do name="l.settings:option:formatted_combinedprice" file="g.Module_Root $ g.Store:currncy_mod:module" value="CurrencyModule_AddFormatting( g.Store:currncy_mod, l.settings:option:combinedprice )" /> &mvte:option:formatted_combinedprice;
Leave a comment:
-
Combine base price + option price
I am trying to combine the base price with the option price in the option prompt. I tried several variable like below, but I am obviously missing something:
Any thoughts?HTML Code:<mvt:assign name="l.settings:pm:combinedprice" value="l.settings:attributemachine:product:price + l.settings:option:price" /> &mvte:pm:combinedprice;
Thanks for any insight.
EDIT: I originally had tried to make the base price zero, and use the actual option prices. I had a custom field to override the base price on the page. This worked, except the AttributeMachine was updating the price to Zero.Tags: None
Leave a comment: