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:

Shipping Cost by weight and free shipping merge 18 Dec 2014 11:00 #1

  • dimpap
  • dimpap's Avatar Topic Author
I bought Advanced Shipping by Rules" for VirtueMart 2
and I set the shipping rules by weight.
weight<3000; Shipping=22.32
weight<=10000; Shipping=30.92
weight<=20000; Shipping=43.20
weight<=30000; Shipping=85.45

I want to define in specific products and specific categories the shipping cost to be free.
The example shows ( "product-a" in SKUs; Shipping=0) Or (Categories==list(1234); Shipping=0)
but I can not merge them to one
You can help how to write the rule;
Thanks.

Shipping Cost by weight and free shipping merge 28 Dec 2014 22:30 #2

Hello,
Do you want free shipping for the whole order if "product-a" is in the order (and potentially other articles), or if ONLY "product-a" is in the order?
As similar question goes for your categories restriction.

If you want to give free shipping if at least one article of "product-a" or category 1234 is in the order, then the rule (to be placed above your other rules) would be:
Name=Free shipping; contains_any(Categories, 1234) OR contains_any(SKUs, "product-a"); Shipping=0

If you want to give free shipping only if ALL articles in the order are either product-a or from category 1234, then things are a bit more complicated. Basically, the rule would count how many items of product A and how many items of category 1234 are ordered and compare this with the total number of articles (assuming that product A does NOT have category 1234 assigned):
Variable=FreeShippingCount; Value=evaluate_for_categories(Articles, 1234)+evaluate_for_skus(Articles,"product-a")
Name=Free shipping for product A and category 1234, but nothing else; FreeShippingCount==Articles; Shipping=0

If product A is in category 1234, too, then things get much easier (because then there is no additional condition on product A, just for category 1234).

Best regards,
Reinhold

Shipping Cost by weight and free shipping merge 28 Dec 2014 22:35 #3

PS: I should add that the evaluate_for_categories and evaluate_for_skus functions are available only in the BETA test version 4.99 of the plugin, not in earlier versions...

Shipping Cost by weight and free shipping merge 09 Mar 2015 14:45 #4

  • maria_pascual
  • maria_pascual's Avatar
I had version 4.3. I have downloaded version 5.1. Due to I have not found any "Update" option I have installed version 5.1. How do I know that version 4.3 has been overridden by 5.1?

In addition to this, what I would like to do is that products from 2 specific categories had shippment 0€. The shipment costs are based on product weight. So, if the client buys 3 products and one of them is from one of the 2 categories the plugin must consider the weight of the 2 products which do not belong to that category and consider the shipment cost for that category 0€. For example:
Product A : 1kg
Product B: 1Kg
Product c: 1Kg and belongs to a special category

The plugin must consider then: Product A (1kg) + Product B (1Kg) : 2Kg total weight to consider for shipment costs. Product C has nos shipment cost.

Which is the rule that I should apply? I was trying with:

Name=de 0 a 2Kg; 0<Weight-evaluate_for_categories(Weight, 1234, 5678)<=2; 08000<=ZIP<08999; shipping=4.5

Thank you in advanced,

Shipping Cost by weight and free shipping merge 10 Mar 2015 17:46 #5

I had version 4.3. I have downloaded version 5.1. Due to I have not found any "Update" option I have installed version 5.1. How do I know that version 4.3 has been overridden by 5.1?


In the Joomla plugin manager you can see the versions of each installed plugin.

In addition to this, what I would like to do is that products from 2 specific categories had shippment 0€. The shipment costs are based on product weight. So, if the client buys 3 products and one of them is from one of the 2 categories the plugin must consider the weight of the 2 products which do not belong to that category and consider the shipment cost for that category 0€. For example:
Product A : 1kg
Product B: 1Kg
Product c: 1Kg and belongs to a special category

The plugin must consider then: Product A (1kg) + Product B (1Kg) : 2Kg total weight to consider for shipment costs. Product C has nos shipment cost.

Which is the rule that I should apply? I was trying with:

Name=de 0 a 2Kg; 0<Weight-evaluate_for_categories(Weight, 1234, 5678)<=2; 08000<=ZIP<08999; shipping=4.5


That rule looks good. I would probably write it the same way.
Do you have any problems with it?

Best regards,
Reinhold

Shipping Cost by weight and free shipping merge 10 Mar 2015 20:14 #6

  • maria_pascual
  • maria_pascual's Avatar
Hello again

I have continued testing and I have got more errors. I better open a new thread.
  • Page:
  • 1