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!

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Shipping price per-products 01 Oct 2016 11:42 #1

  • robertoettorre
  • robertoettorre's Avatar Topic Author
  • Offline
  • Posts: 1
Hi!
I would like to set a single shipping price per product. I've read two thread about this topic but I would set my virtumart in that way:
Product A: shipping price 18€. the customer buy 2 product A then the shipping price shuold be 18+18= 36.
What rules have I to write?

Thanks in advance.

Please Log in or Create an account to join the conversation.

Shipping price per-products 14 Oct 2016 18:20 #2

Dear RobertoEttorre,
if every product cots 18€ shipping, then you can implement shipping as:
Shipping=18*Articles
If you use only the free plugin, you cannot use multiplication, but have to explicitly check each number:
Articles==1; Shipping=18
Articles==2; Shipping=36
Articles==3; Shipping=54
Articles==4; Shipping=72
...

if you have different shipping costs per product, things get more complicated. If you have a fixed, limited number of products, you can use:
Shipping=18*evaluate_for_skus(Articles, "SKU-ProductA") + 19*evaluate_for_skus(Articles, "SKU-ProductB") + ....

If you have shipping costs per category (i.e. each article from category 21 cost e.g. 18€, each article from category 22 costs 25€, etc.), you can use a similar Approach, using evaluate_for_categories:
Shipping=18*evaluate_for_categories(Articles, 21) + 25*evaluate_for_categories(Articles, 22) + ....

Best regards,
Reinhold

Please Log in or Create an account to join the conversation.

  • Page:
  • 1

VM - Shopping cart

 x 

Cart empty

Login Formular