code added
Cette révision appartient à :
+1
-1
@@ -194,7 +194,7 @@ debugger;
|
||||
|
||||
addToCartFun();
|
||||
debugger;
|
||||
toasterHelper('success',"Item added to cart");
|
||||
toasterHelper('success',"Item added to cart","toast-top-right");
|
||||
|
||||
$('#addtocart').html('Go to cart');
|
||||
});
|
||||
|
||||
+7
-7
@@ -130,7 +130,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
|
||||
async function appendFormDetails(){
|
||||
let cookieRes = COOKIE_HELPER_ACTIONS.getCookie();
|
||||
console.log(cookieRes);
|
||||
const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}`);
|
||||
const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`);
|
||||
let res = JSON.parse(response.result)[0];
|
||||
debugger;
|
||||
const {cityid, lobid,organizationname,addressline,cityname,phonenumber,zipcode,name } =res;
|
||||
@@ -152,7 +152,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
|
||||
async function getAddressRes() {
|
||||
let cookieRes = COOKIE_HELPER_ACTIONS.getCookie();
|
||||
console.log(cookieRes);
|
||||
const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}`);
|
||||
const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`);
|
||||
|
||||
let res = JSON.parse(response.result);
|
||||
console.log(res, 'befores');
|
||||
@@ -285,7 +285,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
|
||||
|
||||
let cookieRes = COOKIE_HELPER_ACTIONS.getCookie();
|
||||
let { userId, name } = cookieRes;
|
||||
const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/getbillinginfo/contactid/${cookieRes.userId}`);
|
||||
const { errorMsg, isError, response } = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/anwiauth/getbillinginfo/contactid/${cookieRes.userId}`);
|
||||
|
||||
let resAnwi = JSON.parse(response.result);
|
||||
console.log(resAnwi, 'befores');
|
||||
@@ -521,7 +521,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
|
||||
}
|
||||
|
||||
async function getCountryId(){
|
||||
const countryRes = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/products/getcountry');;
|
||||
const countryRes = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/anwiauth/getcountry');;
|
||||
|
||||
if (countryRes.isError) {
|
||||
alert("something went wrong");
|
||||
@@ -564,7 +564,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
|
||||
}
|
||||
|
||||
async function getCountryStateCurrency() {
|
||||
const countryRes = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/products/getcountry');;
|
||||
const countryRes = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/anwiauth/getcountry');;
|
||||
|
||||
if (countryRes.isError) {
|
||||
alert("something went wrong");
|
||||
@@ -585,7 +585,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
|
||||
}
|
||||
}
|
||||
|
||||
const stateRes = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/products/getcities/countryid/${countryID}`);
|
||||
const stateRes = await API_SERVICES_ACTIONS.getAPIService(`apis/v4/bizgaze/integrations/anwiauth/getcities/countryid/${countryID}`);
|
||||
|
||||
if (stateRes.isError) {
|
||||
alert("something went wrong");
|
||||
@@ -607,7 +607,7 @@ let Newuser =window.localStorage.getItem('isaccountCreated');
|
||||
|
||||
|
||||
|
||||
const currencyRes = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/products/getcurrencies');
|
||||
const currencyRes = await API_SERVICES_ACTIONS.getAPIService('apis/v4/bizgaze/integrations/anwiauth/getcurrencies');
|
||||
|
||||
if(currencyRes.isError){
|
||||
alert("something went wrong");
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur