long storeId = long.Parse(Model._store); Price price = TC.GetPrice(storeId, @Model.Id.ToString());
The problem is that my model has a 'TeaCommerce : VAT group picker', with some group attached to it. (6%) The VAT in the price object however is 21% (the default).
How do I 'tell' TeaCommerce to grab the VAT picker? I assumed, like the stock component, this would be automatically done by the API.
VAT Rate not picked up by 'GetPrice'
Hi all,
I have the following piece of code:
The problem is that my model has a 'TeaCommerce : VAT group picker', with some group attached to it. (6%)
The VAT in the price object however is 21% (the default).
How do I 'tell' TeaCommerce to grab the VAT picker?
I assumed, like the stock component, this would be automatically done by the API.
Kind regards,
Peter Rombouts
In the Tea Commerce admin there is a store setting that specifies the vatGroup property alias. Be sure to use that alias for your property.
Kind regards
Anders
Hi Anders,
I thought I deleted this issue.
You are correct, there was a typo in the property alias, so everything works fine!
Kind regards,
Peter Rombouts
is working on a reply...