Viewing 15 replies - 1 through 15 (of 23 total)
  • Thread Starter cigno76

    (@cigno76)

    I found the solution in the settings.

    Fantastic plugin, my compliments

    Plugin Author FullStack-ing

    (@fullstackhouse)

    Hi @cigno76,
    Thanks for your kind words!
    If you like, consider to add a rating for our plugin!

    Best Regards!

    Thread Starter cigno76

    (@cigno76)

    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,
    Nicola

    Plugin Author FullStack-ing

    (@fullstackhouse)

    Hi 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 box

    2) 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

    Thread Starter cigno76

    (@cigno76)

    Hi Stratos Vetsos,

    1) I must set a minimum amount of € 3 for payment on delivery. Sorry I explained myself wrong.

    2) Perfect!

    Regards,
    Nicola

    Plugin Author FullStack-ing

    (@fullstackhouse)

    1. What do you mean ? Do you want to charge 3 euro for cash on delivery? Please explain your need more clear!

    Best Regards

    Thread Starter cigno76

    (@cigno76)

    Dear Stratos Vetsos, payment on delivery must starts from 3 euro. example: 2 euro, displaying 3 euro; 9 euro, displaying 9 euro. I hope I explained myself better. thanks, Nicola

    • This reply was modified 4 years, 7 months ago by cigno76.
    • This reply was modified 4 years, 7 months ago by cigno76.
    Plugin Author FullStack-ing

    (@fullstackhouse)

    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?

    Thread Starter cigno76

    (@cigno76)

    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
    Nicola

    Plugin Author FullStack-ing

    (@fullstackhouse)

    How do you setup the extra fee? is a percentage of the cart?

    Plugin Author FullStack-ing

    (@fullstackhouse)

    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;
    }
    
    Thread Starter cigno76

    (@cigno76)

    Perfect!
    You have been very kind.
    Thanks a lot.

    Nicola

    Thread Starter cigno76

    (@cigno76)

    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
    Nicola

    Plugin Author FullStack-ing

    (@fullstackhouse)

    Hi again,
    Please change to this

    
    add_filter( 'wc_smart_cod_fee', 'change_cod_price' );
    
    function change_cod_price( $price ) {
      if( $price === 0 ) {
        return $price;
      }
      return $price < 3 ? 3 : $price;
    }
    
    Thread Starter cigno76

    (@cigno76)

    unfortunately it always returns 3 euro instead of 0 euro.

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘minimum amount’ is closed to new replies.