Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Removing all fields from checkout page

$
0
0

Replies: 1

Hi, I wanted to remove everything from the checkout page so all that is left is the product details and place order button.

So far with the help of this code

`add_filter( ‘woocommerce_checkout_fields’ , ‘remove_billing_fields_from_checkout’ );
function remove_billing_fields_from_checkout( $fields ) {
$fields[ ‘billing’ ] = array();
return $fields;
}`

from this forum I was able to remove the billing details but not the rest (see screenshot).
Screenshot

Can someone help me with a snippet to remove the rest so the product detail table and place order button will shift to the left.

Thankyou.


Viewing all articles
Browse latest Browse all 59525

Trending Articles