If I need to add two store tags together to make up a sum, how would I go about this? This is what I want to achieve:

{order_discount} + {order_you_save} = R total savings

Is this possible? I still obviously need the total savings to reflect on the total amount of the order.


There is nothing built into Store that I know of that would allow you to do this. You could however use something like MX Calculator or a similar add-on to calculate the total.

Something along the lines of:

{exp:mx_calc expression="{order_discount_val} + {order_you_save_value}" parse="inward"}
 Total Savings of {calc_result}

Notice that I added _val to each of the tags so that they will be outputted without the currency symbols, you will need to do this or the math will not work correctly.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.