diff --git a/.env.example b/.env.example index e2a0e64..c3e0305 100644 --- a/.env.example +++ b/.env.example @@ -5,7 +5,7 @@ APP_DEBUG=true APP_URL=http://localhost APP_LOCALE=en -BAGISTO_URL=https://derman.com.tm/dermanhana/webq/api/ +BAGISTO_URL=http://216.250.11.229/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 508e8e2..d55c2de 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('https://derman.com.tm/dermanhana/webq/api/seller/create/product', function ($http) use($dataInput) { + $response = Http::post('http://216.250.11.229/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('https://derman.com.tm/dermanhana/webq/api/seller/update/product', function ($http) use($dataInput) { + $response = Http::post('http://216.250.11.229/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 ec2f62e..b9a8084 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('https://derman.com.tm/dermanhana/webq/api/customer/cart/add/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) { + $response = Http::post('http://216.250.11.229/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('https://derman.com.tm/dermanhana/webq/api/customer/cart', function ($http) use($getToken) { + $response = Http::get('http://216.250.11.229/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('https://derman.com.tm/dermanhana/webq/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) { + $response = Http::delete('http://216.250.11.229/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('https://derman.com.tm/dermanhana/webq/api/customer/cart/remove/'.$dataInput["item_id"], function ($http) use($getToken) { + $response = Http::delete('http://216.250.11.229/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('https://derman.com.tm/dermanhana/webq/api/customer/addresses', function ($http) use($getToken) { + $response = Http::get('http://216.250.11.229/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('https://derman.com.tm/dermanhana/webq/api/customer/addresses', function ($http) use($getToken, $dataInput) { + $response = Http::post('http://216.250.11.229/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('https://derman.com.tm/dermanhana/webq/api/customer/checkout/save-shipping', function ($http) use($getToken, $dataInput) { + $response = Http::post('http://216.250.11.229/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('https://derman.com.tm/dermanhana/webq/api/customer/checkout/save-payment', function ($http) use($getToken, $dataInput) { + $response = Http::post('http://216.250.11.229/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('https://derman.com.tm/dermanhana/webq/api/customer/checkout/save-order', function ($http) use($getToken) { + $response = Http::post('http://216.250.11.229/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('https://derman.com.tm/dermanhana/webq/api/customer/wishlist/'.$dataInput["product_id"], function ($http) use($getToken, $dataInput) { + $response = Http::post('http://216.250.11.229/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('https://derman.com.tm/dermanhana/webq/api/customer/wishlist', function ($http) use($getToken) { + $response = Http::get('http://216.250.11.229/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 471d1c7..11be110 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: `https://derman.com.tm/dermanhana/webq/api/vendors`, + url: `http://216.250.11.229/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 6ceebea..fdb3d44 100644 --- a/themes/dagdan/partials/scripts/addToCart.htm +++ b/themes/dagdan/partials/scripts/addToCart.htm @@ -18,7 +18,7 @@ $.ajax({ async: true, - url: 'https://derman.com.tm/dermanhana/webq/api/customer/cart/add/' + String(prodId), + url: 'http://216.250.11.229/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 e3c886d..8b9158a 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: 'https://derman.com.tm/dermanhana/webq/api/customer/login', + url: 'http://216.250.11.229/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 efecc56..8fcc246 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: `https://derman.com.tm/dermanhana/webq/api/vendor/products/`+ brandId, + url: `http://216.250.11.229/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: `https://derman.com.tm/dermanhana/webq/api/vendor/` + vendorId, + url: `http://216.250.11.229/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 d5d3d09..9622d92 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: `https://derman.com.tm/dermanhana/webq/api/products?` + query + `{{activeLocale}}&category=` + catId + `&limit=` + limit + `&page=` + page, + url: `http://216.250.11.229/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: `https://derman.com.tm/dermanhana/webq/api/categories/` + catId + `?` + query, + url: `http://216.250.11.229/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 8bbdf74..3c9f13c 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: `https://derman.com.tm/dermanhana/webq/api/products?`+query+`{{activeLocale}}&limit=`+limit, + url: `http://216.250.11.229/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 6a93796..0473c7f 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: `https://derman.com.tm/dermanhana/webq/api/products/{{prodId}}/` + query + `{{activeLocale}}`, + url: `http://216.250.11.229/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 ca6d70e..8f7ea96 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: 'https://derman.com.tm/dermanhana/webq/api/customer/register', + url: 'http://216.250.11.229/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 1cefca3..9adb465 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: `https://derman.com.tm/dermanhana/webq/api/products-search?key=`+ key + `&limit=` + limit + `&page=` + page, + url: `http://216.250.11.229/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 32b1016..c3c386f 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: 'https://derman.com.tm/dermanhana/webq/api/products?' + query, + url: 'http://216.250.11.229/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 3988af0..7127068 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: 'https://derman.com.tm/dermanhana/webq/api/seller/delete/product/' + id, + url: 'http://216.250.11.229/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 201dd56..b920539 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: `https://derman.com.tm/dermanhana/webq/api/vendor/{{user.seller_id}}?locale=tm`, + url: `http://216.250.11.229/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: `https://derman.com.tm/dermanhana/webq/api/seller/products/{{user.seller_id}}/{{id}}?locale=tm`, - // url: `https://derman.com.tm/dermanhana/webq/api/products/{{id}}`, + 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}}`, type: 'GET', dataType: 'json', beforeSend: function () { @@ -314,7 +314,7 @@ $.ajax({ type: 'POST', - url: "https://derman.com.tm/dermanhana/webq/api/seller/update/product", + url: "http://216.250.11.229/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 fc43a46..5be2a61 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: `https://derman.com.tm/dermanhana/webq/api/products/{{id}}`, + url: `http://216.250.11.229/app/api/products/{{id}}`, type: 'GET', dataType: 'json', beforeSend: function () { @@ -234,7 +234,7 @@ $.ajax({ type: 'POST', - url: "https://derman.com.tm/dermanhana/webq/api/seller/update/product", + url: "http://216.250.11.229/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 200dbf8..975d06a 100644 --- a/themes/dagdan/partials/sellerApi/getOrder.htm +++ b/themes/dagdan/partials/sellerApi/getOrder.htm @@ -33,7 +33,7 @@ $(document).ready(function () { $.ajax({ - url: `https://derman.com.tm/dermanhana/webq/api/seller/order`, + url: `http://216.250.11.229/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 363525c..d9045a1 100644 --- a/themes/dagdan/partials/sellerApi/getOrders.htm +++ b/themes/dagdan/partials/sellerApi/getOrders.htm @@ -33,7 +33,7 @@ $(document).ready(function () { $.ajax({ - url: `https://derman.com.tm/dermanhana/webq/api/seller/orders`, + url: `http://216.250.11.229/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 5be4a7c..1dc232e 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: `https://derman.com.tm/dermanhana/webq/api/seller/products/{{user.seller_id}}?locale=tm&limit=`+limit + `&page=` + page, + url: `http://216.250.11.229/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 0c31b43..13791d7 100644 --- a/themes/dagdan/partials/sellerApi/getReport.htm +++ b/themes/dagdan/partials/sellerApi/getReport.htm @@ -12,7 +12,7 @@ $(document).ready(function () { $.ajax({ - url: `https://derman.com.tm/dermanhana/webq/api/seller/report`, + url: `http://216.250.11.229/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 a9601ed..1fd7bcd 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 ca73e5b..b9a3223 100644 --- a/themes/nurgul/pages/brands.htm +++ b/themes/nurgul/pages/brands.htm @@ -19,7 +19,7 @@ title = "Brands" {% put scripts %}