WordPress.org

Ready to get started?Download WordPress

Forums

WooCommerce - excelling eCommerce
Regarding Checkout (3 posts)

  1. devilzkrazy
    Member
    Posted 4 months ago #

    Hello,

    I have enabled Facebook Connect on my woocommerce website. During the checkout, it asks for first name, last name, email address, company name, etc. But my wordpress account already extracts first name, last name, from facebook, and displays it in the profile.

    I want the first name, last name, email address to be synced with the wordpress one. Please help.

    Also, I wanted to remove the field "Company Name" completely. And wanted to add "Address Line 3" in my whole of woocommerce.

    Please can someone help me with these. I got more changes actually.

    Thank you.
    Anish Jajodia.

    https://wordpress.org/plugins/woocommerce/

  2. Daniel Espinoza
    Member
    Posted 4 months ago #

    Here's a useful doc that will show you how to remove the fields from checkout:
    http://docs.woothemes.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/

    Here's the code:

    // Hook in
    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
    
    // Our hooked in function - $fields is passed via the filter!
    function custom_override_checkout_fields( $fields ) {
         // remove company
         unset($fields['order']['billing_company']);
    
         // add Billing Address3
    $fields['shipping']['billing_address3'] = array(
            'label'     => __('Address 3', 'woocommerce'),
        'placeholder'   => _x('Address 3', 'placeholder', 'woocommerce'),
        'required'  => false,
        'class'     => array('form-row-wide'),
        'clear'     => true
         );
    
         return $fields;
    }
  3. Daniel Espinoza
    Member
    Posted 4 months ago #

    I don't use Facebook, so am no help there.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.