Login
Register

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!

×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Apply shipping rule by order amount 10% 01 Feb 2018 09:37 #1

  • forihana
  • forihana's Avatar Topic Author
Hi experts
I need to apply the rules as followed:
for example:

Products Total = 11.97

so shipment discount = float(11.97 * 0.1 ) = 1.2

so shipment total = 29.80 - 1.2 = 28.6

And if ( shipment total <= 5) { return shipment total = 5 }

Is this possible?

thank you so much

Apply shipping rule by order amount 10% 01 Feb 2018 13:31 #2

  • forihana
  • forihana's Avatar Topic Author
I used this rule:
Name=International; Amount>20; Variable=BasePrice*0.1;Shipping-=Variable

the result is not in Subtraction instead its add the price

does we could have Shipping value which is reduced use subtraction symbol?

Apply shipping rule by order amount 10% 01 Feb 2018 14:24 #3

  • forihana
  • forihana's Avatar Topic Author
hI
I end out with this rule
Variable=ShipCost; Value=ShippingWithTax
Variable=ShipReducedRate; Value=0.1*BasePrice
Variable=ShipFinalCost; Value=ShipCost-ShipReducedRate
Name="Shipping complex function";Shipping= max(5, ShipFinalCost)

but ShipFinalCost can't get the value, could anyone tell me why the value not show correctly?

thank you so much

Apply shipping rule by order amount 10% 17 Feb 2018 10:24 #4

Dear Florihana,
If you want to automatically subtract an amount (10% of the order amount in your case), you can use the ExtraShippingCharge function:
ExtraShippingCharge = -0.1*Amount
This will subtract 10% of the total product prices from all subsequent rules (of this method only; shipping costs from other shipping methods are not affected!).
However, this will be added (or with negative sign subtracted) in all cases, even if the total shipping costs will turn negative. So implementing the floor with 5 is not possible.

To include the $5 floor on shipping costs, you'll have to manually include it in ALL rules:
Variable=ShipDiscount; Value = 0.1*Amount
Weight<10; Shipping=max(5, 12-ShipDiscount)
Weight<20; Shipping=max(5, 123-ShipDiscount)
Weight<30; Shipping=max(5, 1234-ShipDicscount)
Best regards,
Reinholdd

Apply shipping rule by order amount 10% 19 Feb 2018 12:13 #5

  • forihana
  • forihana's Avatar Topic Author
Thank you Reinholdd, yes I also got the solution, thank you anyway

[SOLVED] Apply shipping rule by order amount 10% 25 Feb 2018 19:26 #6

Problem solved.
  • Page:
  • 1