base_url
This commit is contained in:
parent
34c92804f8
commit
b84b8a3331
|
|
@ -5,7 +5,7 @@ APP_DEBUG=true
|
||||||
APP_URL=http://localhost
|
APP_URL=http://localhost
|
||||||
APP_LOCALE=en
|
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
|
ACTIVE_THEME=demo
|
||||||
BACKEND_URI=/admin
|
BACKEND_URI=/admin
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class Seller extends ComponentBase
|
||||||
$dataInput = post();
|
$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('Content-Type', 'application/json');
|
||||||
$http->header('Accept', 'application/json');
|
$http->header('Accept', 'application/json');
|
||||||
|
|
||||||
|
|
@ -62,7 +62,7 @@ class Seller extends ComponentBase
|
||||||
$dataInput = post();
|
$dataInput = post();
|
||||||
// dd($dataInput["status"]);
|
// 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('Content-Type', 'application/json');
|
||||||
$http->header('Accept', 'application/json');
|
$http->header('Accept', 'application/json');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ class Session extends ComponentBase
|
||||||
$dataInput = post();
|
$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('Content-Type', 'application/json');
|
||||||
$http->header('Authorization', 'Bearer '.$getToken);
|
$http->header('Authorization', 'Bearer '.$getToken);
|
||||||
$http->header('Accept', 'application/json');
|
$http->header('Accept', 'application/json');
|
||||||
|
|
@ -90,7 +90,7 @@ class Session extends ComponentBase
|
||||||
{
|
{
|
||||||
$getToken = SessionP::get('nurgulToken');
|
$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);
|
$http->header('Authorization', 'Bearer '.$getToken);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -105,7 +105,7 @@ class Session extends ComponentBase
|
||||||
$getToken = SessionP::get('nurgulToken');
|
$getToken = SessionP::get('nurgulToken');
|
||||||
$dataInput = post();
|
$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);
|
$http->header('Authorization', 'Bearer '.$getToken);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -120,7 +120,7 @@ class Session extends ComponentBase
|
||||||
$getToken = SessionP::get('nurgulToken');
|
$getToken = SessionP::get('nurgulToken');
|
||||||
$dataInput = post();
|
$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);
|
$http->header('Authorization', 'Bearer '.$getToken);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -136,7 +136,7 @@ class Session extends ComponentBase
|
||||||
{
|
{
|
||||||
$getToken = SessionP::get('nurgulToken');
|
$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);
|
$http->header('Authorization', 'Bearer '.$getToken);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -151,7 +151,7 @@ class Session extends ComponentBase
|
||||||
$dataInput = post();
|
$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('Content-Type', 'application/json');
|
||||||
$http->header('Authorization', 'Bearer '.$getToken);
|
$http->header('Authorization', 'Bearer '.$getToken);
|
||||||
$http->header('Accept', 'application/json');
|
$http->header('Accept', 'application/json');
|
||||||
|
|
@ -184,7 +184,7 @@ class Session extends ComponentBase
|
||||||
$dataInput = post();
|
$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('Content-Type', 'application/json');
|
||||||
$http->header('Authorization', 'Bearer '.$getToken);
|
$http->header('Authorization', 'Bearer '.$getToken);
|
||||||
$http->header('Accept', 'application/json');
|
$http->header('Accept', 'application/json');
|
||||||
|
|
@ -211,7 +211,7 @@ class Session extends ComponentBase
|
||||||
$dataInput = post();
|
$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('Content-Type', 'application/json');
|
||||||
$http->header('Authorization', 'Bearer '.$getToken);
|
$http->header('Authorization', 'Bearer '.$getToken);
|
||||||
$http->header('Accept', 'application/json');
|
$http->header('Accept', 'application/json');
|
||||||
|
|
@ -235,7 +235,7 @@ class Session extends ComponentBase
|
||||||
$getToken = SessionP::get('nurgulToken');
|
$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('Content-Type', 'application/json');
|
||||||
$http->header('Authorization', 'Bearer '.$getToken);
|
$http->header('Authorization', 'Bearer '.$getToken);
|
||||||
$http->header('Accept', 'application/json');
|
$http->header('Accept', 'application/json');
|
||||||
|
|
@ -262,7 +262,7 @@ class Session extends ComponentBase
|
||||||
$dataInput = post();
|
$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('Content-Type', 'application/json');
|
||||||
$http->header('Authorization', 'Bearer '.$getToken);
|
$http->header('Authorization', 'Bearer '.$getToken);
|
||||||
$http->header('Accept', 'application/json');
|
$http->header('Accept', 'application/json');
|
||||||
|
|
@ -285,7 +285,7 @@ class Session extends ComponentBase
|
||||||
{
|
{
|
||||||
$getToken = SessionP::get('nurgulToken');
|
$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);
|
$http->header('Authorization', 'Bearer '.$getToken);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ layout = "main"
|
||||||
$('#details_screen').hide();
|
$('#details_screen').hide();
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `http://216.250.11.229/app/api/vendors`,
|
url: `http://216.250.11.229/derman/app/api/vendors`,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
async: true,
|
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',
|
type: 'POST',
|
||||||
headers: { Authorization: 'Bearer {{token}}' },
|
headers: { Authorization: 'Bearer {{token}}' },
|
||||||
processData: false,
|
processData: false,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
fd.append('device_name', deviceName);
|
fd.append('device_name', deviceName);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'http://216.250.11.229/app/api/customer/login',
|
url: 'http://216.250.11.229/derman/app/api/customer/login',
|
||||||
data: fd,
|
data: fd,
|
||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
function getBrandProducts(brandId) {
|
function getBrandProducts(brandId) {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
@ -83,7 +83,7 @@ $('#products_list_{{id}}').append(`{% partial 'product/category-list' url="/prod
|
||||||
function getVendor(vendorId) {
|
function getVendor(vendorId) {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `http://216.250.11.229/app/api/vendor/` + vendorId,
|
url: `http://216.250.11.229/derman/app/api/vendor/` + vendorId,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
function getCatProducts(query, limit, catId, page) {
|
function getCatProducts(query, limit, catId, page) {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
@ -83,7 +83,7 @@
|
||||||
function getCat(query, catId) {
|
function getCat(query, catId) {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
console.log(query);
|
console.log(query);
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
console.log(query);
|
console.log(query);
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
fd.append('device_name', deviceName);
|
fd.append('device_name', deviceName);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'http://216.250.11.229/app/api/customer/register',
|
url: 'http://216.250.11.229/derman/app/api/customer/register',
|
||||||
data: fd,
|
data: fd,
|
||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
function getSearchProducts(limit, key, page) {
|
function getSearchProducts(limit, key, page) {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
console.log(query);
|
console.log(query);
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'http://216.250.11.229/app/api/products?' + query,
|
url: 'http://216.250.11.229/derman/app/api/products?' + query,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@
|
||||||
function deleteProduct(id){
|
function deleteProduct(id){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
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,
|
cache: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
processData: false,
|
processData: false,
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
success: async function (data, textStatus, xhr) {
|
success: async function (data, textStatus, xhr) {
|
||||||
|
|
@ -173,8 +173,8 @@
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `http://216.250.11.229/app/api/seller/products/{{user.seller_id}}/{{id}}?locale=tm`,
|
url: `http://216.250.11.229/derman/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/products/{{id}}`,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
@ -314,7 +314,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
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,
|
data: fd,
|
||||||
cache: false,
|
cache: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,7 @@
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `http://216.250.11.229/app/api/products/{{id}}`,
|
url: `http://216.250.11.229/derman/app/api/products/{{id}}`,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
@ -234,7 +234,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'POST',
|
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,
|
data: fd,
|
||||||
cache: false,
|
cache: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `http://216.250.11.229/app/api/seller/order`,
|
url: `http://216.250.11.229/derman/app/api/seller/order`,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: formData,
|
data: formData,
|
||||||
cache: false,
|
cache: false,
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `http://216.250.11.229/app/api/seller/orders`,
|
url: `http://216.250.11.229/derman/app/api/seller/orders`,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: formData,
|
data: formData,
|
||||||
cache: false,
|
cache: false,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
function getProducts(limit, page) {
|
function getProducts(limit, page) {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `http://216.250.11.229/app/api/seller/report`,
|
url: `http://216.250.11.229/derman/app/api/seller/report`,
|
||||||
type: 'POST',
|
type: 'POST',
|
||||||
data: formData,
|
data: formData,
|
||||||
cache: false,
|
cache: false,
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ function onStart(){
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
|
||||||
<!-- Place favicon.png in the root directory -->
|
<!-- Place favicon.png in the root directory -->
|
||||||
<link rel="shortcut icon" href="http://216.250.11.229/app/vendor/webkul/ui/assets/images/favicon.ico" type="image/x-icon" />
|
<link rel="shortcut icon" href="http://216.250.11.229/derman/app/vendor/webkul/ui/assets/images/favicon.ico" type="image/x-icon" />
|
||||||
<!-- Font Icons css -->
|
<!-- Font Icons css -->
|
||||||
<link rel="stylesheet" href="{{'assets/css/font-icons.css'|theme}}">
|
<link rel="stylesheet" href="{{'assets/css/font-icons.css'|theme}}">
|
||||||
<!-- plugins css -->
|
<!-- plugins css -->
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ title = "Brands"
|
||||||
{% put scripts %}
|
{% put scripts %}
|
||||||
<script>
|
<script>
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `http://216.250.11.229/app/api/attribute-options?locale={{activeLocale}}`,
|
url: `http://216.250.11.229/derman/app/api/attribute-options?locale={{activeLocale}}`,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
async: true,
|
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',
|
type: 'POST',
|
||||||
headers: { Authorization: 'Bearer {{token}}' },
|
headers: { Authorization: 'Bearer {{token}}' },
|
||||||
processData: false,
|
processData: false,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
// console.log(String({{token}}));
|
// console.log(String({{token}}));
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `http://216.250.11.229/app/api/customer/cart`,
|
url: `http://216.250.11.229/derman/app/api/customer/cart`,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
headers: {Authorization: 'Bearer {{token}}'},
|
headers: {Authorization: 'Bearer {{token}}'},
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
async: true,
|
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',
|
type: 'POST',
|
||||||
headers: { Authorization: 'Bearer {{token}}' },
|
headers: { Authorization: 'Bearer {{token}}' },
|
||||||
processData: false,
|
processData: false,
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@
|
||||||
fd.append('device_name', deviceName);
|
fd.append('device_name', deviceName);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'http://216.250.11.229/app/api/customer/login',
|
url: 'http://216.250.11.229/derman/app/api/customer/login',
|
||||||
data: fd,
|
data: fd,
|
||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
function getBrandProducts(query, limit, brandId, page) {
|
function getBrandProducts(query, limit, brandId, page) {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `http://216.250.11.229/app/api/products?brands=`+ brandId + `&` + query + `{{activeLocale}}&limit=` + limit + `&page=` + page,
|
url: `http://216.250.11.229/derman/app/api/products?brands=`+ brandId + `&` + query + `{{activeLocale}}&limit=` + limit + `&page=` + page,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
@ -81,7 +81,7 @@
|
||||||
function getCat(query, catId) {
|
function getCat(query, catId) {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
function getCatProducts(query, limit, catId, page) {
|
function getCatProducts(query, limit, catId, page) {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
@ -81,7 +81,7 @@
|
||||||
function getCat(query, catId) {
|
function getCat(query, catId) {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
console.log(query);
|
console.log(query);
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
console.log(query);
|
console.log(query);
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
fd.append('device_name', deviceName);
|
fd.append('device_name', deviceName);
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'http://216.250.11.229/app/api/customer/register',
|
url: 'http://216.250.11.229/derman/app/api/customer/register',
|
||||||
data: fd,
|
data: fd,
|
||||||
processData: false,
|
processData: false,
|
||||||
contentType: false,
|
contentType: false,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
function getSearchProducts(limit, key, page) {
|
function getSearchProducts(limit, key, page) {
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.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',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
console.log(query);
|
console.log(query);
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'http://216.250.11.229/app/api/products?' + query,
|
url: 'http://216.250.11.229/derman/app/api/products?' + query,
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
beforeSend: function () {
|
beforeSend: function () {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue