• Resolved shemakeswebsites

    (@shemakeswebsites)


    Hello I will be limiting stores on my site to a specific state and country in the US. How can I set the default state and country on the store settings form on the vendor dashboard so that my users don’t need to select that detail? Thank you.

Viewing 1 replies (of 1 total)
  • Hello @shemakeswebsites ,

    Thanks for reaching out.

    If you want to modify the address field from the store settings page you need to open this file – dokan-lite/templates/settings/address-form.php

    Now if you want to remove the selection of other countries then replace line #100 with this code –
    <option value="BD" selected="selected">Bangladesh</option> – change the value and country name according to your choice.

    Do the same for line #141 for state –
    <option value="BD-13" selected="selected">Dhaka</option>

    You can use the browser’s inspect tool to copy the correct HTML from the form.

    After you make the modification keep the modified file in your-theme/dokan/settings folder with exact same name.

    Thank you.

Viewing 1 replies (of 1 total)
  • The topic ‘Default Store State & Country’ is closed to new replies.