R
R
Roman Romanovich2015-03-27 01:15:11
Electronic commerce
Roman Romanovich, 2015-03-27 01:15:11

Woocommerce checkout page customization?

Good day! I ask experts for help, I need to remove several unnecessary imputs from the payment form when placing an order, how can this be done without installing plugins? Here is this form opt.trendtoys.ru/checkout where you need to remove the index, last name, etc.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WP Panda, 2015-03-27
@morflot

add_filter( 'woocommerce_checkout_fields' , 'remove_checkout_fields' );
function remove_checkout_fields( $fields ) {
    unset($fields['billing']['billing_first_name']);
    unset($fields['billing']['billing_last_name']);
    unset($fields['billing']['billing_company']);
    unset($fields['billing']['billing_address_1']);
    unset($fields['billing']['billing_address_2']);
    unset($fields['billing']['billing_city']);
    unset($fields['billing']['billing_postcode']);
    unset($fields['billing']['billing_country']);
    unset($fields['billing']['billing_state']);
    unset($fields['billing']['billing_phone']);
    unset($fields['order']['order_comments']);
    unset($fields['billing']['billing_email']);
    unset($fields['account']['account_username']);
    unset($fields['account']['account_password']);
    unset($fields['account']['account_password-2']);
    return $fields;
}

more details here docs.woothemes.com/document/tutorial-customising-c...

D
Dmitry, 2015-03-28
@verydima

Guys, no one has come across a plugin for woocommerce that would make checkout look like it is done in Rozetka.
I mean on the right infa about the product, and the picture of the product.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question