• Resolved scrapheap

    (@scrapheap)


    Hi There. When activating “PayPal Payments” as the sole payment processer of my site, the built-in “Place Order” button (woocommerce_checkout_place_order”) is hidden on Chrome and Edge in my tests. This is the way it should function since PayPal has its own buttons and this old “Place Order” button only confuses the customers. Unfortunately, Firefox does not hide this “Place Order” button for some reason and it looks confusing on the checkout page. On my staging server, I changed themes and disabled every plugin on my site except for “WooCommerce”, “PayPal Payments” and “One Page Checkout” to battle test the issue, but the pesky button remains. Any idea about how to get rid of this button in Firefox or will it be fixed in the next update? Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Support Syde Joost

    (@joostvandevijver)

    Hello @scrapheap

    I was not able to reproduce the issue with the difference between Chrome/Edge and Firefox, but I was able to remove the “Place Order” completely and fix your problem as well.

    add_filter('woocommerce_order_button_html', 'remove_order_button_html' );
    function remove_order_button_html( $button ) {
     class
    
        foreach( WC()->cart->get_cart() as $cart_item ) {
            if( $cart_item['data']-> {
                $found = true; 
                break; // We stop the loop
            }
        }
        if( $found )
            $button = '';
    
        return $button;
    }

    You can add this code function.php or your additional CSS in Appearance > Customize.

    There is currently no plans to remove this button from our side. Let us know if this fixes your problem. If not we’ll try to find another solution for you.

    Kind regards,
    Joost

    • This reply was modified 3 years, 4 months ago by Syde Joost.
Viewing 1 replies (of 1 total)
  • The topic ‘Bug With Firefox – “Place Order” button redundancy’ is closed to new replies.