Modify Checkout Fields for Digital Products

This topic has 5 replies, 3 voices, and was last updated 2 months, 3 weeks ago ago by Andrew Mitchell

  • Avatar: digitalsphere
    digitalsphere
    Participant
    September 24, 2024 at 04:46

    I hope this message finds you well. We are currently using the Xstore theme for our online store, where we sell digital products. We have a few problem regarding the checkout process:

    Hide Billing Address Field: Since we only sell digital products, we would like to remove the billing address field from the checkout. We only want to retain the following fields:

    Email
    Phone Number
    Full Name

    Enable Account Registration and Login: We would like to implement a feature that allows users to register for an account during the checkout process. This will facilitate a smoother experience for our customers when purchasing our digital products.

    Could you please provide guidance on how to achieve these modifications? Your assistance would be greatly appreciated.

    Thank you for your support!

    Please, contact administrator
    for this information.
    4 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    September 24, 2024 at 07:33

    Hi @digitalsphere,

    1. Please add the following code under functions.php file locates in your child theme:

    
    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
    function custom_override_checkout_fields( $fields ) {
    	unset($fields['billing']['billing_address_1']);
    	unset($fields['billing']['billing_address_2']);
    	unset($fields['billing']['billing_company']);
    	unset($fields['billing']['billing_city']);
    	unset($fields['billing']['billing_postcode']);
    	unset($fields['billing']['billing_country']);
    	unset($fields['billing']['billing_state']);
    // Add or remove fields as needed
    	return $fields;
    }
    

    Or if you don’t want to use the custom code, you can try with this 3rd party plugin: https://wordpress.org/plugins/woo-checkout-field-editor-pro/

    2. **Enable Account Registration and Login**: To allow users to register for an account during the checkout process, you can enable this feature from your WordPress dashboard. Go to WooCommerce > Settings > Accounts & Privacy, and check the option to “Allow customers to create an account during checkout.” This setting will add the registration fields to your checkout page.

    If you need further customization or encounter any issues implementing these changes, please do not hesitate to contact us.

    Best Regards,
    8Theme’s Team

    Avatar: digitalsphere
    digitalsphere
    Participant
    September 25, 2024 at 00:53

    Hello thanks for reply
    we tried all the solutions : custom code , plugins and we faild to hide the billing address field
    we need more help

    Avatar: Justin
    Luca Rossi
    Support staff
    September 25, 2024 at 08:19

    Hi @digitalsphere,

    We don’t see the address field now: https://prnt.sc/S_vgE5Em8zFZ

    Did you sort it out?

    Best Regards,
    8Theme’s Team

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    September 26, 2024 at 01:54

    Dear digitalsphere,

    Choosing our theme reflects your commitment to quality, and for that, we’re genuinely grateful. As we constantly strive to elevate your experience, your feedback is an invaluable gift. Could you kindly take a moment to rate our product with 5 stars on ThemeForest?

    Click here to share your insights: https://themeforest.net/downloads

    Your support fuels our journey, and we appreciate it more than words can express.

    Best Regards,
    The 8Theme Team

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

The issue related to '‘Modify Checkout Fields for Digital Products’' 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.