VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Shipping by Rules for VirtueMart
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.

Shipping rule every 1 -3 products 24 Aug 2018 01:49 #4

Dear Alialaddine,
Yes, sorry, I forgot to mention that this function -- like all mathematical expressions -- are available only in the advanced version.

With the free version you can still implement this shipping cost structure, albeit with a bit more effort:
<code>
Articles<=3; Shipping=6
4<=Articles<=6; Shipping=12
7<=Articles<=9; Shipping=18
10<=Articles<=12; Shipping=24
13<=Articles<=15; Shipping=30
....
</code>

Best regards,
Reinhold

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

  • Page:
  • 1

VM - Shopping cart

 x 

Cart empty

Login Formular