minimum amount
-
how can I set a minimum amount if it is not reached?
thank you
-
I found the solution in the settings.
Fantastic plugin, my compliments
Hi @cigno76,
Thanks for your kind words!
If you like, consider to add a rating for our plugin!Best Regards!
Hi Stratos Vetsos,
sure, you deserved my 5 stars!Unfortunately, I thought I had solved the minimum delivery amount, but I was wrong.
I ask you help me for two simple improvements and then the plugin is perfect on my site: https://veroliolivo.it/checkout/
1) Set a minimum amount of € 3 for payment on delivery.
2) Change the string “payment on delivery” (“pagamento alla consegna” on my web site )Hope it can help me solve.
Ciao,
NicolaHi Nicola,
1)
– Find our plugin setting titled: Disable if cart amount is greater or equal than
– Click on disable to switch on enable
– Add 3 on the box2) Add this to your functions.php
add_filter( 'wc_smart_cod_fee_title', 'change_cod_title' ); function change_cod_title( $title ) { return 'pagamento alla consegna'; }Best Regards
Hi Stratos Vetsos,
1) I must set a minimum amount of € 3 for payment on delivery. Sorry I explained myself wrong.
2) Perfect!
Regards,
Nicola1. What do you mean ? Do you want to charge 3 euro for cash on delivery? Please explain your need more clear!
Best Regards
Hi again,
So you want for any cart amount less than 3 euros to charge 3 euros, for any cart amount bigger than 3 euro to charge 100% of the cart amount?
Here I am!
I simply want for any “payment on delivery” amount less than 3 euros to charge 3 euros
thanks for your patience and support
NicolaHow do you setup the extra fee? is a percentage of the cart?
Please add this in your functions.php and let me know
add_filter( 'wc_smart_cod_fee', 'change_cod_price' ); function change_cod_price( $price ) { return $price < 3 ? 3 : $price; }Perfect!
You have been very kind.
Thanks a lot.Nicola
Dear Stratos Vetsos,
just an improvement. If amount is 0 euro (Charge extra fee differently for one shipping zone; fixed to 0 euro) it must remain at 0 euro, no 3 euros.
Thanks in advance
NicolaHi again,
Please change to thisadd_filter( 'wc_smart_cod_fee', 'change_cod_price' ); function change_cod_price( $price ) { if( $price === 0 ) { return $price; } return $price < 3 ? 3 : $price; }unfortunately it always returns 3 euro instead of 0 euro.
The topic ‘minimum amount’ is closed to new replies.