Cette révision appartient à :
2023-04-28 15:43:17 +05:30
Parent 4943d7fc15
révision b8d88b9cc5
24 fichiers modifiés avec 223 ajouts et 93 suppressions
+1 -1
Voir le fichier
@@ -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
Voir le fichier
@@ -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");