Billing Detail requirements Issue – Apartment information is an issue

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

  • Avatar: Ajaz
    Ajaz
    Participant
    June 3, 2024 at 10:35

    Hi,

    On the billing page, the “apartment” information is a required field but does not have an asterisk to state it is a required field. The red bar error message appears when you click to place the order and then displays the red bar message.

    This is very confusing because not everybody has an apartment or suite address and after trying a few attempts, this works when I entered my property number, again, this is confusing.

    Can this “apartment” option be changed from a non “required” field please? I want this to show but not set as mandatory so it can be left blank to avoid confusing customers and resulting in a poor experience.

    Thanks.

    Files is visible for topic creator and
    support staff only.
    4 Answers
    Avatar: Justin
    Luca Rossi
    Support staff
    June 3, 2024 at 11:22

    Hi @Ajaz,

    To make the Billing Address 2 to optional, please add the following code to your plugin snippet code as we suggest in the previous topic:

    
    add_filter( 'woocommerce_checkout_fields' , 'xa_checkout_change_required_fields_to_optional' );
    function xa_checkout_change_required_fields_to_optional( $fields ) {
         $fields['billing']['billing_address_2']['required'] = false;
         return $fields;
    }
    

    Hope it helps!

    Avatar: Ajaz
    Ajaz
    Participant
    June 3, 2024 at 12:07

    Hi,

    On my previous topic, I asked the question “I have downloaded, installed, and activated the plugin, where do I enter the custom code?”

    Please advise.

    Thanks.

    Avatar: Justin
    Luca Rossi
    Support staff
    June 4, 2024 at 05:09

    Hi @Ajaz,

    We’ve just replied to that ticket.

    Can you please check?

    Thank you!

    Avatar: Andrew Mitchell
    Andrew Mitchell
    Support staff
    June 10, 2024 at 11:20

    Dear Ajaz,

    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 '‘Billing Detail requirements Issue – Apartment information is an issue’' 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.