VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product pricing => Topic started by: saviB on May 04, 2016, 20:54:13 PM

Title: Tax & Calculation Rule Ignoring Category Setting
Post by: saviB on May 04, 2016, 20:54:13 PM
VirtueMart 3.0.16 / Joomla! 3.5.1

I'm working on a client site that requires different shipping costs - but only one method, FEDEX ground. One type of product ships for free, and another ships for a flat $25, while all the rest use a weight calculation. I made two Calculation rules, one for the $25 flat rate and one for the free shipping. Each is assigned to a single category in the rule. But - the rule is appearing in cart regardless of the category of product added.

Scenario:

Product A category A is assigned calculation rule +$25. Product B category B is assigned calculation rule Free Shipping (this is just text, it has no value). Both products are set to zero weight.  Product C category C is NOT assigned to any calculation rule.

Product C is added to cart. View cart and both the $25 rule is shown as is the Free Shipping Rule.

For some reason, for me, Virtuemart is ignoring the category setting in the tax and calculation rules. It isn't a template issue as i checked it with BEEZ and the problem persists.

I am using FEDEX shipping plugin from Park Beach Systems: https://www.parkbeachsystems.com/products/virtuemart-fedex-shipping - but I don't think that should effect tax rules. Help?

Regards,

Savitri

Title: Re: Tax & Calculation Rule Ignoring Category Setting
Post by: saviB on May 06, 2016, 14:35:56 PM
Anyone? The crux is that any tax calculation or rule I create is ignoring the assigned category and is applying to all products.

By the way, AH, I DO run extensive searches before posting to this forum.
Title: Re: Tax & Calculation Rule Ignoring Category Setting
Post by: Studio 42 on May 09, 2016, 21:43:50 PM
You need to check if your products have crossed categories.
Eg if product P are in category B+C and apply rule in C the product get the rules affected in all cases.
SO if you set discount in B and discount in C this discounts gets added.
I had a customer added 96% discount because he don't paid attention.
For now, it check always before apply new rules to have no double rules.
I think too, that if you have 2 discounts using same rules type(eg category)should not be applied 2 time, but only one. This should solve many shop owner
setting bad rules and loosing money because this(my loosed more then 500€ in 6 hours).
Title: Re: Tax & Calculation Rule Ignoring Category Setting
Post by: saviB on May 11, 2016, 17:47:47 PM
Thanks for the response. There is no cross category contamination going on.

I have refined the issue though. The Type of Arithmetic Operation I need for this custom rule is Tax Per Bill. This Type of Arithmetic Operation (any Per Bill Type of Arithmetic Operations) is ignoring the category assignation.

Anyone?
Title: Re: Tax & Calculation Rule Ignoring Category Setting
Post by: Studio 42 on May 11, 2016, 17:59:13 PM
Tax Per Bill is applied to all the bill, so it's perhaps because this is applied to all.
And how you want filter by category a tax  for multiple product applied after all products ?
So you need to use tax per product and discount per product. Tax per bill is if you have to pay a specific tax for the full bill, not depending from any products.
Title: Re: Tax & Calculation Rule Ignoring Category Setting
Post by: saviB on May 12, 2016, 14:19:46 PM
QuoteAnd how you want filter by category a tax  for multiple product applied after all products ?

Precisely because I want it to apply ONLY if a specific product is in the cart. So, yes, it is per bill, but the setting of a specific category should be the trigger/switch to apply the tax or not. Product of the selected category NOT in the cart - rule/tax not applied. Product of the selected category IN the cart - rule/tax applied. Why else would there be the option to select a product category in the custom rule?

I can not use per product, because the rule then applies each time the product is added to the cart, not just the first time.

End goal is a sort of flat rate shipping fee - but only for one specific product type. All else used FEDEX. In it's essence:

if (any number) of product x is in cart add (only once) $25.
Title: Re: Tax & Calculation Rule Ignoring Category Setting
Post by: saviB on May 12, 2016, 17:17:34 PM
Attached is an illustration of the issue.
Title: Re: Tax & Calculation Rule Ignoring Category Setting
Post by: roberto91 on August 24, 2017, 11:21:50 AM
buongiorno,
avrei bisogno di sapere se avete trovato una soluzione a questo problema?
Mi servirebbe.
Grazie.
Title: Re: Tax & Calculation Rule Ignoring Category Setting
Post by: jenkinhill on August 25, 2017, 10:43:54 AM
Utilizza l'inglese in questo forum.