Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    HIde unnecessary countries on checkout page and cart address

    General Discussion
    2
    3
    502
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      Nayan7030 last edited by

      Hello All,

      I want to display only one county on checkout page and customer address form.

      Also hide the Zip/Postal code for the same.

      Could you please guide us how to do it?

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by devansh-webkul

        Hi, @Nayan7030,

        1. For countries, you need to check the countries table in the database.
        2. For zip/postal, there are two themes default and velocity. For velocity, you need to check in this file packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage/customer-new-form.blade.php and for default, you need to check this file packages/Webkul/Shop/src/Resources/views/checkout/onepage/customer-info.blade.php.
        3. Important note, you need to handle the validation part also because in backend postal code is required. So for that, just comment the line in the file i.e. packages/Webkul/Checkout/src/Http/Requests/CustomerAddressForm.php you don't require.

        After that you need to run php artisan vendor:publish --all --force. This will reflect all your changes to the resources folder. Before hitting this command I would suggest you take back up of resources folder first.

        1 Reply Last reply Reply Quote 1
        • N
          Nayan7030 last edited by

          @devansh-webkul, Thank you so much for your quick help.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post