I am not sure why but I am not getting the result that I thought I would so I am hoping that someone can help me out. I have tried this two different ways and gotten the same wrong result. I should be getting a result of 5.50 but I am getting -5.00.
Code:
<mvt:item name="ry_toolbelt" param="assign|l.all_settings:product:calc_shipping |Json_Parse_Call(g.shipping_url,g.verbose)" /> <mvt:assign name="l.settings:shipping_reduction" value="5" /> <mvt:assign name="l.settings:calc_shipping" value="l.settings:product:calc_shipping" /> (I don't even think this is need, just did it for testing to see if it change the result) <mvt:assign name="l.settings:new_shipping" value="l.settings:calc_shipping - l.settings:shipping_reduction" /> <mvt:item name="ry_toolbelt" param="assign|l.all_settings:product:calc_shipping |Json_Parse_Call(g.shipping_url,g.verbose)" /> <mvt:assign name="l.settings:shipping_reduction" value="5" /> <mvt:item name="toolkit" param="math_subtract|new_shipping|l.all_settings:product:calc_shipping|l.all_settings:shipping_reduction" />
Comment