diff --git a/.env.example b/.env.example index c3e0305..e66b5d9 100644 --- a/.env.example +++ b/.env.example @@ -5,7 +5,7 @@ APP_DEBUG=true APP_URL=http://localhost APP_LOCALE=en -BAGISTO_URL=http://216.250.11.229/app/api/ +BAGISTO_URL=http://216.250.11.229/derman/app/api/ ACTIVE_THEME=demo BACKEND_URI=/admin diff --git a/plugins/romanah/bagisto/components/Seller.php b/plugins/romanah/bagisto/components/Seller.php index d55c2de..f98d20e 100644 --- a/plugins/romanah/bagisto/components/Seller.php +++ b/plugins/romanah/bagisto/components/Seller.php @@ -27,7 +27,7 @@ class Seller extends ComponentBase $dataInput = post(); - $response = Http::post('http://216.250.11.229/app/api/seller/create/product', function ($http) use($dataInput) { + $response = Http::post('http://216.250.11.229/derman/app/api/seller/create/product', function ($http) use($dataInput) { // $http->header('Content-Type', 'application/json'); $http->header('Accept', 'application/json'); @@ -62,7 +62,7 @@ class Seller extends ComponentBase $dataInput = post(); // dd($dataInput["status"]); - $response = Http::post('http://216.250.11.229/app/api/seller/update/product', function ($http) use($dataInput) { + $response = Http::post('http://216.250.11.229/derman/app/api/seller/update/product', function ($http) use($dataInput) { // $http->header('Content-Type', 'application/json'); $http->header('Accept', 'application/json'); diff --git a/plugins/romanah/bagisto/components/Session.php b/plugins/romanah/bagisto/components/Session.php index b9a8084..e6236dd 100644 --- a/plugins/romanah/bagisto/components/Session.php +++ b/plugins/romanah/bagisto/components/Session.php @@ -60,7 +60,7 @@ class Session extends ComponentBase $dataInput = post(); - $response = Http::post('http://216.250.11.229/app/api/customer/cart/add/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) { + $response = Http::post('http://216.250.11.229/derman/app/api/customer/cart/add/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) { // $http->header('Content-Type', 'application/json'); $http->header('Authorization', 'Bearer '.$getToken); $http->header('Accept', 'application/json'); @@ -90,7 +90,7 @@ class Session extends ComponentBase { $getToken = SessionP::get('nurgulToken'); - $response = Http::get('http://216.250.11.229/app/api/customer/cart', function ($http) use($getToken) { + $response = Http::get('http://216.250.11.229/derman/app/api/customer/cart', function ($http) use($getToken) { $http->header('Authorization', 'Bearer '.$getToken); }); @@ -105,7 +105,7 @@ class Session extends ComponentBase $getToken = SessionP::get('nurgulToken'); $dataInput = post(); - $response = Http::delete('http://216.250.11.229/app/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) { + $response = Http::delete('http://216.250.11.229/derman/app/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) { $http->header('Authorization', 'Bearer '.$getToken); }); @@ -120,7 +120,7 @@ class Session extends ComponentBase $getToken = SessionP::get('nurgulToken'); $dataInput = post(); - $response = Http::delete('http://216.250.11.229/app/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) { + $response = Http::delete('http://216.250.11.229/derman/app/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) { $http->header('Authorization', 'Bearer '.$getToken); }); @@ -136,7 +136,7 @@ class Session extends ComponentBase { $getToken = SessionP::get('nurgulToken'); - $response = Http::get('http://216.250.11.229/app/api/customer/addresses', function ($http) use($getToken) { + $response = Http::get('http://216.250.11.229/derman/app/api/customer/addresses', function ($http) use($getToken) { $http->header('Authorization', 'Bearer '.$getToken); }); @@ -151,7 +151,7 @@ class Session extends ComponentBase $dataInput = post(); - $response = Http::post('http://216.250.11.229/app/api/customer/addresses', function ($http) use($getToken, $dataInput) { + $response = Http::post('http://216.250.11.229/derman/app/api/customer/addresses', function ($http) use($getToken, $dataInput) { // $http->header('Content-Type', 'application/json'); $http->header('Authorization', 'Bearer '.$getToken); $http->header('Accept', 'application/json'); @@ -184,7 +184,7 @@ class Session extends ComponentBase $dataInput = post(); - $response = Http::post('http://216.250.11.229/app/api/customer/checkout/save-shipping', function ($http) use($getToken, $dataInput) { + $response = Http::post('http://216.250.11.229/derman/app/api/customer/checkout/save-shipping', function ($http) use($getToken, $dataInput) { // $http->header('Content-Type', 'application/json'); $http->header('Authorization', 'Bearer '.$getToken); $http->header('Accept', 'application/json'); @@ -211,7 +211,7 @@ class Session extends ComponentBase $dataInput = post(); - $response = Http::post('http://216.250.11.229/app/api/customer/checkout/save-payment', function ($http) use($getToken, $dataInput) { + $response = Http::post('http://216.250.11.229/derman/app/api/customer/checkout/save-payment', function ($http) use($getToken, $dataInput) { // $http->header('Content-Type', 'application/json'); $http->header('Authorization', 'Bearer '.$getToken); $http->header('Accept', 'application/json'); @@ -235,7 +235,7 @@ class Session extends ComponentBase $getToken = SessionP::get('nurgulToken'); - $response = Http::post('http://216.250.11.229/app/api/customer/checkout/save-order', function ($http) use($getToken) { + $response = Http::post('http://216.250.11.229/derman/app/api/customer/checkout/save-order', function ($http) use($getToken) { // $http->header('Content-Type', 'application/json'); $http->header('Authorization', 'Bearer '.$getToken); $http->header('Accept', 'application/json'); @@ -262,7 +262,7 @@ class Session extends ComponentBase $dataInput = post(); - $response = Http::post('http://216.250.11.229/app/api/customer/wishlist/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) { + $response = Http::post('http://216.250.11.229/derman/app/api/customer/wishlist/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) { // $http->header('Content-Type', 'application/json'); $http->header('Authorization', 'Bearer '.$getToken); $http->header('Accept', 'application/json'); @@ -285,7 +285,7 @@ class Session extends ComponentBase { $getToken = SessionP::get('nurgulToken'); - $response = Http::get('http://216.250.11.229/app/api/customer/wishlist', function ($http) use($getToken) { + $response = Http::get('http://216.250.11.229/derman/app/api/customer/wishlist', function ($http) use($getToken) { $http->header('Authorization', 'Bearer '.$getToken); }); diff --git a/themes/dagdan/pages/brands.htm b/themes/dagdan/pages/brands.htm index 11be110..18b6586 100644 --- a/themes/dagdan/pages/brands.htm +++ b/themes/dagdan/pages/brands.htm @@ -22,7 +22,7 @@ layout = "main" $('#details_screen').hide(); $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/vendors`, + url: `http://216.250.11.229/derman/app/api/vendors`, type: 'GET', dataType: 'json', beforeSend: function () { diff --git a/themes/dagdan/partials/scripts/addToCart.htm b/themes/dagdan/partials/scripts/addToCart.htm index fdb3d44..cb58c99 100644 --- a/themes/dagdan/partials/scripts/addToCart.htm +++ b/themes/dagdan/partials/scripts/addToCart.htm @@ -18,7 +18,7 @@ $.ajax({ async: true, - url: 'http://216.250.11.229/app/api/customer/cart/add/' + String(prodId), + url: 'http://216.250.11.229/derman/app/api/customer/cart/add/' + String(prodId), type: 'POST', headers: { Authorization: 'Bearer {{token}}' }, processData: false, diff --git a/themes/dagdan/partials/scripts/auth.htm b/themes/dagdan/partials/scripts/auth.htm index 8b9158a..ee5cda1 100644 --- a/themes/dagdan/partials/scripts/auth.htm +++ b/themes/dagdan/partials/scripts/auth.htm @@ -14,7 +14,7 @@ fd.append('device_name', deviceName); $.ajax({ - url: 'http://216.250.11.229/app/api/customer/login', + url: 'http://216.250.11.229/derman/app/api/customer/login', data: fd, processData: false, contentType: false, diff --git a/themes/dagdan/partials/scripts/getByBrand.htm b/themes/dagdan/partials/scripts/getByBrand.htm index 8fcc246..f6c89c9 100644 --- a/themes/dagdan/partials/scripts/getByBrand.htm +++ b/themes/dagdan/partials/scripts/getByBrand.htm @@ -9,7 +9,7 @@ function getBrandProducts(brandId) { $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/vendor/products/`+ brandId, + url: `http://216.250.11.229/derman/app/api/vendor/products/`+ brandId, type: 'GET', dataType: 'json', beforeSend: function () { @@ -83,7 +83,7 @@ $('#products_list_{{id}}').append(`{% partial 'product/category-list' url="/prod function getVendor(vendorId) { $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/vendor/` + vendorId, + url: `http://216.250.11.229/derman/app/api/vendor/` + vendorId, type: 'GET', dataType: 'json', beforeSend: function () { diff --git a/themes/dagdan/partials/scripts/getByCat.htm b/themes/dagdan/partials/scripts/getByCat.htm index 9622d92..206c0d2 100644 --- a/themes/dagdan/partials/scripts/getByCat.htm +++ b/themes/dagdan/partials/scripts/getByCat.htm @@ -9,7 +9,7 @@ function getCatProducts(query, limit, catId, page) { $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/products?` + query + `{{activeLocale}}&category=` + catId + `&limit=` + limit + `&page=` + page, + url: `http://216.250.11.229/derman/app/api/products?` + query + `{{activeLocale}}&category=` + catId + `&limit=` + limit + `&page=` + page, type: 'GET', dataType: 'json', beforeSend: function () { @@ -83,7 +83,7 @@ function getCat(query, catId) { $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/categories/` + catId + `?` + query, + url: `http://216.250.11.229/derman/app/api/categories/` + catId + `?` + query, type: 'GET', dataType: 'json', beforeSend: function () { diff --git a/themes/dagdan/partials/scripts/newProd.htm b/themes/dagdan/partials/scripts/newProd.htm index 3c9f13c..3759f6f 100644 --- a/themes/dagdan/partials/scripts/newProd.htm +++ b/themes/dagdan/partials/scripts/newProd.htm @@ -7,7 +7,7 @@ console.log(query); $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/products?`+query+`{{activeLocale}}&limit=`+limit, + url: `http://216.250.11.229/derman/app/api/products?`+query+`{{activeLocale}}&limit=`+limit, type: 'GET', dataType: 'json', beforeSend: function () { diff --git a/themes/dagdan/partials/scripts/productDetail.htm b/themes/dagdan/partials/scripts/productDetail.htm index 0473c7f..3e138fa 100644 --- a/themes/dagdan/partials/scripts/productDetail.htm +++ b/themes/dagdan/partials/scripts/productDetail.htm @@ -7,7 +7,7 @@ console.log(query); $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/products/{{prodId}}/` + query + `{{activeLocale}}`, + url: `http://216.250.11.229/derman/app/api/products/{{prodId}}/` + query + `{{activeLocale}}`, type: 'GET', dataType: 'json', beforeSend: function () { diff --git a/themes/dagdan/partials/scripts/register.htm b/themes/dagdan/partials/scripts/register.htm index 8f7ea96..76d367f 100644 --- a/themes/dagdan/partials/scripts/register.htm +++ b/themes/dagdan/partials/scripts/register.htm @@ -18,7 +18,7 @@ fd.append('device_name', deviceName); $.ajax({ - url: 'http://216.250.11.229/app/api/customer/register', + url: 'http://216.250.11.229/derman/app/api/customer/register', data: fd, processData: false, contentType: false, diff --git a/themes/dagdan/partials/scripts/search.htm b/themes/dagdan/partials/scripts/search.htm index 9adb465..3345b54 100644 --- a/themes/dagdan/partials/scripts/search.htm +++ b/themes/dagdan/partials/scripts/search.htm @@ -7,7 +7,7 @@ function getSearchProducts(limit, key, page) { $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/products-search?key=`+ key + `&limit=` + limit + `&page=` + page, + url: `http://216.250.11.229/derman/app/api/products-search?key=`+ key + `&limit=` + limit + `&page=` + page, type: 'GET', dataType: 'json', beforeSend: function () { diff --git a/themes/dagdan/partials/scripts/topProds.htm b/themes/dagdan/partials/scripts/topProds.htm index c3c386f..b5a2682 100644 --- a/themes/dagdan/partials/scripts/topProds.htm +++ b/themes/dagdan/partials/scripts/topProds.htm @@ -10,7 +10,7 @@ console.log(query); $(document).ready(function () { $.ajax({ - url: 'http://216.250.11.229/app/api/products?' + query, + url: 'http://216.250.11.229/derman/app/api/products?' + query, type: 'GET', dataType: 'json', beforeSend: function () { diff --git a/themes/dagdan/partials/seller/prod-card.htm b/themes/dagdan/partials/seller/prod-card.htm index 7127068..3576d9a 100644 --- a/themes/dagdan/partials/seller/prod-card.htm +++ b/themes/dagdan/partials/seller/prod-card.htm @@ -28,7 +28,7 @@ function deleteProduct(id){ $.ajax({ type: 'POST', - url: 'http://216.250.11.229/app/api/seller/delete/product/' + id, + url: 'http://216.250.11.229/derman/app/api/seller/delete/product/' + id, cache: false, contentType: false, processData: false, diff --git a/themes/dagdan/partials/seller/prod-update.htm b/themes/dagdan/partials/seller/prod-update.htm index b920539..f67f9b0 100644 --- a/themes/dagdan/partials/seller/prod-update.htm +++ b/themes/dagdan/partials/seller/prod-update.htm @@ -143,7 +143,7 @@ $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/vendor/{{user.seller_id}}?locale=tm`, + url: `http://216.250.11.229/derman/app/api/vendor/{{user.seller_id}}?locale=tm`, type: 'GET', dataType: 'json', success: async function (data, textStatus, xhr) { @@ -173,8 +173,8 @@ $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/seller/products/{{user.seller_id}}/{{id}}?locale=tm`, - // url: `http://216.250.11.229/app/api/products/{{id}}`, + url: `http://216.250.11.229/derman/app/api/seller/products/{{user.seller_id}}/{{id}}?locale=tm`, + // url: `http://216.250.11.229/derman/app/api/products/{{id}}`, type: 'GET', dataType: 'json', beforeSend: function () { @@ -314,7 +314,7 @@ $.ajax({ type: 'POST', - url: "http://216.250.11.229/app/api/seller/update/product", + url: "http://216.250.11.229/derman/app/api/seller/update/product", data: fd, cache: false, contentType: false, diff --git a/themes/dagdan/partials/seller/prod-update_old.htm b/themes/dagdan/partials/seller/prod-update_old.htm index 5be2a61..abe38c7 100644 --- a/themes/dagdan/partials/seller/prod-update_old.htm +++ b/themes/dagdan/partials/seller/prod-update_old.htm @@ -148,7 +148,7 @@ $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/products/{{id}}`, + url: `http://216.250.11.229/derman/app/api/products/{{id}}`, type: 'GET', dataType: 'json', beforeSend: function () { @@ -234,7 +234,7 @@ $.ajax({ type: 'POST', - url: "http://216.250.11.229/app/api/seller/update/product", + url: "http://216.250.11.229/derman/app/api/seller/update/product", data: fd, cache: false, contentType: false, diff --git a/themes/dagdan/partials/sellerApi/getOrder.htm b/themes/dagdan/partials/sellerApi/getOrder.htm index 975d06a..09f693d 100644 --- a/themes/dagdan/partials/sellerApi/getOrder.htm +++ b/themes/dagdan/partials/sellerApi/getOrder.htm @@ -33,7 +33,7 @@ $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/seller/order`, + url: `http://216.250.11.229/derman/app/api/seller/order`, type: 'POST', data: formData, cache: false, diff --git a/themes/dagdan/partials/sellerApi/getOrders.htm b/themes/dagdan/partials/sellerApi/getOrders.htm index d9045a1..3cd3e4c 100644 --- a/themes/dagdan/partials/sellerApi/getOrders.htm +++ b/themes/dagdan/partials/sellerApi/getOrders.htm @@ -33,7 +33,7 @@ $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/seller/orders`, + url: `http://216.250.11.229/derman/app/api/seller/orders`, type: 'POST', data: formData, cache: false, diff --git a/themes/dagdan/partials/sellerApi/getProducts.htm b/themes/dagdan/partials/sellerApi/getProducts.htm index 1dc232e..417b5d5 100644 --- a/themes/dagdan/partials/sellerApi/getProducts.htm +++ b/themes/dagdan/partials/sellerApi/getProducts.htm @@ -6,7 +6,7 @@ function getProducts(limit, page) { $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/seller/products/{{user.seller_id}}?locale=tm&limit=`+limit + `&page=` + page, + url: `http://216.250.11.229/derman/app/api/seller/products/{{user.seller_id}}?locale=tm&limit=`+limit + `&page=` + page, type: 'GET', dataType: 'json', beforeSend: function () { diff --git a/themes/dagdan/partials/sellerApi/getReport.htm b/themes/dagdan/partials/sellerApi/getReport.htm index 13791d7..dc67d0b 100644 --- a/themes/dagdan/partials/sellerApi/getReport.htm +++ b/themes/dagdan/partials/sellerApi/getReport.htm @@ -12,7 +12,7 @@ $(document).ready(function () { $.ajax({ - url: `http://216.250.11.229/app/api/seller/report`, + url: `http://216.250.11.229/derman/app/api/seller/report`, type: 'POST', data: formData, cache: false, diff --git a/themes/nurgul/layouts/mainN.htm b/themes/nurgul/layouts/mainN.htm index 1fd7bcd..8ecb618 100644 --- a/themes/nurgul/layouts/mainN.htm +++ b/themes/nurgul/layouts/mainN.htm @@ -28,7 +28,7 @@ function onStart(){ - + diff --git a/themes/nurgul/pages/brands.htm b/themes/nurgul/pages/brands.htm index b9a3223..2cc5965 100644 --- a/themes/nurgul/pages/brands.htm +++ b/themes/nurgul/pages/brands.htm @@ -19,7 +19,7 @@ title = "Brands" {% put scripts %}