News:

Looking for documentation? Take a look on our wiki

Main Menu

[SOLVED] Taxes and calculation rules (field Category)

Started by lostmail, August 16, 2019, 13:36:43 PM

Previous topic - Next topic

lostmail

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:


VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lostmail

VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

GJC Web Design

latest stable is now VM3.6.0 -- but all normal warnings about updating apply of course
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

lostmail

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...
VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

lostmail

#5
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%
VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

lostmail

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 !!
VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

lostmail

...and another strange thing:
I have nothing in the cart but the calculation rule is still visible...???
VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

lostmail

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.
VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

lostmail

#9
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 ?
VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

lostmail

#10
VirtueMart 3.6.8 10197 - Rules and Calculation BUG is still alive..(Joomla and VM are Default - no additional Templates/Hacks...)
VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

Milbo

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).
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

Milbo

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.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lostmail

#13
Hm - very strange...
Send you a link to the testpage

Perhaps you have a differnt file Version from the package in your Test environment ?
VirtueMart VirtueMart 4.2.16 11030 | Joomla 4.x | PHP 8.3 | Vp_neoteric 1.6

stensbo

#14
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..