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?
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:
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? :)
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 :)
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.
is working on a reply...