Bagisto Forum

    Bagisto

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

    How to Edit Shipping details page Inputs

    General Discussion
    2
    4
    367
    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.
    • M
      Mianarshan last edited by

      I want to show country as Paksitan Only,And states like Punjab,Sindh,Balochistan,Kpk

      and cities be like all cities of pakistan

      ad phone number field to accept only pakistani code +92 number 4BA05514-9308-44F6-88FD-62B020965464.png

      M 1 Reply Last reply Reply Quote 0
      • M
        Mianarshan @Mianarshan last edited by Mianarshan

        @Vaishali-Agarwal @administrators

        please help sir otherwise i’ll lose customers

        1 Reply Last reply Reply Quote 0
        • V
          vishalK last edited by

          Hi @Mianarshan
          If you want to show only Pakistan in countries so there are two ways to do that:

          1. By modifying database table of countries and country_states in which you have to delete all countries except Pakistan from countries table and add states of Pakistan in country_states table.
            OR
          2. Modify Code of two files:- ( 1. customer-new-form.blade.php ) and ( 2. country-state.blade.php )
            You have to remove foreach loop of countries and manually add only Pakistan in option and after that add states of Pakistan in country_state table with code 'PK'.

          You can find above files by following the path given below:

          1. $root_folder/packages/Webkul/Velocity/src/Resources/views/shop/checkout/onepage/customer-new-form.blade.php
          2. $root_folder/packages/Webkul/Velocity/src/Resources/views/shop/customers/account/address/country-state.blade.php

          ** Customer need to fill city manually because selecting city from drop-down is not currently available but you can also do that by making city field as a select field and add options manually.
          ** Currently Bagisto did not save country code with phone number but you can achieve that by doing some customisation in the above two files.

          Important notes:-

          1. These changes are remove whenever you update Bagisto to new version.
          2. Please take backup of project before doing all these changes.

          Thanks !

          M 1 Reply Last reply Reply Quote 0
          • M
            Mianarshan @vishalK last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • First post
              Last post