1

I've got a matrix for my price modifiers. I don't map the base price field because I want to use the modifiers price as the full price.

So when I use my {price} variable I get the price without tax. I've tried {price:plus_tax}, but that doesn't seem to work. Everything is ok when I view my cart, but I really want the option to show the price with or without the tax in the step before.

0

The price:plus_tax tag won't work with a text field. It needs to be one of the various CartThrob Price Fieldtypes to use that tag.

If you use the {exp:cartthrob:item_options} tag to display your matrix modifiers, you'll be able to use :plus_tax.

| improve this answer | |
  • That does work indeed! But I did a little custom coding for my purpose and did it this way. ` {if member_group != "7"} {exp:cartthrob:arithmetic prefix="" expression="({price} * {cart_tax_rate}) + {price}"} {/if} – Thaoms Feb 18 '14 at 10:35

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.