Merge pull request #6410 from devansh-webkul/country-data

API Route Updated #6333
This commit is contained in:
Jitendra Singh 2022-05-09 16:35:51 +05:30 committed by GitHub
commit d13444fd08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -201,7 +201,7 @@
},
fetchCountries: function () {
let countriesEndPoint = `${this.$root.baseUrl}/api/countries?pagination=0`;
let countriesEndPoint = `${this.$root.baseUrl}/api/countries?pagination=0&sort=id&order=asc`;
this.$http.get(countriesEndPoint)
.then(response => {

View File

@ -141,7 +141,7 @@
data-vv-as=""{{ __('shop::app.checkout.onepage.country') }}""
@change="validateForm('address-form')">
<option value=""></option>
<option value="" disabled>{{ __('ui::form.select-attribute', ['attribute' => __('shop::app.checkout.onepage.country')]) }}</option>
<option v-for='(country, index) in countries' :value="country.code">
@{{ country.name }}
@ -431,7 +431,7 @@
data-vv-as="&quot;{{ __('shop::app.checkout.onepage.country') }}&quot;"
@change="validateForm('address-form')">
<option value=""></option>
<option value="" disabled>{{ __('ui::form.select-attribute', ['attribute' => __('shop::app.checkout.onepage.country')]) }}</option>
<option v-for='(country, index) in countries' :value="country.code" v-text="country.name"></option>
</select>