• Resolved mcrapanzano

    (@mcrapanzano)


    Hi Tom, there’s a little bug related to custom input field.
    When I select the custom payment method I created with your plugin, the page automatically reload and hide the the additional input field, so that I can’t collect it from users.
    Could you help me please?

Viewing 1 replies (of 1 total)
  • If anyone else has a similar issue – the problem was in cart total being zero (because of the discount). By default, WooCommerce hides all payment gateways (and therefore gateways’ input fields) if cart total is zero. This can be fixed by adding a single line to your (child) theme’s functions.php file:

    
    add_filter( 'woocommerce_cart_needs_payment', '__return_true' );
    
Viewing 1 replies (of 1 total)
  • The topic ‘Issue with custom field’ is closed to new replies.