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.50 Please 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.50 Best 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 '. |