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:

No Shipping for Specific Categories 26 Nov 2013 03:26 #1

  • MaritimeLobster
  • MaritimeLobster's Avatar Topic Author
We ship perishable products that must be shipped Express. I would like to put a rule in my Standard shipping so that the customer is not offered a standard shipping option if a product from a specific category is in the cart. This is what I tried but I must be missing something.

NAME=”Perishable Products”; Categories==list(1,5); NO SHIPPING

No Shipping for Specific Categories 28 Nov 2013 03:44 #2

If you don't want to provide a shipping rate for a particular shipment method if a product from category 1 is in the cart, the proper check in the advanced plugin is "1 in Categories". Also, "NoShipping" should not have any space.

HTH,
Reinhold

No Shipping for Specific Categories 08 Dec 2013 21:55 #3

  • MaritimeLobster
  • MaritimeLobster's Avatar Topic Author
If I wanted to use multiple categories, then would it be

NAME=”Perishable Products”; Categories==list(1,5); NOSHIPPING

No Shipping for Specific Categories 11 Dec 2013 22:22 #4

That means that only categories 1 and 5 are in the cart, then no shipping is allowed. As soon as a product has another category, the list will be e.g. list(1,3,5) and no longer equal to list(1,5).

What you rather mean is:
Name="Perishable Products"; 1 in Categories OR 5 in Categories; NoShipping

Starting with plugin version 4.0 (the beta/testing version 3.95 of that version is available on the homepage) there is also the function intersection that will give all elements that are in two given lists (in your case the Categories list and the list of disallowed categories). The rule could then be:
Name="Perishable Products"; length(intersection(Categories, list(1,5)))>0; NoShipping
  • Page:
  • 1