• Resolved Atoupro

    (@atoupro)


    Hi,

    I’d like to enable cash on delivery if cart amount is more than 65€. Is is possible?
    I see a field “Disable if cart amount is greater than”. I’d need the opposite “Enable if cart amount is greater than” ou “Disable if cart amount is lower than”.

    Thanks in advance.
    Best regards.

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

    (@fullstackhouse)

    Hi Atoupro,

    It’s not possible right now, but we will include this on the next update along with some other features.

    Please stand by, the update will be released soon.

    If this is extremely urgent for you, you can edit the file public/class-wc-smart-cod-public.php

    line: 293

    and change ->
    if( $total >= $settings[ ‘cart_amount_restriction’ ] )

    to

    if( $total < $settings[ ‘cart_amount_restriction’ ] )

    and still enter the amount ( 65€ ) on field “Disable if cart amount is greater than”

    Best Regards,
    FullStack Team

    Plugin Author FullStack-ing

    (@fullstackhouse)

    If you decide to change it yourself please copy paste the edited line from here and not from the previous comment

    if( $total < $settings[ 'cart_amount_restriction' ] )

    • This reply was modified 7 years, 4 months ago by FullStack-ing.
    Thread Starter Atoupro

    (@atoupro)

    Hi,

    Thank you very much for the code and your reactivity ?? Great support!
    Have a nice day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Disable if cart amount is lower than’ is closed to new replies.