VM Ordernumber Plugin
VM Downloads for Sale Plugin
VM Shipping by Rules Plugins
VM Add Buyers to Joomla Groups
Advanced Order Numbers for Magento
Basic / Advanced Order Numbers for WooCommerce
Shipping By Rules for WooCommerce
Tutorial: Automatic updates for Commercial VM and WP plugins
Tutorial: Extending VM with custom views
Tutorial: Upgrading a VM2 plugin to VM3
Advanced Ordernumbers for VirtueMart
Downloads for Sale for VirtueMart
Shipping by Rules for VirtueMart
EU Sales Reports for VirtueMart
Subscribe Buyers to AcyMailing for VirtueMart
Add Buyers to Joomla Groups for VirtueMart
VM Customers to Joomla Groups Admin Panel
Auto Parent Categories for VirtueMart
Name The Price for VirtueMart
Ordernumbers for Magento
Ordernumbers for WooCommerce
Shipping By Rules for WooCommerce
CB Usergroups Field Plugin 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
|
|
Hi
I would like a different shipping price for a category however the rules I have used don't seem to work. So I have said for one article the shipping is $15.50 however for an article from category 34 the shipping is $10.00. I have used the rules below: articles==1; Shipping=15.50 Categories==list(34); Shipping=10.00 My issue is that shipping for category 34 is still being charged at $15.50 Could you please let me know where I have gone wrong? Thanks |
|
You need to understand how the plugin determines the shipping costs: It simply goes through the rules one after the other, until it finds a rule that matched. In your case, the first rule is :
"If there is exactly one article in the order, shipping is 15.50" Of course, this also applies to orders where you have exactly one article from category 3 in the cart... Basically, you need to check the most restrictive conditions / rates FIRST, and the least restrictive rules last. If you want one article (and only one article in the order!) of category 34 to ship for 10.00, but all other orders with one article fro 15.50, then you need to place the corresponding rule first. Articles==1; Categories==list(34); Shipping=10.00
Articles==1; Shipping=15.50Please also note that your rule "Categories==list(34); Shipping=10" will also match for orders of more than one article from category 34... Best regards, Reinhold |
|
Hi
Thanks however I updated to be this: Categories==list(23); Shipping=10 articles==1; Shipping=15.50 and the items from category 23 are still being charged $15.50 not $10.00 Could you please advise what I have done incorrectly? Thanks |
|
Are the items from category 23 also in other categories? In that case, the Categories list contains also the other categories. You can get around that by comparing the number of articles in category 23 to the total number of articles:
evaluate_for_categories(Articles, 23)==Articles; Shipping=10
articles==1; Shipping=15.50Best regards, Reinhold |
|
Hi
I tried that and got this error message: Error Unknown function 'evaluate_for_categories' encountered during evaluation of rule 'evaluate_for_categories(Articles, 23)==Articles; Shipping=10 '. Unknown function 'evaluate_for_categories' encountered during evaluation of rule 'evaluate_for_categories(Articles, 23)==Articles; Shipping=10 '. Unknown function 'evaluate_for_categories' encountered during evaluation of rule 'evaluate_for_categories(Articles, 23)==Articles; Shipping=10 '. Unknown function 'evaluate_for_categories' encountered during evaluation of rule 'evaluate_for_categories(Articles, 23)==Articles; Shipping=10 '. Unknown function 'evaluate_for_categories' encountered during evaluation of rule 'evaluate_for_categories(Articles, 23)==Articles; Shipping=10 '. Unknown function 'evaluate_for_categories' encountered during evaluation of rule 'evaluate_for_categories(Articles, 23)==Articles; Shipping=10 '. Unknown function 'evaluate_for_categories' encountered during evaluation of rule 'evaluate_for_categories(Articles, 23)==Articles; Shipping=10 '. Unknown function 'evaluate_for_categories' encountered during evaluation of rule 'evaluate_for_categories(Articles, 23)==Articles; Shipping=10 '. Unknown function 'evaluate_for_categories' encountered during evaluation of rule 'evaluate_for_categories(Articles, 23)==Articles; Shipping=10 '. Unknown function 'evaluate_for_categories' encountered during evaluation of rule 'evaluate_for_categories(Articles, 23)==Articles; Shipping=10 '. Unknown function 'evaluate_for_categories' encountered during evaluation of rule 'evaluate_for_categories(Articles, 23)==Articles; Shipping=10 '. |