VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Forum

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: [SOLVED] Apply shipping rule by order amount 10%

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

  • florihana
  • florihana's Avatar Topic Author
  • Offline
  • Posts: 13
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

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

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

  • florihana
  • florihana's Avatar Topic Author
  • Offline
  • Posts: 13
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?

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

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

  • florihana
  • florihana's Avatar Topic Author
  • Offline
  • Posts: 13
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

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

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

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

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

  • florihana
  • florihana's Avatar Topic Author
  • Offline
  • Posts: 13
Thank you Reinholdd, yes I also got the solution, thank you anyway

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

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

Problem solved.

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

  • Page:
  • 1

VM - Shopping cart

 x 

Cart empty

Login Formular