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:

Can't get the plugin to work with categories 17 Mar 2017 11:11 #1

  • webone.be
  • webone.be's Avatar Topic Author
In my shop reclamepunt.be i want the prices in the categories: 135, 129, 132, 133, 140, which are listed under "textiel" surcharged with an extra cost of 37€. I tried some rules but they dont't work

this is the syntax i used:

Weight<0.001; 0
Weight<2; Shipping=6
Weight<10; Shipping=7
Weight<30; Shipping=20
Weight>30; Shipping=40
Name=Textielbedrukking; Categories == list (133); ExtraShippingCharge=37
Name=Textielbedrukking; Categories == list (135); ExtraShippingCharge=37
Name=Textielbedrukking; Categories == list (129); ExtraShippingCharge=37
Name=Textielbedrukking; Categories == list (132); ExtraShippingCharge=37

the main problem is that the extra shippong charge for those categories doesn't work

Can't get the plugin to work with categories 18 Mar 2017 18:10 #2

Dear Webone.be,
1. A check "categories == list(133)" means that the list of categories contains ONLY 133, i.e. only products from that category (and no other) category are bought. If I understand you correctly, you want to charge an additional cost of 37€ for the shipping of the whole order if at least one product from either of these categories is in the cart. This should be done with a condition:
Name=Textielbedrukking; Condition=contains_any(Categories, 133, 135, 129, 132, 140); ExtraShippingCharge=37
2. The plugin goes through the rules sequentially and uses the first one that gives a shipping cost. All subsequent rules don't have any effect. As a consequence, all rules with ExtraShippingCharge need to be placed BEFORE rules that give a shipping cost.

So, the whole ruleset should rather be:
Name=Textielbedrukking; Condition=contains_any(Categories, 133, 135, 129, 132, 140); ExtraShippingCharge=37
Weight<0.001; 0
Weight<2; Shipping=6
Weight<10; Shipping=7
Weight<30; Shipping=20
Weight>=30; Shipping=40
Please notice that your rules (in particular the "Weight<2") means that an order of exactly 2kg will get a shiping rate of 7€. If you intend to have orders of weight up to (and equal to) 2kg a shipping rate of 6€, then you'll have to change all < to <=.

Best regards,
Reinhold
  • Page:
  • 1