Add locale on product listing

This commit is contained in:
Amanmyrat 2023-09-14 23:50:39 +05:00
parent 4c9d754d02
commit 466a6a33f8
2 changed files with 3 additions and 3 deletions

View File

@ -144,7 +144,7 @@
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://nurgul.com.tm/app/api/vendor/{{user.seller_id}}`, url: `https://nurgul.com.tm/app/api/vendor/{{user.seller_id}}??locale=tm`,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
success: async function (data, textStatus, xhr) { success: async function (data, textStatus, xhr) {
@ -175,7 +175,7 @@
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://nurgul.com.tm/app/api/seller/products/{{user.seller_id}}/{{id}}`, url: `https://nurgul.com.tm/app/api/seller/products/{{user.seller_id}}/{{id}}?locale=tm`,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {

View File

@ -6,7 +6,7 @@
function getProducts(limit, page) { function getProducts(limit, page) {
$(document).ready(function () { $(document).ready(function () {
$.ajax({ $.ajax({
url: `https://nurgul.com.tm/app/api/seller/products/{{user.seller_id}}?limit=`+limit + `&page=` + page, url: `https://nurgul.com.tm/app/api/seller/products/{{user.seller_id}}?locale=tm&limit=`+limit + `&page=` + page,
type: 'GET', type: 'GET',
dataType: 'json', dataType: 'json',
beforeSend: function () { beforeSend: function () {