VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Advanced Ordernumbers 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: Combining different shipping methods in cart...

Combining different shipping methods in cart... 21 Jun 2016 21:18 #1

  • kendrickdk
  • kendrickdk's Avatar Topic Author
  • Offline
  • Posts: 1
I created a method of shipping based on weight. For example: 1 item will equal $9.95, 2 items will equal $19.90, etc. This is for items where they only pay for shipping. I have another group of items that the customer pays based on price. For example: .01 to 29.99 will be 4.95 shipping, 30 to 99 dollars will be 9.95, 100 and above is free. I also want to have some retail items with free shipping.

How do i combine shipping in the cart if a customer buys from more than one method?

Thank you,

Ken.

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

Combining different shipping methods in cart... 23 Jun 2016 22:26 #2

Dear Ken,
Each shipping method in VirtueMart is completely separate from each other. You will have to combine the item- and price-based shipping costs into one method. How do you distinguish between weight-based and quantity-based articles and articles with free shipping?

I suppose you'll have to use categories and define custom variables that hold the number of quantity-based articles and the total price of price-based articles. E.g.
Variable=QuantityBase; Value=evaluate_for_categories(articles, 142, 143, 144)
Variable=AmountBase; Value=evaluate_for_categories(Amount, 123, 124, 125, 126)
Variable=AmountCost; Value=0
Variable=AmountCost; 0<AmountBase<30; Value=4.95
Variable=AmountCost; 30<=AmountBase<100; Value=9.95
Shipping=9.95*QuantityBase + AmountCost

All articles that are not in any of the categories used in the evaluate_for_categories(...) function will simply have no effect on shipping costs, i.e. they get free shipping.

Best regards,
Reinhold

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

  • Page:
  • 1

VM - Shopping cart

 x 

Cart empty

Login Formular