VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Shipping by Rules for VirtueMart

We are currently unable to provide proper support!

For the last few months we have been very busy working on some huge, very time-consuming and time-sensitive projects, so our support was very limited and we were unable to provide proper support in our forums! We now have a huge backlog of requests from our customers, which we are trying to clear bit by bit. Unfortunately, this takes longer than we anticipated, so our response time is not yet up to par. We are trying our best to improve this situation as soon as possible.

Sorry for the inconvenience and thank you for your understanding!

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

TOPIC: Shipping rule every 1 -3 products

Shipping rule every 1 -3 products 05 Aug 2018 14:03 #1

  • alialaddine
  • alialaddine's Avatar Topic Author
  • Offline
  • Posts: 2
hello

I need to add a rule where every 1 to 3 products cost 6$

I.E:
1 or 2 or 3 products will cost 6$
4 products will cost 12$
6 products will cost 18$
7 products will cost 21$

and after adding rules the shipping cost is not appearing in the cart

Thanks

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

Shipping rule every 1 -3 products 14 Aug 2018 11:50 #2

Dear Alialaddine,
If I understand you correctly, you want to charge 6$ for each bucket of three products. The number of those buckets is simply the number of articles divided by three and rounded up to the next integer:
Shipping=ceil(Articles/3)*6

Best regards,
Reinhold

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

Shipping rule every 1 -3 products 14 Aug 2018 19:18 #3

  • alialaddine
  • alialaddine's Avatar Topic Author
  • Offline
  • Posts: 2
Is this expression available only with the advanced version?
Since I am getting this response "Evaluation yields unknown value while evaluating rule part 'ceil(Articles/3)*6'."

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

  • Page:
  • 1