Support » Plugin: WooCommerce Pay for Payment » Is it possible to deactivate the display of the fee (pay) on the cart page?

  • Resolved vickyw21

    (@vickyw21)


    Hi,
    the plugin works great. Thanks for him. On my WooComerce, I used a code to hide shipping on the cart page.

    function disable_shipping_calc_on_cart ($ show_shipping) {
    if (is_cart ()) {
    return false;
    }
    return $ show_shipping;
    }
    add_filter (‘woocommerce_cart_ready_to_calc_shipping’, ‘disable_shipping_calc_on_cart’, 99); !!

    And it works well, shipping is not displayed on the cart page. However, the cash on delivery is displayed on the cart page. Is it also not possible to remove it simply with a short code?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Problem solved…

    function my_pay4pay_handle_cart( $do_apply , $amount , $calculation_base , $current_payment_gateway ) {
    if ( is_cart() )
    return false;
    else
    return $do_apply;
    }
    add_filter( “woocommerce_pay4pay_apply”, ‘my_pay4pay_handle_cart’ , 10 , 4 );

    Plugin Author Karolina Vyskocilova

    (@vyskoczilova)

    Glad to hear that 🙂

    javiersa87

    (@javiersa87)

    @vickyw21 Hi, may I apply that code too? I dont want the bank fee I created shows up in the cart page, just want it to show up after that step (when customer decides to pay either with Paypal or bank transfer).

    Thanks,

    Javier.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.