Copied to clipboard

Flag this post as spam?

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


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Johan Larsson 28 posts 98 karma points
    Nov 25, 2014 @ 17:38
    Johan Larsson
    0

    One catalog with multiple price groups

    In my catalog of products I need two have two different price groups, one with the tax 20% and one with tax 0%. 

    To display the price on the product page i use the method below:

    CatalogLibrary.CalculatePrice(product).YourPrice.Amount 

    In back office for the product I can enter price for the two different price groups that I have created, when I enter a price in the 20%-textfield the price will be shown correctly on the product page for the visitors. But if I only enter a value in the 0%-textfield YourPrice will return null. Shouldn't it display the price the I entered in the 0%-textfield?

     

    It's something I do not understand, but what? :)

  • Nickolaj Lundgreen 233 posts 1132 karma points
    Nov 26, 2014 @ 10:20
    Nickolaj Lundgreen
    100

    Hi Johan

    I think you might be on the wrong track with the two pricegroups (or i might make some wrong assumptions - please correct me if that is the case). Pricegroups in uCommerce is normally used for adding prices in different currencies (or otherwise differentiated prices) - not for a "VAT" / "Non VAT" scenario.

    The way do differentiated tax is by overriding the taxing service provided by uCommerce - that way you (or your client) would not have to add the same prices (all prices added in the backend is without tax - so the base price would be identical) twice.

    You can read more about the basic of overriding or replacing the uCommerce services here:

    http://docs.ucommerce.net/ucommerce/v6/extending-ucommerce/register-a-component.html

    Or just ask :)

  • Johan Larsson 28 posts 98 karma points
    Nov 26, 2014 @ 17:56
    Johan Larsson
    0

    Thank you Nickolaj!

    I am very surprised that this isn't built in uCommerce. To have different taxes on different products is perheps unique in Sweden?

    I will try to implement the ITaxService to solve this problem.

Please Sign in or register to post replies

Write your reply to:

Draft