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:

bulky goods - shipping by categories AND articles 03 Feb 2016 17:23 #1

  • bonnsport
  • bonnsport's Avatar Topic Author
Hello Forum, hello Herr Kainhofer
i`m not sure if it would be possible in future, but i have to ask.
Would it be possible to insert into advanced shipping by rules something like that?
Name=Orders with glass products get an extra charge; (contains_any(Categories, 1234, 9876) AND ArticlesPerCategories <=4); ExtraShippingCharge=100
Name=Orders with glass products get an extra charge; (contains_any(Categories, 1234, 9876) AND ArticlesPerCategories >4); ExtraShippingCharge=200
Name=Light package; Weight<50; Shipping=3
Name=Heavy package; Weight>=50; Shipping=5

We need it for bulky goods.

Regards
Thomas

Ich hoffe, Sie konnten meine Anfrage verstehen (und haben eine positive Antwort für mich).

bulky goods - shipping by categories AND articles 06 Feb 2016 18:08 #2

Dear Thomas,
If I understand you correctly, you want to add a surcharge of 100 or 200 if 1-4 or more than 4 products from these two categories together are bought.

This can be implemented like:
Name=Orders with glass products get an extra charge; 1<=evaluate_for_categories(Articles, 1234, 9876)<=4; ExtraShippingCharge=100
Name=Orders with glass products get an extra charge; 4<evaluate_for_categories(Articles, 1234, 9876); ExtraShippingCharge=200
Name=Light package; Weight<50; Shipping=3
Name=Heavy package; Weight>=50; Shipping=5

The evaluate_for_categories function returns the number of articles from the two categories 1234 and 9876.

If by ArticlesPerCategories<=4 you mean that each of the two categories needs to have up to 4 articles individually, then the rules would need some adjustments, but would still follow a similar logic as above.

Best regards,
Reinhold
  • Page:
  • 1