Title: minimum amount
Last modified: April 17, 2020

---

# minimum amount

 *  Resolved [cigno76](https://wordpress.org/support/users/cigno76/)
 * (@cigno76)
 * [6 years ago](https://wordpress.org/support/topic/minimum-amount-2/)
 * how can I set a minimum amount if it is not reached?
 * thank you

Viewing 8 replies - 16 through 23 (of 23 total)

[←](https://wordpress.org/support/topic/minimum-amount-2/?output_format=md) [1](https://wordpress.org/support/topic/minimum-amount-2/?output_format=md)
2

 *  Plugin Author [FullStack-ing](https://wordpress.org/support/users/fullstackhouse/)
 * (@fullstackhouse)
 * [6 years ago](https://wordpress.org/support/topic/minimum-amount-2/page/2/#post-12707242)
 * add this please (remove the old one)
 *     ```
       add_filter( 'wc_smart_cod_fee', 'change_cod_price' );
   
       function change_cod_price( $price ) {
         if( is_numeric( $price ) && intval( $price ) === 0 ) {	
           return $price;
         }
         return $price < 3 ? 3 : $price;
       }
       ```
   
    -  This reply was modified 6 years ago by [FullStack-ing](https://wordpress.org/support/users/fullstackhouse/).
 *  Thread Starter [cigno76](https://wordpress.org/support/users/cigno76/)
 * (@cigno76)
 * [6 years ago](https://wordpress.org/support/topic/minimum-amount-2/page/2/#post-12709452)
 * old removed.
    unfortunately, for amounts less than 3 euro it does not set 3 euro
   again.
 *  Plugin Author [FullStack-ing](https://wordpress.org/support/users/fullstackhouse/)
 * (@fullstackhouse)
 * [6 years ago](https://wordpress.org/support/topic/minimum-amount-2/page/2/#post-12709790)
 * Please send me a screenshot of your plugin settings
 *  Thread Starter [cigno76](https://wordpress.org/support/users/cigno76/)
 * (@cigno76)
 * [6 years ago](https://wordpress.org/support/topic/minimum-amount-2/page/2/#post-12710027)
 * Hello,
    the screenshots below
 * [https://veroliolivo.it/support/](https://veroliolivo.it/support/)
 *  Plugin Author [FullStack-ing](https://wordpress.org/support/users/fullstackhouse/)
 * (@fullstackhouse)
 * [6 years ago](https://wordpress.org/support/topic/minimum-amount-2/page/2/#post-12710649)
 * Hi again! I just checked with a similar configuration and it works as it should.
 * Please make sure you copy pasted the above block code correctly, you don’t left
   anything from the previous block codes I sent you, and that you don’t use any
   other plugin to manipulate COD.
 * If the problem still persists you could try that:
 *     ```
       add_filter( 'wc_smart_cod_fee', 'change_cod_price' );
   
       function change_cod_price( $price ) {
         if( $price === '0' ) {	
           return $price;
         }
         return $price < 3 ? 3 : $price;
       }
       ```
   
 * But as I told you before, the previous snippet works just fine (sets the 3e minimum)
   in the same scenario as per your screenshot.
 *  Thread Starter [cigno76](https://wordpress.org/support/users/cigno76/)
 * (@cigno76)
 * [6 years ago](https://wordpress.org/support/topic/minimum-amount-2/page/2/#post-12711217)
 * Dear Vetsos,
    I confirm that it now works perfectly!
 * thank you very much
    Nicola
 *  Plugin Author [FullStack-ing](https://wordpress.org/support/users/fullstackhouse/)
 * (@fullstackhouse)
 * [6 years ago](https://wordpress.org/support/topic/minimum-amount-2/page/2/#post-12711825)
 * Hi Nicola, happy to be of a help!
 * Send some of your fine tasting oil when you can! 🙂
 * Best Regards
 *  Thread Starter [cigno76](https://wordpress.org/support/users/cigno76/)
 * (@cigno76)
 * [6 years ago](https://wordpress.org/support/topic/minimum-amount-2/page/2/#post-12711952)
 * 🙂 ah ah! Thanks again!
 * Best Regards
    Nicola

Viewing 8 replies - 16 through 23 (of 23 total)

[←](https://wordpress.org/support/topic/minimum-amount-2/?output_format=md) [1](https://wordpress.org/support/topic/minimum-amount-2/?output_format=md)
2

The topic ‘minimum amount’ is closed to new replies.

 * ![](https://ps.w.org/wc-smart-cod/assets/icon-128x128.png?rev=3372621)
 * [Smart COD for WooCommerce](https://wordpress.org/plugins/wc-smart-cod/)
 * [Support Threads](https://wordpress.org/support/plugin/wc-smart-cod/)
 * [Active Topics](https://wordpress.org/support/plugin/wc-smart-cod/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wc-smart-cod/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wc-smart-cod/reviews/)

 * 23 replies
 * 2 participants
 * Last reply from: [cigno76](https://wordpress.org/support/users/cigno76/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/minimum-amount-2/page/2/#post-12711952)
 * Status: resolved