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!
Welcome,
Guest
|
|
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. |
|
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. |
|
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. |
|
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 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) Reinholdd |
Please Log in or Create an account to join the conversation. |
|
Thank you Reinholdd, yes I also got the solution, thank you anyway
|
Please Log in or Create an account to join the conversation. |
|
Problem solved.
|
Please Log in or Create an account to join the conversation. |