Login
Register

VirtueMart

WooCommerce

Others

Docs

Support

Blog

About

Forum

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:

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

  • alialaddine
  • alialaddine's Avatar Topic Author
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

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

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

  • alialaddine
  • alialaddine's Avatar Topic Author
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'."

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
  • Page:
  • 1