With great sadness we have to announce that we are ceasing development of all our VirtueMart, WooCommerce and Joomla plugins. Effective immediately, all our plugins -- even those that were paid downloads -- are made available for free from our homepage (GPL license still applies), but we cannot and will not provide any support anymore.
It has been a great pleasure to be part of the thriving development communities of VirtueMart as well as WooCommerce. However, during the last year it became painstakingly clear that in addition to a full-time job, a young family and several other time-consuming hobbies at professional level (like being a professional singer) the plugin development and the support that it requires is not sustainable and is taking its toll. It has been an honor, but it is now time to say good bye!
Welcome,
Guest
|
|
I'm trying to apply multiple rules to a single cart, I'm not having much luck.
This is my current ruleset: Variable=myShip; Value=7.50*evaluate_for_categories(articles, 46)
Variable=myShip; Value=0.50*evaluate_for_categories(Articles, 43, 44, 45)
Shipping=myShip If I remove the second rule, then the first works good. But I cannot get it to work with the multiple rules. Basically each product for category 46 I want it to add $7.50, and each product/qty for the other 3 categories I want it to add $0.50 per product. |
|
Dear JFreak53,
1. Your "problem" is that the second line OVERWRITES the value of myShip, it does not automatically ADD. So your correct rules would be Variable=myShip; Value=7.50*evaluate_for_categories(articles, 46)
Variable=myShip; Value=myShip + 0.50*evaluate_for_categories(Articles, 43, 44, 45)
Shipping=myShip 2. As long as you have such simple rule sets, you can easily combine all of them into one calculation Shipping=7.50*evaluate_for_categories(articles, 46) + 0.50*evaluate_for_categories(Articles, 43, 44, 45) Best regards, Reinhold |