• Resolved smavilio

    (@smavilio)


    Hi, great plugin.

    I need to setup a 2,5% percentage on the Total Cart Amount (products + shipping + VAT) but if the fee is less than 6,20 the fee must be 6,20.

    How can I setup?

    I have read the other thread and I applied this to my functions.php
    function change_cod_price( $price ) {
    return $price < 6.20 ? 6.20 : $price;
    }

    But I am afraid is not working for % fee.

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author FullStack-ing

    (@fullstackhouse)

    Hi,
    percentage fee is exactly the scenario this filter is developed for.
    Maybe you forgot the add_filter part?

    
    add_filter( 'wc_smart_cod_fee', 'change_cod_price' );
    
    function change_cod_price( $price ) {
      return $price < 6.2 ? 6.2 : $price;
    }
    
    Thread Starter smavilio

    (@smavilio)

    add_filter( 'wc_smart_cod_fee', 'change_cod_price' );
    
    function change_cod_price( $price ) {
      return $price < 6.20 ? 6.20 : $price;
    }

    Yes this what I put but is charging always the minimum fee 6.20 maybe is the 0 ? i should use 6.2?

    is the calculation made on the Cart Total? (products + shipping + VAT) ??

    Thanks!

    Plugin Author FullStack-ing

    (@fullstackhouse)

    Hi,
    Please send me a screenshot with your plugin settings

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Percentage with Minimum Amount, Fee on Cart Total’ is closed to new replies.