VirtueMart Forum

VirtueMart 2 + 3 => Virtuemart Development and bug reports => Topic started by: lostmail on August 16, 2019, 13:36:43 pm

Title: [SOLVED] Taxes and calculation rules (field Category)
Post by: lostmail on August 16, 2019, 13:36:43 pm
It seems that the category field in taxes and calculation rules does not work.

The rule "Discount 5% for ladies" which should take affect for the category "Lady" seems not to work.

When you put it in the basket there is no Discount calculated.

http://demo.virtuemart.net/zipper-pullover-detail

I found it in my shop and in the demo shop, too...field Category in taxes and rules seems to hve no function/disfunction
http://forum.virtuemart.net/index.php?topic=143052.msg505980#msg505980

..and if you check the rules calculation....please check checkout cart, too for the rules.
It is looking strange:


Title: Re: Taxes and calculation rules (field Category)
Post by: Milbo on August 27, 2019, 18:02:53 pm
Which version do you mean?
Title: Re: Taxes and calculation rules (field Category)
Post by: lostmail on August 31, 2019, 11:07:55 am
Version 3.4.2...See the vm Demo Page,too.
Title: Re: Taxes and calculation rules (field Category)
Post by: GJC Web Design on August 31, 2019, 11:15:48 am
latest stable is now VM3.6.0 -- but all normal warnings about updating apply of course
Title: Re: Taxes and calculation rules (field Category)
Post by: lostmail on September 04, 2019, 16:23:40 pm
Im on 3.60 now but the Problem still exists.
If i Set a rule especially for a category all products have now
This price update but the are not asigned to that category.

In vm Demo this rule takes no effect for the products asigned for a category...

Very strange...
Title: Re: Taxes and calculation rules (field Category)
Post by: lostmail on September 12, 2019, 20:32:05 pm
Now in VM Demo there is no product configured with TaxBeforeBill or TaxAfterBill and I can not find a Product rule which is assigned to a category.

Why that ? Because it does not work ???

Please check that calculation rule for categories as I think it is buggy...

The rule does not work in demo as you can see here:
http://demo.virtuemart.net/wear/lady
No product has a discount of 5%
Title: Re: Taxes and calculation rules (field Category)
Post by: lostmail on September 22, 2019, 20:32:04 pm
In installed a completely new VM 3.6 System with no modifications or overrides etc..

Created 2 Categories and 2 Products + 2 calculation rules.

One of the product is assigned to Category "BULK PRODUCTS" and this category is defined in one of the calculation rules.

I take the product in cart where the rule NOT should take affect (as the product is only in the category assigned which has no additional calculation rule) - but it does !!
Title: Re: Taxes and calculation rules (field Category)
Post by: lostmail on September 22, 2019, 20:35:47 pm
...and another strange thing:
I have nothing in the cart but the calculation rule is still visible...???
Title: Re: Taxes and calculation rules (field Category)
Post by: lostmail on September 28, 2019, 21:20:01 pm
After update to VM 3.6.2.10159 the calculation rule is now working but in Cart view the tax for the rule is not visible in the line.
Please check image attached.
Title: Re: Taxes and calculation rules (field Category)
Post by: lostmail on September 28, 2019, 21:27:28 pm
Hm - no -still not working.
I have 1 product in cart which is not assigned to the category where the rule is assigned for and the discount is still present in cart...

When I have NOTHING in Cart the rule is visible

Perhaps there is still something wrong with the calculation rule.
When I open the rule I see () behind the rule name...perhaps an error ?
Title: Re: Taxes and calculation rules (field Category)
Post by: lostmail on November 07, 2019, 21:01:50 pm
VirtueMart 3.6.8 10197 - Rules and Calculation BUG is still alive..(Joomla and VM are Default - no additional Templates/Hacks...)
Title: Re: Taxes and calculation rules (field Category)
Post by: Milbo on November 15, 2019, 11:42:37 am
Thank you for your good bug report.

I tested it before always with a percentage and that seemed to work. But did not test your use case (nice one, btw).
Title: Re: Taxes and calculation rules (field Category)
Post by: Milbo on November 15, 2019, 20:33:13 pm
I tested a lot different cases. Also the "mixed" type,.. Vat per product, but discount per Bill, both works in my case per category.

also when I have two products in the cart, when I use a discount with percentage, it discounts only the product in the category. Hmm.
Title: Re: Taxes and calculation rules (field Category)
Post by: lostmail on November 16, 2019, 11:48:21 am
Hm - very strange...
Send you a link to the testpage

Perhaps you have a differnt file Version from the package in your Test environment ?
Title: Re: Taxes and calculation rules (field Category)
Post by: stensbo on November 20, 2019, 10:37:04 am
Joomla! 3.9.13 Virtuemart 3.6.8.10197 php 7.3.12

Just made a quick test with + 5,00 EUR for a category - also tested with a mix of calc rules - calculation in cart is working fine but lostmail is right the +5,00 EUR calc rule stay in cart even after clear cache and browser - had to disable calc rule to get rid of it.

Edit: actually all calc rules "per bill" stay in cart if the rule is available for the shopper group you login as a member off..