Woocommerce Check out page - by kkszeto8

This topic has 4 replies, 3 voices, and was last updated 8 years, 1 month ago ago by Stan Russell

  • Avatar: kkszeto8
    kkszeto8
    Participant
    February 16, 2016 at 08:13

    Hi Genuis,

    Good Morning!
    Could you please show me how can remove Company Name Field and remove “Star” at Phone field?

    2016 02 16 112444

    Thanks for your help!!

    Keith

    Please, contact administrator
    for this information.
    3 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    February 16, 2016 at 09:49

    Hello,

    To hide the Company name please use this code in Global Custom CSS.

    #billing_company_field{
    display:none;
    }

    To remove a star you need edit wp-content\plugins\woocommerce\includes\class-wc-countries.php file.
    Please find the following code

    $address_fields['billing_phone'] = array(
    					'label'    	=> __( 'Phone', 'woocommerce' ),
    					'required' 	=> true,
    					'type'		=> 'tel',
    					'class'    	=> array( 'form-row-last' ),
    					'clear'    	=> true,
    					'validate' 	=> array( 'phone' ),
    				);

    on line 952-959 and change 'required' => true, to 'required' => false,

    Regards,
    Robert Hall.

    Avatar: kkszeto8
    kkszeto8
    Participant
    February 17, 2016 at 08:06

    Thank you so much my friend!!

    Have a nice day!!

    Thanks
    Keith

    Avatar: stan
    Stan Russell
    Participant
    February 17, 2016 at 08:26

    Hello kkszeto8,

    you are welcome!

    Regards,
    Stan Russell.

  • Viewing 4 results - 1 through 4 (of 4 total)

The issue related to '‘Woocommerce Check out page’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.