1function configAboshop(commonConfig, CONFIG_ABOSHOP) { 2 commonConfig.dico = {}; 3 commonConfig.target = CONFIG_ABOSHOP.target; 4 commonConfig.scope = CONFIG_ABOSHOP.scope; 5 6 commonConfig.usegetapi = CONFIG_ABOSHOP.usegetapi; 7 commonConfig.url = CONFIG_ABOSHOP.url; 8 commonConfig.contenttype = CONFIG_ABOSHOP.contenttype; 9 commonConfig.authentificationheader = CONFIG_ABOSHOP.authentificationheader; 10 11 commonConfig.shopWithSubscriptionNumericOnly = CONFIG_ABOSHOP.shopWithSubscriptionNumericOnly; 12 if(commonConfig.shopWithSubscriptionNumericOnly === undefined){ 13 commonConfig.shopWithSubscriptionNumericOnly = false; 14 } 15 16 commonConfig.contenttypeold = 'application/x-www-form-urlencoded'; 17 commonConfig.urlold = CONFIG_ABOSHOP.url; 18 19 if (CONFIG_ABOSHOP.useRewriteUrl === undefined) { 20 commonConfig.useRewriteUrl = false; 21 } else { 22 commonConfig.useRewriteUrl = CONFIG_ABOSHOP.useRewriteUrl; 23 } 24 25 if (CONFIG_ABOSHOP.emailEditableAccountPage === undefined) { 26 commonConfig.emailEditableAccountPage = true; 27 } else { 28 commonConfig.emailEditableAccountPage = CONFIG_ABOSHOP.emailEditableAccountPage; 29 } 30 31 commonConfig.forcecgvcs = CONFIG_ABOSHOP.forcecgvcs; 32 33 if (CONFIG_ABOSHOP.forceAskInfoCustomerInfoOnDelivery === undefined) { 34 commonConfig.forceAskInfoCustomerInfoOnDelivery = false; 35 } else { 36 commonConfig.forceAskInfoCustomerInfoOnDelivery = CONFIG_ABOSHOP.forceAskInfoCustomerInfoOnDelivery; 37 } 38 39 if (CONFIG_ABOSHOP.addCodeNiiInAddressFormPro === undefined) { 40 commonConfig.addCodeNiiInAddressFormPro = false; 41 } else { 42 commonConfig.addCodeNiiInAddressFormPro = CONFIG_ABOSHOP.addCodeNiiInAddressFormPro; 43 } 44 45 if (CONFIG_ABOSHOP.usedomain === undefined) { 46 commonConfig.usedomain = false; 47 } else { 48 commonConfig.usedomain = CONFIG_ABOSHOP.usedomain; 49 } 50 51 if (CONFIG_ABOSHOP.rooturl === undefined || commonConfig.usedomain) { 52 commonConfig.rooturl = ''; 53 } else { 54 commonConfig.rooturl = '/' + CONFIG_ABOSHOP.rooturl; 55 } 56 57 if (CONFIG_ABOSHOP.checkmdpaboweb === undefined) { 58 commonConfig.checkmdpaboweb = false; 59 } else { 60 commonConfig.checkmdpaboweb = CONFIG_ABOSHOP.checkmdpaboweb; 61 } 62 63 commonConfig.vendorsNameEnabled = CONFIG_ABOSHOP.vendorsNameEnabled; 64 65 commonConfig.nocmsimg = CONFIG_ABOSHOP.nocmsimg; 66 commonConfig.forceversion = CONFIG_ABOSHOP.forceversion; 67 //url absolute du repertoire core ex : https://boutique.maboutique.fr/core ou https://localhost/aboshop/core ou https://preprod.aboshop.fr/core 68 commonConfig.commonroot = CONFIG_ABOSHOP.baseUrl + "/core"; 69 //nom du repertoire de la boutique dans /clients 70 commonConfig.clientshop = CONFIG_ABOSHOP.clientDir; 71 //url absolute de la boutique ex : https://boutique.maboutique.fr ou https://localhost/aboshop/clients/maboutique ou https://preprod.aboshop.fr/clients/maboutique 72 commonConfig.clientroot = CONFIG_ABOSHOP.baseClientUrl; 73 //url relative vers la boutique à partir de la racine ex: / ou /aboshop/clients/maboutique/ ou /clients/maboutique/ 74 commonConfig.baseurl = document.getElementsByTagName('base')[0].getAttribute("href"); 75 commonConfig.captchaPublicKey = CONFIG_ABOSHOP.captchaPublicKey; 76 commonConfig.codeIsoDefaut = CONFIG_ABOSHOP.codeIsoDefaut; 77 commonConfig.enTest = CONFIG_ABOSHOP.enTest; 78 commonConfig.callnumberAtLeastOn = CONFIG_ABOSHOP.callnumberAtLeastOn; 79 commonConfig.serveurcible = {}; 80 commonConfig.defaultcsvalues = []; 81 commonConfig.tokenqiota = CONFIG_ABOSHOP.tokenqiota; 82 commonConfig.urlcbqiota = CONFIG_ABOSHOP.urlcbqiota; 83 commonConfig.urlforgotpassword = CONFIG_ABOSHOP.urlforgotpassword; 84 commonConfig.forcetimeout = CONFIG_ABOSHOP.forcetimeout; 85 commonConfig.forcetimeoutalive = CONFIG_ABOSHOP.forcetimeoutalive; 86 commonConfig.pooolid = CONFIG_ABOSHOP.pooolid; 87 commonConfig.pixelfacebookid = CONFIG_ABOSHOP.pixelfacebookid; 88 commonConfig.googleTagManagerCustomUrl = CONFIG_ABOSHOP.googleTagManagerCustomUrl; 89 commonConfig.pianoSite = CONFIG_ABOSHOP.pianoSite; 90 91 if (CONFIG_ABOSHOP.pixelfacebookid !== undefined) { 92 commonConfig.facebookConsent = true; 93 } else { 94 commonConfig.facebookConsent = false; 95 } 96 if (CONFIG_ABOSHOP.googletagmanagerid !== undefined) { 97 commonConfig.googletagmanagerOld = true; 98 commonConfig.googletagmanagerid = CONFIG_ABOSHOP.googletagmanagerid; 99 commonConfig.gaConsent = true; 100 commonConfig.googleTagManagerGA4 = CONFIG_ABOSHOP.googleTagManagerGA4 !== undefined ? CONFIG_ABOSHOP.googleTagManagerGA4 : false; 101 } else { 102 commonConfig.googletagmanagerOld = false; 103 commonConfig.gaConsent = false; 104 commonConfig.googleTagManagerGA4 = false; 105 } 106 107 commonConfig.googletagmanagerdatalayer = CONFIG_ABOSHOP.googletagmanagerdatalayer; 108 if (CONFIG_ABOSHOP.googletagmanagerdatalayer === undefined) { 109 commonConfig.googletagmanagerdatalayer = 'dataLayer'; 110 } 111 112 commonConfig.linkedintagid = CONFIG_ABOSHOP.linkedintagid; 113 commonConfig.atInternetId = CONFIG_ABOSHOP.atInternetId; 114 commonConfig.didomiId = CONFIG_ABOSHOP.didomiId; 115 116 // gestion d'une authentification oAuth externe 117 commonConfig.oAuthExterne = CONFIG_ABOSHOP.oAuthExterne; 118 if (commonConfig.oAuthExterne !== undefined) { 119 if (commonConfig.oAuthExterne.scope === undefined) { 120 commonConfig.oAuthExterne.scope = '*'; 121 } 122 commonConfig.oAuthExterne.grant_type = 'password'; 123 if (commonConfig.oAuthExterne.displaySilentIframe === undefined) { 124 commonConfig.oAuthExterne.displaySilentIframe = false; 125 } 126 if (commonConfig.oAuthExterne.ssoQiota === undefined) { 127 commonConfig.oAuthExterne.ssoQiota = true; 128 } 129 } 130 131 // gestion des modules 132 if (CONFIG_ABOSHOP.module != undefined) { 133 commonConfig.module = CONFIG_ABOSHOP.module; 134 } 135 136 commonConfig.prerenderEnabled = CONFIG_ABOSHOP.prerenderEnabled; 137 if (commonConfig.prerenderEnabled === undefined) { 138 commonConfig.prerenderEnabled = false; 139 } 140 141 if (CONFIG_ABOSHOP.domtom === undefined) { 142 commonConfig.domtom = []; 143 } else { 144 commonConfig.domtom = CONFIG_ABOSHOP.domtom; 145 } 146 147 commonConfig.profilDefault = CONFIG_ABOSHOP.profilDefault; 148 commonConfig.footerconf = CONFIG_ABOSHOP.footerconf; 149 commonConfig.headerconf = CONFIG_ABOSHOP.headerconf; 150 commonConfig.formulaireconf = CONFIG_ABOSHOP.formulaireconf; 151 152 commonConfig.gratuitSurPrelevement = CONFIG_ABOSHOP.gratuitSurPrelevement; 153 if (commonConfig.gratuitSurPrelevement === undefined) { 154 commonConfig.gratuitSurPrelevement = true; 155 } 156 157 if (CONFIG_ABOSHOP.paiementsqiota === undefined) { 158 commonConfig.paiementsqiota = []; 159 } else { 160 commonConfig.paiementsqiota = CONFIG_ABOSHOP.paiementsqiota; 161 } 162 163 if (CONFIG_ABOSHOP.codeTarifInQiotaOrder === undefined) { 164 commonConfig.codeTarifInQiotaOrder = false; 165 } else { 166 commonConfig.codeTarifInQiotaOrder = CONFIG_ABOSHOP.codeTarifInQiotaOrder; 167 } 168 169 if (CONFIG_ABOSHOP.privateshop === undefined) { 170 commonConfig.privateshop = false; 171 } else { 172 commonConfig.privateshop = CONFIG_ABOSHOP.privateshop; 173 } 174 175 if (CONFIG_ABOSHOP.payboxActif === undefined) { 176 commonConfig.payboxActif = false; 177 } else { 178 commonConfig.payboxActif = CONFIG_ABOSHOP.payboxActif; 179 } 180 181 if (CONFIG_ABOSHOP.createaccountenabled === undefined) { 182 commonConfig.createaccountenabled = true; 183 } else { 184 commonConfig.createaccountenabled = CONFIG_ABOSHOP.createaccountenabled; 185 } 186 187 if (CONFIG_ABOSHOP.redirectDelayAfterAccountActivation === undefined) { 188 commonConfig.redirectDelayAfterAccountActivation = 2; 189 } else { 190 commonConfig.redirectDelayAfterAccountActivation = CONFIG_ABOSHOP.redirectDelayAfterAccountActivation; 191 } 192 193 if (CONFIG_ABOSHOP.removediese === undefined) { 194 commonConfig.removediese = true; 195 } else { 196 commonConfig.removediese = CONFIG_ABOSHOP.removediese; 197 } 198 199 if (CONFIG_ABOSHOP.btnCartOnly === undefined) { 200 commonConfig.btnCartOnly = false; 201 } else { 202 commonConfig.btnCartOnly = CONFIG_ABOSHOP.btnCartOnly; 203 } 204 205 if (CONFIG_ABOSHOP.tryhidezone === undefined) { 206 commonConfig.tryhidezone = false; 207 } else { 208 commonConfig.tryhidezone = CONFIG_ABOSHOP.tryhidezone; 209 } 210 211 if (CONFIG_ABOSHOP.mincarcontact === undefined) { 212 commonConfig.mincarcontact = 70; 213 } else { 214 commonConfig.mincarcontact = CONFIG_ABOSHOP.mincarcontact; 215 } 216 217 if (CONFIG_ABOSHOP.onlyTelephonOnAdresseForm === undefined) { 218 commonConfig.onlyTelephonOnAdresseForm = false; 219 } else { 220 commonConfig.onlyTelephonOnAdresseForm = CONFIG_ABOSHOP.onlyTelephonOnAdresseForm; 221 } 222 223 /* Ajout GC - A supprimer quand Paypal OK pour CANARDPC */ 224 if (CONFIG_ABOSHOP.paypalindispo === undefined) { 225 commonConfig.paypalindispo = false; 226 } else { 227 commonConfig.paypalindispo = CONFIG_ABOSHOP.paypalindispo; 228 } 229 230 if (CONFIG_ABOSHOP.payboxIndispo === undefined) { 231 commonConfig.payboxIndispo = false; 232 } else { 233 commonConfig.payboxIndispo = CONFIG_ABOSHOP.payboxIndispo; 234 } 235 236 if (CONFIG_ABOSHOP.slimpayinfos === undefined) { 237 commonConfig.slimpayinfos = false; 238 } else { 239 commonConfig.slimpayinfos = CONFIG_ABOSHOP.slimpayinfos; 240 } 241 242 if (CONFIG_ABOSHOP.hidePublicationSubscription === undefined) { 243 commonConfig.hidePublicationSubscription = true; 244 } else { 245 commonConfig.hidePublicationSubscription = CONFIG_ABOSHOP.hidePublicationSubscription; 246 } 247 248 if (CONFIG_ABOSHOP.hideDateSubscriptions === undefined) { 249 commonConfig.hideDateSubscriptions = false; 250 } else { 251 commonConfig.hideDateSubscriptions = CONFIG_ABOSHOP.hideDateSubscriptions; 252 } 253 254 if (CONFIG_ABOSHOP.nbproductsbyline !== undefined) { 255 commonConfig.nbproductsbyline = CONFIG_ABOSHOP.nbproductsbyline; 256 } else { 257 commonConfig.nbproductsbyline = 4; 258 } 259 260 if (CONFIG_ABOSHOP.nbCharTruncateLibProduct !== undefined) { 261 commonConfig.nbCharTruncateLibProduct = CONFIG_ABOSHOP.nbCharTruncateLibProduct; 262 } else { 263 commonConfig.nbCharTruncateLibProduct = 30; 264 } 265 266 if (CONFIG_ABOSHOP.pooolurls !== undefined) {
267 commonConfig.pooolurls = CONFIG_ABOSHOP.pooolurls; 268 } else { 269 commonConfig.pooolurls = []; 270 } 271 272 if (CONFIG_ABOSHOP.pixelfacebookurls !== undefined) { 273 commonConfig.pixelfacebookurls = CONFIG_ABOSHOP.pixelfacebookurls; 274 } else { 275 commonConfig.pixelfacebookurls = []; 276 } 277 278 if (CONFIG_ABOSHOP.atInternetUrls !== undefined) { 279 commonConfig.atInternetUrls = CONFIG_ABOSHOP.atInternetUrls; 280 } else { 281 commonConfig.atInternetUrls = []; 282 } 283 284 if (CONFIG_ABOSHOP.numberTelPortableOff === undefined || !(CONFIG_ABOSHOP.numberTelPortableOff !== undefined && CONFIG_ABOSHOP.numberTelPortableOff === true)) { 285 commonConfig.numberTelPortableOff = true; 286 } else { 287 commonConfig.numberTelPortableOff = false; 288 } 289 290 if (CONFIG_ABOSHOP.numberFaxOff === undefined || !(CONFIG_ABOSHOP.numberFaxOff !== undefined && CONFIG_ABOSHOP.numberFaxOff === true)) { 291 commonConfig.numberFaxOff = true; 292 } else { 293 commonConfig.numberFaxOff = false; 294 } 295 296 if (CONFIG_ABOSHOP.firstNameRequired === undefined || CONFIG_ABOSHOP.firstNameRequired === true) { 297 commonConfig.firstNameRequired = true; 298 } else { 299 commonConfig.firstNameRequired = false; 300 } 301 302 if (CONFIG_ABOSHOP.companyRequired === undefined || CONFIG_ABOSHOP.companyRequired === false) { 303 commonConfig.companyRequired = false; 304 } else { 305 commonConfig.companyRequired = true; 306 } 307 308 if (CONFIG_ABOSHOP.slidertwo !== undefined && CONFIG_ABOSHOP.slidertwo === true) { 309 commonConfig.slidertwo = true; 310 commonConfig.sliderone = false; 311 commonConfig.banniere = false; 312 } else if (CONFIG_ABOSHOP.banniere !== undefined && CONFIG_ABOSHOP.banniere === true) { 313 commonConfig.banniere = true; 314 commonConfig.slidertwo = false; 315 commonConfig.sliderone = false; 316 } else { 317 commonConfig.sliderone = true; 318 commonConfig.slidertwo = false; 319 commonConfig.banniere = false; 320 } 321 322 if (CONFIG_ABOSHOP.sliderBottom === undefined || CONFIG_ABOSHOP.sliderBottom === false) { 323 commonConfig.sliderTop = true; 324 commonConfig.sliderBottom = false; 325 } else { 326 commonConfig.sliderBottom = CONFIG_ABOSHOP.sliderBottom; 327 commonConfig.sliderTop = false; 328 } 329 330 331 if (CONFIG_ABOSHOP.categorieshomelink === undefined || !(CONFIG_ABOSHOP.categorieshomelink !== undefined && CONFIG_ABOSHOP.categorieshomelink === true)) { 332 commonConfig.categorieshomelink = false; 333 } else { 334 commonConfig.categorieshomelink = true; 335 } 336 337 if (CONFIG_ABOSHOP.categorieshomeselect === undefined || !(CONFIG_ABOSHOP.categorieshomeselect !== undefined && CONFIG_ABOSHOP.categorieshomeselect === true)) { 338 commonConfig.categorieshomeselect = false; 339 } else { 340 commonConfig.categorieshomeselect = true; 341 } 342 343 if (CONFIG_ABOSHOP.categorieslinkcms !== undefined) { 344 commonConfig.categorieslinkcms = CONFIG_ABOSHOP.categorieslinkcms; 345 } else { 346 commonConfig.categorieslinkcms = []; 347 } 348 349 if (CONFIG_ABOSHOP.tpePrelevement !== undefined) { 350 commonConfig.tpePrelevement = CONFIG_ABOSHOP.tpePrelevement; 351 } else { 352 commonConfig.tpePrelevement = 'aboweb'; 353 } 354 355 if (CONFIG_ABOSHOP.productline === undefined || !(CONFIG_ABOSHOP.productline !== undefined && CONFIG_ABOSHOP.productline === true)) { 356 commonConfig.productline = false; 357 } else { 358 commonConfig.productline = true; 359 } 360 361 if (CONFIG_ABOSHOP.displaycategorytitleonproductspage == undefined) { 362 commonConfig.displaycategorytitleonproductspage = true; 363 } else { 364 commonConfig.displaycategorytitleonproductspage = CONFIG_ABOSHOP.displaycategorytitleonproductspage; 365 } 366 367 if (CONFIG_ABOSHOP.displayCategoryDescriptionOnProductsPage == undefined) { 368 commonConfig.displayCategoryDescriptionOnProductsPage = false; 369 } else { 370 commonConfig.displayCategoryDescriptionOnProductsPage = CONFIG_ABOSHOP.dis
370playCategoryDescriptionOnProductsPage; 371 } 372 373 if (CONFIG_ABOSHOP.displayDescriptionCourteOnProductPage == undefined) { 374 commonConfig.displayDescriptionCourteOnProductPage = false; 375 } else { 376 commonConfig.displayDescriptionCourteOnProductPage = CONFIG_ABOSHOP.displayDescriptionCourteOnProductPage; 377 } 378 379 if (CONFIG_ABOSHOP.displayProductImageOnDeliveryPage == undefined) { 380 commonConfig.displayProductImageOnDeliveryPage = false; 381 } else { 382 commonConfig.displayProductImageOnDeliveryPage = CONFIG_ABOSHOP.displayProductImageOnDeliveryPage; 383 } 384 385 386 if (CONFIG_ABOSHOP.hideProductImageOnCartPage == undefined) { 387 commonConfig.hideProductImageOnCartPage = false; 388 } else { 389 commonConfig.hideProductImageOnCartPage = CONFIG_ABOSHOP.hideProductImageOnCartPage; 390 } 391 392 if (CONFIG_ABOSHOP.displayCategoryDescriptionOnCategoryChildPage == undefined) { 393 commonConfig.displayCategoryDescriptionOnCategoryChildPage = true; 394 } else { 395 commonConfig.displayCategoryDescriptionOnCategoryChildPage = CONFIG_ABOSHOP.displayCategoryDescriptionOnCategoryChildPage; 396 } 397 398 if (CONFIG_ABOSHOP.hideCombinaisonIfOneCombinaison == undefined) { 399 commonConfig.hideCombinaisonIfOneCombinaison = false; 400 } else { 401 commonConfig.hideCombinaisonIfOneCombinaison = CONFIG_ABOSHOP.hideCombinaisonIfOneCombinaison; 402 } 403 404 if (CONFIG_ABOSHOP.hideFormQuantity == undefined) { 405 commonConfig.hideFormQuantity = false; 406 } else { 407 commonConfig.hideFormQuantity = CONFIG_ABOSHOP.hideFormQuantity; 408 } 409 410 if (CONFIG_ABOSHOP.displayOffersOffered == undefined) { 411 commonConfig.displayOffersOffered = false; 412 } else { 413 commonConfig.displayOffersOffered = CONFIG_ABOSHOP.displayOffersOffered; 414 } 415 416 if (CONFIG_ABOSHOP.displayArticles == undefined) { 417 commonConfig.displayArticles = false; 418 } else { 419 commonConfig.displayArticles = CONFIG_ABOSHOP.displayArticles; 420 } 421 422 if (CONFIG_ABOSHOP.hideSubscriptions == undefined) { 423 commonConfig.hideSubscriptions = false; 424 } else { 425 commonConfig.hideSubscriptions = CONFIG_ABOSHOP.hideSubscriptions; 426 } 427 428 if (CONFIG_ABOSHOP.hideInvoices == undefined) { 429 commonConfig.hideInvoices = false; 430 } else { 431 commonConfig.hideInvoices = CONFIG_ABOSHOP.hideInvoices; 432 } 433 434 if (CONFIG_ABOSHOP.libHideInvoices == undefined) { 435 commonConfig.libHideInvoices = false; 436 } else { 437 commonConfig.libHideInvoices = CONFIG_ABOSHOP.libHideInvoices; 438 } 439 440 if (CONFIG_ABOSHOP.hideWishList == undefined) { 441 commonConfig.hideWishList = false; 442 } else { 443 commonConfig.hideWishList = CONFIG_ABOSHOP.hideWishList; 444 } 445 446 if (CONFIG_ABOSHOP.hideProfilAddress == undefined) { 447 commonConfig.hideProfilAddress = false; 448 } else { 449 commonConfig.hideProfilAddress = CONFIG_ABOSHOP.hideProfilAddress; 450 } 451 452 if (CONFIG_ABOSHOP.displayTrackingOrder == undefined) { 453 commonConfig.displayTrackingOrder = false; 454 } else { 455 commonConfig.displayTrackingOrder = CONFIG_ABOSHOP.displayTrackingOrder; 456 } 457 458 if (CONFIG_ABOSHOP.hideSignupForm == undefined) { 459 commonConfig.hideSignupForm = false; 460 } else { 461 commonConfig.hideSignupForm = CONFIG_ABOSHOP.hideSignupForm; 462 } 463 464 if (CONFIG_ABOSHOP.hideProductSubscriptionFormNumber == undefined) { 465 commonConfig.hideProductSubscriptionFormNumber = false; 466 } else { 467 commonConfig.hideProductSubscriptionFormNumber = CONFIG_ABOSHOP.hideProductSubscriptionFormNumber; 468 } 469 470 if (CONFIG_ABOSHOP.hideBankDetails == undefined) { 471 commonConfig.hideBankDetails = true; 472 } else { 473 commonConfig.hideBankDetails = CONFIG_ABOSHOP.hideBankDetails; 474 } 475 476 if (CONFIG_ABOSHOP.hideBankNumCb == undefined) { 477 commonConfig.hideBankNumCb = false; 478 } else { 479 commonConfig.hideBankNumCb = CONFIG_ABOSHOP.hideBankNumCb; 480 } 481 482 if (CONFIG_ABOSHOP.forceRedirectToHomeAfterConnexion == undefined) { 483 commonConfig.forceRedirectToHomeAfterConnexion = false; 484 } else { 485 commonConfig.forceRedirectToHomeAfterConnexion = CONFIG_ABOSHOP.forceRedirectToHomeAfterConnexion; 486 } 487 488 if (CONFIG_ABOSHOP.goToCart == undefined) { 489 commonConfig.goToCart = false; 490 } else { 491 commonConfig.goToCart = CONFIG_ABOSHOP.goToCart; 492 } 493 494 if (CONFIG_ABOSHOP.disabledPopupCart == undefined) { 495 commonConfig.disabledPopupCart = false; 496 } else { 497 commonConfig.disabledPopupCart = CONFIG_ABOSHOP.disabledPopupCart; 498 } 499 500 if (CONFIG_ABOSHOP.disabledPopupLogin == undefined) { 501 commonConfig.disabledPopupLogin = false; 502 } else { 503 commonConfig.disabledPopupLogin = CONFIG_ABOSHOP.disabledPopupLogin; 504 } 505 506 if (CONFIG_ABOSHOP.checkphoneformat == undefined) { 507 commonConfig.checkphoneformat = false; 508 } else { 509 commonConfig.checkphoneformat = CONFIG_ABOSHOP.checkphoneformat; 510 } 511
512 if (CONFIG_ABOSHOP.displaymodeabonnements == undefined) { 513 commonConfig.displaymodeabonnements = []; 514 } else { 515 commonConfig.displaymodeabonnements = CONFIG_ABOSHOP.displaymodeabonnements; 516 } 517 518 if (CONFIG_ABOSHOP.displaypriceonarticlelibre == undefined) { 519 commonConfig.displaypriceonarticlelibre = false; 520 } else { 521 commonConfig.displaypriceonarticlelibre = CONFIG_ABOSHOP.displaypriceonarticlelibre; 522 } 523 524 if (CONFIG_ABOSHOP.createcookie == undefined) { 525 commonConfig.createcookie = false; 526 } else { 527 commonConfig.createcookie = CONFIG_ABOSHOP.createcookie; 528 } 529 530 if (CONFIG_ABOSHOP.cookieforcename !== undefined) { 531 commonConfig.cookieforcename = CONFIG_ABOSHOP.cookieforcename; 532 } 533 534 if (CONFIG_ABOSHOP.cookiehttponly !== undefined) { 535 commonConfig.cookiehttponly = CONFIG_ABOSHOP.cookiehttponly; 536 } 537 538 if (CONFIG_ABOSHOP.cookiesecure !== undefined) { 539 commonConfig.cookiesecure = CONFIG_ABOSHOP.cookiesecure; 540 } 541 542 if (CONFIG_ABOSHOP.cadeauenabled == undefined) { 543 commonConfig.cadeauenabled = false; 544 } else { 545 commonConfig.cadeauenabled = CONFIG_ABOSHOP.cadeauenabled; 546 } 547 548 if (CONFIG_ABOSHOP.displaydescriptioncourteondeliverypage == undefined) { 549 commonConfig.displaydescriptioncourteondeliverypage = true; 550 } else { 551 commonConfig.displaydescriptioncourteondeliverypage = CONFIG_ABOSHOP.displaydescriptioncourteondeliverypage; 552 } 553 554 if (CONFIG_ABOSHOP.displaydescriptioncourteoncartpage == undefined) { 555 commonConfig.displaydescriptioncourteoncartpage = false; 556 } else { 557 commonConfig.displaydescriptioncourteoncartpage = CONFIG_ABOSHOP.displaydescriptioncourteoncartpage; 558 } 559 560 if (CONFIG_ABOSHOP.displaySpecificNrcoFpPreviOnCartPage == undefined) { 561 commonConfig.displaySpecificNrcoFpPreviOnCartPage = false; 562 } else { 563 commonConfig.displaySpecificNrcoFpPreviOnCartPage = CONFIG_ABOSHOP.displaySpecificNrcoFpPreviOnCartPage; 564 } 565 566 if (CONFIG_ABOSHOP.displayaccrocheonhomemonthproduct == undefined) { 567 commonConfig.displayaccrocheonhomemonthproduct = false; 568 } else { 569 commonConfig.displayaccrocheonhomemonthproduct = CONFIG_ABOSHOP.displayaccrocheonhomemonthproduct; 570 } 571 572 commonConfig.serveurcible.url = CONFIG_ABOSHOP[commonConfig.scope + commonConfig.target]; 573 commonConfig.serveurcible.label = commonConfig.target + ".aboweb.com"; 574 575 if (CONFIG_ABOSHOP.displayproductsbreadcrumb === undefined) { 576 commonConfig.displayproductsbreadcrumb = true; 577 } else { 578 commonConfig.displayproductsbreadcrumb = CONFIG_ABOSHOP.displayproductsbreadcrumb; 579 } 580 581 if (CONFIG_ABOSHOP.throwerror === undefined) { 582 commonConfig.throwerror = false; 583 } else { 584 commonConfig.throwerror = CONFIG_ABOSHOP.throwerror; 585 } 586 587 if (CONFIG_ABOSHOP.doencrypt === undefined) { 588 commonConfig.doencrypt = true; 589 } else { 590 commonConfig.doencrypt = CONFIG_ABOSHOP.doencrypt; 591 } 592 593 if (CONFIG_ABOSHOP.logcall === undefined) { 594 commonConfig.logcall = false; 595 } else { 596 commonConfig.logcall = CONFIG_ABOSHOP.logcall; 597 } 598 599 if (CONFIG_ABOSHOP.headermode === undefined) { 600 commonConfig.headermode = "complete"; 601 } else { 602 commonConfig.headermode = CONFIG_ABOSHOP.headermode; 603 } 604 605 if (CONFIG_ABOSHOP.buttonAddToCartGoToProduct === undefined) { 606 commonConfig.buttonAddToCartGoToProduct = false; 607 } else { 608 commonConfig.buttonAddToCartGoToProduct = CONFIG_ABOSHOP.buttonAddToCartGoToProduct; 609 } 610 611 if (CONFIG_ABOSHOP.slidetransition === undefined) { 612 commonConfig.slidetransition = 0; 613 } else { 614 commonConfig.slidetransition = CONFIG_ABOSHOP.slidetransition; 615 } 616 617 if (CONFIG_ABOSHOP.displayBeneficiaries === undefined) { 618 commonConfig.displayBeneficiaries = false; 619 } else {
620 commonConfig.displayBeneficiaries = CONFIG_ABOSHOP.displayBeneficiaries; 621 } 622 623 if (CONFIG_ABOSHOP.emailBeneficiaireRequired === undefined) { 624 commonConfig.emailBeneficiaireRequired = true; 625 } else { 626 commonConfig.emailBeneficiaireRequired = CONFIG_ABOSHOP.emailBeneficiaireRequired; 627 } 628 629 if (CONFIG_ABOSHOP.displayDesignationFormule === undefined) { 630 commonConfig.displayDesignationFormule = false; 631 } else { 632 commonConfig.displayDesignationFormule = CONFIG_ABOSHOP.displayDesignationFormule; 633 } 634 635 if (CONFIG_ABOSHOP.temporarySuspension === undefined) { 636 commonConfig.temporarySuspension = false; 637 } else { 638 commonConfig.temporarySuspension = CONFIG_ABOSHOP.temporarySuspension; 639 } 640 641 if (CONFIG_ABOSHOP.temporaryAddress === undefined) { 642 commonConfig.temporaryAddress = false; 643 } else { 644 commonConfig.temporaryAddress = CONFIG_ABOSHOP.temporaryAddress; 645 } 646 647 if (CONFIG_ABOSHOP.reverseProfileWithDelivery === undefined) { 648 commonConfig.reverseProfileWithDelivery = false; 649 } else { 650 commonConfig.reverseProfileWithDelivery = CONFIG_ABOSHOP.reverseProfileWithDelivery; 651 } 652 653 if (CONFIG_ABOSHOP.disabledEditAddress == undefined) { 654 commonConfig.disabledEditAddress = false; 655 } else { 656 commonConfig.disabledEditAddress = CONFIG_ABOSHOP.disabledEditAddress; 657 } 658 659 if (CONFIG_ABOSHOP.disabledDeliveryAddress == undefined) { 660 commonConfig.disabledDeliveryAddress = false; 661 } else { 662 commonConfig.disabledDeliveryAddress = CONFIG_ABOSHOP.disabledDeliveryAddress; 663 } 664 665 commonConfig.headerroot = CONFIG_ABOSHOP.headerroot; 666 commonConfig.footerroot = CONFIG_ABOSHOP.footerroot; 667 668 commonConfig.factoryfile = CONFIG_ABOSHOP.factoryfile; 669 commonConfig.surchargepagecontact = CONFIG_ABOSHOP.surchargepagecontact; 670 commonConfig.surchargePaymentSecure = CONFIG_ABOSHOP.surchargePaymentSecure; 671 commonConfig.surchargeDeliverySecure = CONFIG_ABOSHOP.surchargeDeliverySecure; 672 commonConfig.surchargeClientSatisfaction = CONFIG_ABOSHOP.surchargeClientSatisfaction; 673 commonConfig.surchargePageCgv = CONFIG_ABOSHOP.surchargePageCgv; 674 commonConfig.linkGohomeMaintenance = CONFIG_ABOSHOP.linkGohomeMaintenance; 675 676 commonConfig.currentInstance = {}; 677 commonConfig.currentInstance.code = 'public'; 678 commonConfig.currentInstance.editor = CONFIG_ABOSHOP.editorAboweb; 679 commonConfig.currentInstance.company = CONFIG_ABOSHOP.companyAboweb; 680 commonConfig.currentInstance.login = CONFIG_ABOSHOP.paramFirst; 681 commonConfig.currentInstance.keylogin = commonConfig.target + ' ' + CONFIG_ABOSHOP.paramFirst; 682 commonConfig.currentInstance.pwd = CONFIG_ABOSHOP.paramSecond; 683 684 if (Number.isInteger(CONFIG_ABOSHOP.idShop)) { 685 commonConfig.currentInstance.idshop = CONFIG_ABOSHOP.idShop; 686 } else { 687 commonConfig.currentInstance.idshop = undefined; 688 } 689 690 if (Number.isInteger(CONFIG_ABOSHOP.forceRedirectToCategorie)) { 691 commonConfig.forceRedirectToCategorie = CONFIG_ABOSHOP.forceRedirectToCategorie; 692 } else { 693 commonConfig.forceRedirectToCategorie = undefined; 694 } 695 696 commonConfig.currentInstance.langue = CONFIG_ABOSHOP.langue; 697 if (commonConfig.langue === undefined) { 698 commonConfig.langue = 'fr'; 699 } 700 701 if (CONFIG_ABOSHOP.defaultIndexCivilite === undefined) { 702 commonConfig.defaultIndexCivilite = 0; 703 } else { 704 commonConfig.defaultIndexCivilite = CONFIG_ABOSHOP.defaultIndexCivilite; 705 } 706 707 commonConfig.dicoIsSet = []; 708 commonConfig.loadTrackingManager = false; 709 710 if (CONFIG_ABOSHOP.enabledIsotope === undefined) { 711 commonConfig.enabledIsotope = false; 712 } else { 713 commonConfig.enabledIsotope = CONFIG_ABOSHOP.enabledIsotope; 714 } 715 716 if (CONFIG_ABOSHOP.displayHomeCategoriesListBottom === undefined || CONFIG_ABOSHOP.displayHomeCategoriesListBottom === false) { 717 commonConfig.displayHomeCategoriesListBottom = false; 718 } else { 719 commonConfig.displayHomeCategoriesListBottom = true; 720 } 721 722 if (CONFIG_ABOSHOP.hideFiltersCategoriesButton === undefined || CONFIG_ABOSHOP.hideFiltersCategoriesButton === false) { 723 commonConfig.hideFiltersCategoriesButton = false; 724 } else { 725 commonConfig.hideFiltersCategoriesButton = true; 726 } 727 728 if (CONFIG_ABOSHOP.fieldsNumericAdressRequired == undefined) { 729 commonConfig.fieldsNumericAdressRequired = ["name","firstname","phonenumber","state"]; 730 } else { 731 commonConfig.fieldsNumericAdressRequired = CONFIG_ABOSHOP.fieldsNumericAdressRequired; 732 } 733
734 if (CONFIG_ABOSHOP.displayResiliation === undefined || CONFIG_ABOSHOP.displayResiliation === false) { 735 commonConfig.displayResiliation = false; 736 } else { 737 commonConfig.displayResiliation = true; 738 } 739 740 commonConfig.contactResilierSpecifique=false; 741 if (CONFIG_ABOSHOP.surchargeContactResilier !== undefined) { 742 commonConfig.contactResilierSpecifique=true; 743 commonConfig.linkContactResilier = CONFIG_ABOSHOP.surchargeContactResilier; 744 } 745 746 if (CONFIG_ABOSHOP.civiliteRequired === undefined || CONFIG_ABOSHOP.civiliteRequired === true) { 747 commonConfig.civiliteRequired = true; 748 } else { 749 commonConfig.civiliteRequired = false; 750 } 751 752 if (CONFIG_ABOSHOP.marfeelTag === undefined) { 753 commonConfig.marfeelTag = false; 754 } else { 755 commonConfig.marfeelTag = CONFIG_ABOSHOP.marfeelTag; 756 } 757 758 if (CONFIG_ABOSHOP.marfeelId !== undefined) { 759 commonConfig.marfeelId = CONFIG_ABOSHOP.marfeelId; 760 } 761 762 if (CONFIG_ABOSHOP.autocompleteAddress !== undefined) { 763 commonConfig.autocompleteAddress = CONFIG_ABOSHOP.autocompleteAddress; 764 } else { 765 commonConfig.autocompleteAddress = false; 766 } 767}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.