Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Shipping by Rules for VirtueMart

IMPORTANT ANNOUNCEMENT: Plugin development ceased, all plugins made available freely (GPL)

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!

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Applying a rule to a category 10 Feb 2015 03:54 #1

  • info@websiteprojects.com.au
  • info@websiteprojects.com.au's Avatar Topic Author
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

Applying a rule to a category 12 Feb 2015 12:25 #2

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

Applying a rule to a category 12 Feb 2015 22:32 #3

  • info@websiteprojects.com.au
  • info@websiteprojects.com.au's Avatar Topic Author
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

Applying a rule to a category 19 Feb 2015 13:53 #4

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

Applying a rule to a category 20 Feb 2015 00:44 #5

  • info@websiteprojects.com.au
  • info@websiteprojects.com.au's Avatar Topic Author
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 '.

Applying a rule to a category 20 Feb 2015 17:53 #6

Hello,
Sorry, I forgot to mention that you will need the latest version 5.0 of the plugin.

Best regards,
Reinhold
  • Page:
  • 1