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:

Free Shipping 15 Apr 2015 17:32 #1

  • kurtgtr
  • kurtgtr's Avatar Topic Author
Hello,

I am looking for an easy way to have free shipping on certain items.

My client wants to keep the current shipping rules but have the ability to assign certain products and/or orders free shipping.

Is this possible and if so, how is it done?

Thanks so much for your help.

Kurt

Free Shipping 18 Apr 2015 14:38 #2

Dear Kurt,
Do you want free shipping for the whole cart, if one of those special products is in the cart? In that case, prepend a rule:
Name=Free shipping; Conditin=contains_any(SKUs, "product1-sku", "product2-sku"); Shipping=0

Or do you want to exclude certain products just from the calculation of the quantities like weight or amount, on which your shipping costs are based? In that case, see e.g. open-tools.net/forum/shipping-by-rules-p...t-of-a-category.html (that thread is about excluding a category, but the same can be done based on skus).

Best regards,
Reinhold

Free Shipping 28 Apr 2015 06:06 #3

  • kurtgtr
  • kurtgtr's Avatar Topic Author
Hi Reinhold,

When I enter the code that you sent me, I get the following error:
Unknown error occurred during evaluation of rule 'Conditin=contains_any(SKUs, "product1-sku", "product2-sku")'.
Assignments are not allows inside expressions (rule given was 'Conditin=contains_any(SKUs, "product1-sku", "product2-sku")')

I am sorry I am slow but not sure what the issue is.

How would I write the code if I wanted the "product SKu" to be "FreeShipping?"

Thanks for you r help.

Kurt

Free Shipping 28 Apr 2015 09:20 #4

Dear Kurt,
You misspellt "Condition", so the plugin thinks you are trying to assign to an unknown variable "Conditin"... It should work if you fix that typo.

Best regards,
Reinhold

Free Shipping 04 May 2015 14:21 #5

  • kurtgtr
  • kurtgtr's Avatar Topic Author
Good morning Reinhold,

Thanks for the quick response. Sorry, my email jumped out of my hands (lol)

I forgot to mention that even when I fix the spelling, I still get the following error:
Unknown error occurred during evaluation of rule 'Condition=contains_any(SKUs, "product1-sku", "product2-sku")'.
Assignments are not allows inside expressions (rule given was 'Condition=contains_any(SKUs, "product1-sku", "product2-sku")')
What I want is any item with the "product SKU=FreeShipping" to have free shipping.

I feel I am so close to the solution, let me know your thoughts.

Thanks you so much!

Kurt

Free Shipping 04 May 2015 23:20 #6

Dear Kurt,
Unfortunately, I'm unable to reproduce the problem. On your installation, what is the PHP version, the Joomla version, the VM version and the version of the plugin?

I have tried the following rule on demo.open-tools.net/ and things work just fine:
Name=Free shipping; Condition=contains_any(SKUs, "pro10", "pro1"); Shipping=0
The two products with these SKUs are "Dangerous Product" and "Standard Produkt 10".Whenever one of them is in the cart, this rule properly offers free shipping, without any error message like you get.

Best regards,
Reinhold
  • Page:
  • 1