Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

Removing fields from WC checkout

This topic is resolved
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • alex
    Participant
    • 81 Topics
    • 259 Posts
    @abourne

    Hello, applied some snippets to customise the checkout field. Works great – for desktop. For mobile, the UI is off.

    Do you have suggestions to make the fields properly display in full width for mobile?

    add_filter( 'woocommerce_product_tabs', 'woo_remove_product_tabs', 98 );
    function woo_remove_product_tabs( $tabs ) {
    unset( $tabs['additional_information'] );
    return $tabs;
    }
    
    /* WooCommerce: The Code Below Removes The Additional Information Title Text */
    add_filter('woocommerce_enable_order_notes_field', '__return_false');
    
    add_filter( 'woocommerce_checkout_fields' , 'custom_override_checkout_fields' );
    
    function custom_override_checkout_fields( $fields ) {
    unset($fields['billing']['billing_company']);
    unset($fields['billing']['billing_address_1']);
    unset($fields['billing']['billing_address_2']);
    unset($fields['billing']['billing_country']);
    unset($fields['billing']['billing_state']);
    unset($fields['order']['order_comments']);;
    unset($fields['account']['account_username']);
    unset($fields['account']['account_password']);
    unset($fields['account']['account_password-2']);
    return $fields;
    }

    Hopefully these snippets are helpful and save time for others, as WC’s documentation did not quite provide this exact solution so clearly.

    Regards

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Hi @abourne,

    This is an issue with Gwangi, the checkout should not be displayed in two columns on mobile. This will be fixed in the next update, thank you for your feedback. In the meantime you can use this CSS snippet:

    @media screen and (max-width: 768px) {
    	#customer_details .col-1,
    	#customer_details .col-2 {
    		flex: 0 0 100%;
    		max-width: 100%;
    		padding-right: 0;
    	}
    }

    Please paste this CSS in the Custom CSS panel of your Customizer and it should resolve the issue.

    Regards

    alex
    Participant
    • 81 Topics
    • 259 Posts
    @abourne

    Worked perfectly. Appreciate it.

    alex
    Participant
    • 81 Topics
    • 259 Posts
    @abourne

    .

    Themosaurus
    Keymaster
    Themosaurus Support
    • 1 Topics
    • 1675 Posts
    @themosaurus

    Hi @abourne,

    We just wanted to notify you that we release a new update of Gwangi (v 1.1.9) that contains a fix for this issue.

    So, if you update your theme, you will be able to remove the CSS snippet that we previously gave you.

    As a reminder, to update your theme, you can download and install the Envato Market plugin (https://envato.com/market-plugin/) on your WordPress site.

    Once the plugin is installed and activated, go to “Envato Market” in your admin menu and follow the instructions under “Activate Envato API Connection”.

    When this is done, you will see your purchased themes under the “Themes” tab and you should be able to update your Gwangi theme from there by clicking the “Update available” button.

    Finally, don’t forget to update your child theme if you are using one, and update all the Grimlock plugins to their latest versions.

    Regards,

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Removing fields from WC checkout’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site