News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Last product added in cart overwrite category's tax

Started by xvapolh, July 01, 2019, 17:24:23 PM

Previous topic - Next topic

xvapolh

VirtueMart 3.4.2 - Joomla! 3.9.8 - php 7.2.10

I've a "+60€ tax" in an event category : if i buy one or more product of this category, a DBTaxBill is created with +60€ in my cart. It works fine.
But if I add another product to my cart, like a book, the tax is overwriten and no tax appears.

I tried by creating a "0 € tax" for books, but this "0 € tax" stays as the last tax, when a book is the latest added product of the cart.
If i had another product of my event as a "last cart product", the "+60€ tax" appears.

Thanks

xvapolh


jjk

If you are located in the EU, your tax configuration might not be allowed. Which country's tax rules are applicable in your case?
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

xvapolh

There's no country's tax rules. Just a category tax rules. Same rule for all country : if you take an event, it's +60€ on the bill.

Studio 42

And when you set it as a Vat tax (product)?
TaxBill is for all the bill, so it can change depending the cart content.

xvapolh

It costs 60€ per product, not for the category.

Studio 42

switch "DBTaxBill" to "VatTax" and check if it work


Studio 42

So does it work or not ?
Because you have so many calculated thinks, that it's hard to know(shipment tax + reduction + product taxes)

xvapolh

It doesn't work. It put +60€ on each product of the category. I want +60€ once, for all the category (one or multi products added to cart).

My problem is : "why my +60€ tax (in one category) is overwrited by other category products, if they appears in the last position in cart ?

Studio 42

Because the tax per bill check the rules in a product order then set it in the cart.
If you need specific rules, you have to create your own tax plugin.

xvapolh

Is there a possibility in calculationh.php to sum all the rules ?

Studio 42

Do your own tax plugin. You can then do anything as you want.
You dont need to hack the core

xvapolh

Maybe there is a way to display my products by reference, in order to put them at the bottom of the cart ?

xvapolh

Any idea to display the products by reference (sku) in cart ?