Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Shipping By Rules for WooCommerce

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:

Free shipping ->10 artikels of category 1 07 Apr 2016 12:13 #1

  • fdsfsdf
  • fdsfsdf's Avatar Topic Author
Hello,

What is the code for the following:
Free shipping if there are 10 and more articles of category 1 are in the cart.

Free shipping ->10 artikels of category 1 07 Apr 2016 23:39 #2

Dear fdsfsdf,
Using the advanced version of the plugin, simply prepend the following rule to your ruleset:
Name="Free shipping"; evaluate_for_categories(Articles, "1")>=10; Shipping=0

Please note that in the shipping plugin for WooCommerce, you need to give the category SLUG in the evaluate_for_categories function. Please check in the WooCommerce setup which slug you gave for category 1.

The evaluate_for_categories function in this particular case calculates the value of the Articles variable restricted to all products in the cart that belong to the given category. In this case, this is the number of articles from category with slug "1".

Best regards,
Reinhold
  • Page:
  • 1