Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Rombouts 71 posts 265 karma points
    Apr 15, 2014 @ 13:45
    Peter Rombouts
    0

    VAT Rate not picked up by 'GetPrice'

    Hi all,

    I have the following piece of code:

    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.

    Kind regards,
    Peter Rombouts

  • Anders Burla 2560 posts 8256 karma points
    Apr 16, 2014 @ 08:30
    Anders Burla
    100

    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

  • Peter Rombouts 71 posts 265 karma points
    Apr 16, 2014 @ 08:32
    Peter Rombouts
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft