COGECO

HeaderTfalseGuest Access LoginContinueJfalseContinue as GuestLoginTitleTfalse0Login PageLoginTitleGuestTfalse0Guest Access Log InLoginTitleARTfalse0COGECO Log InLoginHeaderTfalse0Login HeaderLoginHeaderGuestTfalse0Guest HeaderLoginHeaderARTfalse0Authorized Returns HeaderLoginIDSfalse0Always RequiredLogin IDLoginIDGuestSfalse0Always RequiredGuest Access Login IDLoginIDARSfalse0Always RequiredAuthorized Returns Login IDPasswordSfalse0Always RequiredPasswordForgotPasswordTfalse0ChangePasswordTfalse0RegisterTfalse0ChangePasswordTitleTfalse0Change Password TitleOldPasswordSfalse0Always RequiredOld PasswordNewPasswordSfalse0Always RequiredNew PasswordConfirmPasswordSfalse0Always RequiredConfirm PasswordExpireMessageTfalse0Password ExpireForgotPasswordTitleTfalse0Forgot Password TitleForgotMessageTfalse0Your Password is sent by E-Mail to youCompanyNameSfalse0Company NameCompanyNameGuestSfalse0CompanyNameARSfalse0Authorized Returns Company NameB2CDirectLoginCfalse0B2CSelfInviteCfalse0B2CRemoveLinkCfalse0ShippingHeaderHeaderTfalse0Intelligent Reverse LogisticsHeaderAdminstrationLinkSectionAfalse0AdministrationHeaderAdminTransactionsLinkSectionAfalse0TransactionsHeaderAdminVoidShipmentsLinkZfalse0Void ShipmentsHeaderAdminLabelRetrievalZfalse0Label RetrievalHeaderAdminPackageHistoryLinkZfalse0Package HistoryHeaderAdminManageLinkSectionAfalse0ManageHeaderAdminUsersLinkZfalse0UsersHeaderAdminAddressesLinkZfalse0AddressesHeaderAdminAccountsLinkZfalse0AccountsHeaderAdminAnnouncementsLinkZfalse0AnnouncementHeaderAdminImportExportLinkSectionAfalse0Import/ExportHeaderAdminImportLinkZfalse0ImportHeaderAdminExportLinkZfalse0ExportHeaderAdminExportConfigLinkZfalse0Export ConfigHeaderAdminShipSettingsSectionLinkAfalse0Ship SettingsHeaderAdminCompanyKeysLinkZfalse0Company KeysHeaderAdminReferencesLinkZfalse0ReferencesHeaderAdminProductsLinkZfalse0ProductsHeaderAdminWeightsLinkZfalse0WeightsHeaderAdminThermalPrintSetupLinkZfalse0Thermal Printer SetupHeaderHistoryLinkZfalse0HistoryHeaderShippingZfalse0ShippingUserMenuChangePasswordLinkZfalse0Change PasswordUserMenuEnvironmentLinkZfalse0EnvironmentUserMenuLogOffLinkZfalse0Log OffUserMenuDiagnosticsLinkZfalse0DiagnosticsUserMenuCompanyListLinkZfalse0Company ListSupportMenuContactLinkZfalse0Contact PSI SupportHeaderAdminBranchesLinkZfalse0BranchesHeaderAdminOrdersLinkSectionZfalse0OrdersHeaderAdminOrdersLinkZfalse0OrdersHeaderAdminOrderReasonsLInkZfalse0ReasonsFooterCopyrightAfalse0Copyright © 2011 - 2025, United Parcel Service of America, Inc. All rights reserved.FooterWebSiteTermsLinkZfalse0Web Site Terms of UseFooterPolicyLinkZfalse0Privacy PolicyFooterCookieDisclosureLinkZfalse0Cookie DisclosureFooterTermsConditionsLinkZfalse0Service Terms and ConditionsSFTitleTfalse0Ship FromShipmentFormHeaderTfalse0Shipment InformationSFAddressBookKfalse0SFNameSfalse0RequiredCustomer NameSFAttnSfalse0AttentionSFAddr1Sfalse0RequiredAddress Line 1SFAddr2Sfalse0Address Line 2SFAddr3Sfalse0SFCitySfalse0RequiredCitySFStateXfalse0RequiredProvince00SFZipSfalse0RequiredPostal CodeSFPhoneSfalse0SFEmailSfalse0RequiredE-Mail AddressSFQVLabelNotCfalse0SFQVInTranNotCfalse0SFQVExcNotCfalse0SFQVDelNotCfalse0SFCust01Xfalse0SFCust02Xfalse0SFCust03Xfalse0SFCust04Xfalse0SFCust05Xfalse0SFCust06Xfalse0SFCust07Xfalse0SFCust08Xfalse0SFCust09Xfalse0SFCust10Xfalse0SFManualValidateXfalse0STTitleTfalse0Ship ToSTAddrBookKfalse0STBranchKfalse0STNameSfalse0RequiredCompany NameSTAttnSfalse0AttentionSTAddr1Sfalse0RequiredAddress Line 1STAddr2Sfalse0Address Line 2STAddr3Sfalse0STCitySfalse0RequiredCitySTStateXfalse0RequiredStateSTZipSfalse0RequiredPostal CodeSTPhoneSfalse0Phone NumberSTEmailSfalse0E-Mail AddressSTAddEmail1Sfalse0STAddEmail2Sfalse0STAddEmail3Sfalse0STQVLabelNotCfalse0STQVInTranNotCfalse0STQVExcNotCfalse0STQVDelNotCfalse0STResidentialCfalse0STCust01Xfalse0STCust02Xfalse0STCust03Xfalse0STCust04Xfalse0STCust05Xfalse0STCust06Xfalse0STCust07Xfalse0STCust08Xfalse0STCust09Xfalse0STCust10Xfalse0STManualValidateXfalse0STLocationIDSfalse0ShipTitleTfalse0ShipmentDescriptionXfalse0Cogeco EquipmentCarbonNeutralCfalse0SatDeliveryCfalse0AdultSignatureCfalse0PrePaidAccountKfalse0ThirdPartyAccountKfalse0Third Party AccountAdvancedPaymentOptionsTfalse0DutyVATPrePaidAccountKfalse0DutyVATThirdPartyAccountKfalse0SplitDutyVATCfalse0AreGoodsNotInFreeCirculationCfalse0InvoiceCfalse0International Special CommoditiesQfalse0UploadDocumentsCfalse0UseDifferentSoldToCfalse0DocOnlyCfalse0MonValueMfalse0PackTitleTfalse0PackageHeaderTfalse0PackageNumPkgsNfalse01|20|Number of Packages must be between 1 and 20|WeightNfalse0LengthNfalse0HeightNfalse0WidthNfalse0InsuredValMfalse0Proactive ResponseCfalse0DryIceCfalse0DryIceWeightNfalse0DataTitleTfalse0Check01Cfalse0Check02Cfalse0CommentSfalse0Ref01Rfalse0Ref02Rfalse0Ref03Rfalse0Ref04Rfalse0Ref05Rfalse0Ref06Rfalse0Ref07Rfalse0Ref08Rfalse0Ref09Rfalse0Ref10Rfalse0PackageAddBtnJfalse0AddPackageRemoveBtnJfalse0RemovePackageSelectTxtAfalse0PackagePaymentMethodPfalse0RequiredBill pickup charges to:MYUPSCCHolderNameSfalse0RequiredCredit Card Holder NameCardNumberSfalse0RequiredCredit Card NumberSecurityCodeSfalse0RequiredSecurity CodeExpirationMonthSfalse0RequiredExpiration MonthExpirationYearSfalse0RequiredExpiration YearCCAddressLine1Sfalse0RequiredAddress Line 1CCAddressLine2Sfalse0Address Line 2CCAddressLine3Sfalse0Address Line 3CCCitySfalse0RequiredCityCCStateXfalse0RequiredStateCCPostalcodeSfalse0RequiredPostal codePackageIdSfalse0CostCenterSfalse0OrderNumberKfalse0OrderItemSkuKfalse0ShipProcessButtonTfalse0Process ShipmentShipClearButtonTfalse0ClearShipHistoryButtonTfalse0Package HistoryShipRateButtonTfalse0RateShipBackButtonTfalse0BackShipAddItemsButtonTfalse0Add ItemsCancelButtonTfalse0CancelPickupLinkTfalse0CreatePickupCfalse0PickupTitleTfalse0PickupDateHfalse0PickupEarliestTimeIfalse0PickupLatestTimeIfalse0PickupContactNameSfalse0PickupPhoneXfalse0PickupRoomXfalse0PickupFloorSfalse0PickupInstructionsSfalse0PickupPointXfalse0PickupTomorrowCfalse0PurchaseOrderSfalse0RequiredPurchase Order NumberCommentsSfalse0CommentsCommoditiesSfalse0CommoditiesAutoFinishCfalse0InvoiceTitleTfalse0Commercial InvoiceAdditionalDocumentCfalse0SignatureWfalse0ShowInvoiceCfalse0Show Invoice (Override Paperless)ProductTitleTfalse0Invoice ItemsProductPartNumberKfalse0RequiredPart NumberProductDescriptionXfalse0RequiredDescriptionProductDescSecondaryXfalse0Description SecondaryProductDescOtherXfalse0Description OtherProductHarmCodeXfalse0Harmonized CodeProductPriceMfalse0RequiredPriceProductCountNfalse0RequiredCountProductCustom01Xfalse0ProductCustom02Xfalse0ProductCustom03Xfalse0ProductCustom04Xfalse0ProductCustom05Xfalse0ProductCustom06Xfalse0ProductCustom07Xfalse0ProductCustom08Xfalse0ProductCustom09Xfalse0ProductCustom10Xfalse0InvoiceHeaderTfalse0Commercial InvoiceInvoiceSubHeaderAfalse0Create International InvoiceInvoiceDetailsTxtAfalse0Invoice DetailsInvoiceLineHeaderTxtAfalse0LineInvoiceTotalHeaderTxtAfalse0TotalInvoiceItemAddBtnJfalse0AddInvoiceItemEditBtnJfalse0EditInvoiceItemDeleteBtnJfalse0DeleteInvoiceItemFinishBtnJfalse0FinishInvoiceItemSearchBtnJfalse0SearchInvoiceItemSaveBtnJfalse0SaveInvoiceItemCancelBtnJfalse0CancelInvoiceItemClearBtnJfalse0ClearInvoiceItemFilterBtnJfalse0FilterInvoiceProductSelectBtnJfalse0SelectInvoiceProductSearchTitleJfalse0Search Results (Max of 50)InvoiceProductSearchRequiredInfoJfalse0The id field is required.DocumentHeaderTfalse0DocumentsLoginCSSGuestSfalse0CSS Guest AccessLoginCSSARSfalse0CSS Authorized ReturnsDocumentINoPackageFromEmailAfalse0This link has expired. Please contact the company that sent you the return email.DocumentNoPackageNotFromEmailAfalse0There are no labels to displayDocumentFoldHereAfalse0FOLD HEREPrintPageSuccessHeaderAfalse0Shipment successfulPrintPageDeliveryMethod1MInstructionsAfalse0UPS will print and mail your return label.PrintPageDeliveryMethod11-15InstructionsAAfalse0Once UPS arrives to collect the return, the UPS driver will package the item.PrintPageDeliveryMethod16-20InstructionsAAfalse0Once UPS arrives to collect the return, the UPS driver will package the item.PrintPageDeliveryMethod4Eor6AAfalse0Return label has been e-mailed.PrintPageDefaultSchedulePickupTextAfalse0Click here to Schedule a pickupARPrintPageNoLabelsAfalse0No Labels AvailableDocumentLabelInstructionsHeaderTfalse0InstructionsDocumentLabelDefaultInstructionsYfalse0UPS Electronic Return Label: View/Print LabelDocumentLabelFlexibleAccessInstructionsYfalse0UPS Electronic Return Label: View/Print LabelTender your package to either UPS or the United States Postal Service. UPS locations include The UPS Store®, UPS Drop Box, UPS Customer Centers, authorized retail outlets and UPS drivers. Find your closest UPS location at {UPSDropOffLocator}DocumentLabelFlexibleAccessPostalLocationsEfalse0Postal LocationsPostal Service locations include your own mailbox, your local Post Office™ or postal collection boxes. You may also schedule a free postal carrier pick up at: {USPSCarrierPickup}DocumentLabelMailInnovationsInstructionsYfalse0MI Electronic Return Label: View/Print LabelPackages can be given to your mail carrier, left in your mail box or dropped off at your local U.S. Post Office or blue collection box. You can also schedule a U.S. Postal Service pick-up of the Return package at {UPSPWebPage}. For more information call UPS Mail Innovations® at 1-800-500-2224. Your return package will be viewable on ups.com within 24-48 hours.DocumentLabelDirectToMobileInstuctionsYfalse0UPS® Direct to MobileUPSWebPageZfalse0www.ups.com/content/us/en/index.jsxhttps://www.ups.com/content/us/en/index.jsxUPSDropOffLocatorZfalse0Drop Off Locatorhttp://www.ups.com/dropoff?autosubmit=1&lang=engUSPSCarrierPickupZfalse0https://carrierpickup.usps.comhttps://carrierpickup.usps.comUSPSWebPageZfalse0www.usps.comwww.usps.comDocumentInvoiceHeaderTfalse0InvoiceDocumentInvoiceFromSectionHeaderAfalse0FromDocumentInvoiceFromContactNameAfalse0Contact NameDocumentInvoiceFromCompanyNameAfalse0Company NameDocumentInvoiceFromWaybillNumberAfalse0Waybill NumberDocumentInvoiceFromAddressAfalse0AddressDocumentInvoiceFromCityAfalse0City/State-ProvinceDocumentInvoiceFromdateAfalse0DateDocumentInvoiceFromPostalCodeAfalse0Postal CodeDocumentInvoiceFromInvoiceNumberAfalse0Invoice NumberDocumentInvoiceFromPhoneAfalse0PhoneDocumentInvoiceFromPurchaseOrderNumberAfalse0Purchase Order NumberDocumentInvoiceFromFaxAfalse0FaxDocumentInvoiceFromTermsofSaleAfalse0Terms of sale (Incoterm)DocumentInvoiceFromEmailAfalse0E-Mail AddressDocumentInvoiceFromReasonForExportAfalse0Reason For ExportDocumentInvoiceshipToAfalse0Ship ToDocumentInvoicesoldToAfalse0Sold ToDocumentInvoicesUnitAfalse0UnitsDocumentInvoicesUnitofMeasureAfalse0Unit of MeasurementDocumentInvoiceDescriptionOfGoodsAfalse0Description of GoodsDocumentInvoicePartNumberAfalse0Part NumberDocumentInvoiceCommodityCodeAfalse0Commodity CodeDocumentInvoiceCOAfalse0C/ODocumentInvoiceValueAfalse0ValueDocumentInvoiceTotalAfalse0TotalDocumentInvoiceCurrencyAfalse0CurrencyDocumentInvoiceAddCommentsAfalse0Additional CommentsDocumentInvoiceLineTotalAfalse0Invoice Line TotalDocumentInvoiceDiscountAfalse0Discount/RebateDocumentInvoiceInvSubTotalAfalse0Invoice Sub-TotalDocumentInvoiceFreightAfalse0FreightDocumentInvoiceInsuranceAfalse0InsuranceDocumentInvoiceOtherAfalse0OtherDocumentInvoiceTotalInvoiceAmountAfalse0Total Invoice AmountDocumentInvoiceDecstatementAfalse0Declaration StatementDocumentInvoiceShipperSignAfalse0Shipper's Signature/ TitleDocumentInvoicePackCountAfalse0Package CountDocumentInvoiceTotalWeightAfalse0Total WeightProductUnitDfalse0RequiredUnit of MeasureEAProductOriginCountryDfalse0RequiredOrigin CountryUSTermsOfShipmentDfalse0RequiredTerms of ShipmentCurrencyCodeDfalse0RequiredCurrency CodeReasonForExportDfalse0RequiredReasonForExportOrderItemDfalse0OrderItemStaticCCCountryDfalse0RequiredCountry or TerritoryUSCCCardTypeDfalse0RequiredCredit Card Type00DropOffTypeIdDfalse00DryIcePurposeDfalse0DryIceUOMDfalse0International LanguageDfalse0International Languageen-enInsuredCurDfalse0MeasureUnitDfalse0CMWeightUnitDfalse02KPackTypeDfalse01CDutyVATPayInfoDfalse00PayInfoDfalse0DelMethodDfalse0Label Delivery Method6AServiceDfalse0GNDServiceIntlDfalse011ServiceCodeDfalse01GRSTypeDfalse02RDirectionDfalse00LabelFormatDfalse01GSTCountryDfalse0Country or TerritoryCASFCountryDfalse0Country or TerritoryCA3589COGECOF43EB8A029B54C93ACF0100COGECO3d48055a-2a16-471a-a33c-27bdfcb037962025-08-18T00:00:00 //COGECO - Modified - 05.09.2025 var cat = localStorage.getItem("myLen"); const lenguaje = navigator.language || navigator.languages[0]; console.log(lenguaje); var loc=""; loc = window.location.host; console.log(loc); if(cat=="fr"){ window.location.href="https://row.ups.com/Home/SetLanguage?id=fr-fr&returnUrl=https%3A%2F%2Frow.ups.com%2FShip%2FShip%2FStandardShip"; localStorage.setItem("myLen", ""); } const div = document.getElementById("boxSFAddr2"); const label = div.querySelector("label"); label.classList.add("fw-bold"); const div2 = document.getElementById("boxSFCountry"); const label2 = div2.querySelector("label"); label2.classList.add("fw-bold"); const div3 = document.getElementById("boxDeliveryMethod"); const label3 = div3.querySelector("label"); label3.classList.add("fw-bold"); const div4 = document.getElementById("boxSFState"); const label4 = div4.querySelector("label"); label4.classList.add("fw-bold"); const div5 = document.getElementById("boxSFEmail"); const label5 = div5.querySelector("label"); label5.classList.add("fw-bold"); $("#ServiceInternational").find('option[value="UPS Worldwide Saver®"]').text("UPS Saver®"); $("#ServiceInternational").find('option[value="UPS® Standard"]').text("UPS Standard®"); $("#ServiceInternational").find('option[value="UPS Worldwide Expedited®"]').text("UPS Expedited®"); $("#ServiceInternational").find('option[value="UPS Worldwide Express Plus®"]').text("UPS Express Plus®"); $("#ServiceInternational").find('option[value="UPS Worldwide Express®"]').text("UPS Express®"); /*cambiar header*/ document.getElementById("openLanguages").innerText = "Select your Language"; //Global Variables *************************************************************** //Determine if a StandardShipper or Guest logged in vLoginType = document.getElementById("shipForm").getAttribute("action"); //MM vLoginType_Text = vLoginType.split("/")[3]; //MM StandardShipGuest original_shipto = document.getElementById("STAddressBookList").value; vCompanyKey = document.getElementById("CompanyKey").value; vBanner = document.getElementsByClassName("page-layout")[0].childNodes[1].src; var profile = ""; var customerProfilelabel = ""; var deliverymethodlabel = ""; var delivery_email = ""; var delivery_viewprintemail = ""; var delivery_mobil = ""; var delivery_viewprint = ""; var delivery_attemp1 = ""; var delivery_attemp3 = ""; var alertdel = ""; var alertprof = ""; var emailMsg = ""; console.log(loc); document.getElementById("openLanguages").innerText = "Sélectionnez votre langue"; const select = document.getElementById("DeliveryMethod"); const opcion6B = select.querySelector(`option[value="6B"]`); const opcion6A = select.querySelector(`option[value="6A"]`); const opcion4E = select.querySelector(`option[value="4E"]`); const opcion5P = select.querySelector(`option[value="5P"]`); const miDiv = document.getElementById('languages'); miDiv.remove(); const div1=document.getElementById("languageDiv"); const sp=document.getElementById("openLanguages"); sp.style="padding-left: 5px;"; const Newa1 = document.createElement('a'); const Newa2 = document.createElement('a'); const Newa3 = document.createElement('br'); Newa1.href="https://row.ups.com/Home/SetLanguage?id=en-en&returnUrl=https%3A%2F%2Frow.ups.com%2FShip%2FShip%2FStandardShip"; Newa1.id="aEng"; Newa1.textContent ="English"; Newa1.style="padding-left: 15px; color: rgb(255, 255, 255);text-decoration: none;"; Newa1.onclick=miFuncionE; Newa2.href="https://row.ups.com/Home/SetLanguage?id=fr-fr&returnUrl=https%3A%2F%2Frow.ups.com%2FShip%2FShip%2FStandardShip"; Newa2.id="aFrn"; Newa2.textContent =" / Français"; Newa2.style="color: rgb(255, 255, 255);text-decoration: none;"; Newa2.onclick=miFuncionF; div1.appendChild(Newa1); div1.appendChild(Newa2); const divM=document.getElementById("errorMessageDeliveryMethod"); const NewaS = document.createElement('span'); NewaS.id='menLab' divM.appendChild(NewaS); const miSelect = document.getElementById('DeliveryMethod'); const spanMensaje = document.getElementById('menLab'); spanMensaje.textContent = `You generate the label `; /*change annoucement segun el idioma y lugares*/ switch (loc) { case "fr-fr-row.ups.com": var alertdel = "Veuillez sélectionner le mode de livraison de l'étiquette"; var alertprof = "Veuillez sélectionner le profil client"; var alertstate = "Le profil Cogeco doit être la province du Québec ou de l'Ontario" var customerProfilelabel = "Profil client"; emailMsg = "Adresse courriel requise pour la méthode de livraison sélectionnée."; miBoton1 = document.getElementById("ProcessShipment"); miBoton1.value = "Générer l'étiquette"; document.getElementById("English").style.display = "none"; $("#boxSFEmail label")[0].innerText = "Adresse courriel"; $("#boxDeliveryMethod label")[0].innerText = "Méthode de livraison de l'étiquette"; $("#boxSFName label")[0].innerText = "Nom associé au compte"; opcion6B.textContent = "Recevoir un QR code mobile"; // opcion6A.textContent = "Recevoir par courriel et imprimer"; spanMensaje.textContent = `Vous générez l'étiquette`; break; default: var alertdel = "Please select label delivery method"; var alertprof = "Please select Customer Profile"; var alertstate = "Cogeco Profile must be Québec or Ontario Province" var customerProfilelabel = "Customer Profile"; emailMsg = "Email address required for selected delivery method"; miBoton2 = document.getElementById("ProcessShipment"); miBoton2.value = "Generate Label"; $("#boxSFName label")[0].innerText = "Name Associated with Account"; document.getElementById("French").style.display = "none"; opcion6B.textContent = "Receive mobile QR code"; //opcion6A.textContent = "Receive by email and print "; spanMensaje.textContent = `You generate the label `; } //alert (vLoginType_Text); //Global Variables End ************************************************************ //identify profile switch (vCompanyKey) { //oxio case "93ac3950-021e-4c0b-a031-44756a641cae": vBanner = "https://row.ups.com/Home/GetImage?id=5a35bc21-2bc0-4dc7-a8f2-b5b08ebd44f0"; profile = "OX"; break; //cocego case "ba885990-4916-46bb-a735-a97495e59644": vBanner = "https://row.ups.com/Home/GetImage?id=148dc692-5789-43e2-a39d-451ac3420714"; profile = "CO"; break; //cust rep default: vBanner = "https://row.ups.com/Home/GetImage?id=823adc9d-1e3e-425a-afd7-c06462640303"; profile = "custrep"; } localStorage.setItem("globalprofile", profile); document.getElementsByClassName("page-layout")[0].childNodes[1].src = vBanner; //rma 280725 const miInput1 = document.getElementById("ProcessShipment"); const miInput2 = document.getElementById("Clear"); const miheader1 = document.getElementsByClassName("Header"); const miheader2 = document.getElementsByClassName("Language-cursor-Pointer"); //const elamarillo = document.getElementById("languages"); if (profile === "OX") { miInput1.style.backgroundColor = "#C0F0AF"; miInput1.style.color = "#2F2E2E"; miInput2.style.backgroundColor = "#FFCBAE"; miInput2.style.color = "#2F2E2E"; for (let i = 0; i < miheader1.length; i++) { miheader1[i].style.backgroundColor = "#2F2E2E"; } //elamarillo.classList.remove("OneLinkNoTx"); // elamarillo.classList.add("OneLinkNoTx2"); } //rma 50925 if (profile === "custrep") { if(loc === "fr-fr-row.ups.com") { opcion4E.textContent = "Recevoir par courriel"; opcion5P.textContent = "Imprimer";} else{ opcion4E.textContent = "Receive by email"; opcion5P.textContent = "Print "; } } //rma 50925 $("#boxSFAttn").hide(); // Move custom 02 to Company name //$('#custom_selects_2').prependTo('#boxSFAttn'); $("#custom_selects_2").prependTo("#boxSFAddr1"); $("#boxSFCust02").prependTo("#custom_selects_2"); //$("#boxSFCust01 label")[0].innerText = deliverymethod_label; $("#boxSFCust02 label")[0].innerText = customerProfilelabel; function EmailError(reason, color) { let errorMsg = document.getElementById("errorMessage"); console.log(errorMsg); let Email = document.getElementById("SFEmail"); errorMsg.innerText = emailMsg; Email.style.background = color; } function ValidateValues() { if (!validateEmail($("#SFEmail"))) { return false; } return true; } document.addEventListener("DOMContentLoaded", function () { if (vCompanyKey === "50ea5a26-55ad-4f09-9861-49255435229f") { const deliveryMethodSelect = document.getElementById("DeliveryMethod"); const emailBox = document.getElementById("boxSFEmail"); const form = document.querySelector("form"); const isFrench = window.location.href.includes("fr-fr-row.ups.com"); const errorMessages = { required: isFrench ? "L'e-mail est requis." : "Email is required.", invalid: isFrench ? "Veuillez saisir une adresse e-mail valide." : "Please enter a valid email address.", }; let isFieldRequired = false; function setEmailFieldRequired(isRequired) { isFieldRequired = isRequired; const currentInput = emailBox.querySelector("input"); const currentValue = currentInput ? currentInput.value : ""; emailBox.innerText = ""; // Clear all children const label = document.createElement("label"); label.className = isRequired ? "fw-bold" : ""; label.innerText = isFrench ? "Adresse Courriel" : "Email"; emailBox.appendChild(label); if (isRequired) { const icon = document.createElement("img"); icon.src = "/Content/Images/icn_required.gif"; icon.alt = "required"; icon.className = "borwidthzero"; icon.style.display = "inline"; icon.style.marginLeft = "0.25em"; emailBox.appendChild(icon); } emailBox.appendChild(document.createElement("br")); const validationSpan = document.createElement("span"); validationSpan.id = "SFEmail-error"; validationSpan.className = "text-danger"; emailBox.appendChild(validationSpan); const input = document.createElement("input"); input.className = isRequired ? "required w-220" : "w-220"; input.type = "text"; input.id = "SFEmail"; input.name = "SFEmail"; input.maxLength = 50; input.value = currentValue; if (isRequired) { input.setAttribute("required", ""); input.setAttribute("data-val-required", errorMessages.required); } emailBox.appendChild(input); input.addEventListener("blur", validateEmailField); } function validateEmailField() { const input = document.getElementById("SFEmail"); const errorSpan = document.getElementById("SFEmail-error"); const val = input.value.trim(); const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; if (isFieldRequired) { if (!val) { errorSpan.innerText = errorMessages.required; return false; } else if (!emailRegex.test(val)) { errorSpan.innerText = errorMessages.invalid; return false; } else { errorSpan.innerText = ""; return true; } } else { errorSpan.innerText = ""; return true; } } function checkDeliveryMethod() { var labeldelivery = document.getElementById("DeliveryMethod").value; if (labeldelivery === "6B" || labeldelivery === "6A" || labeldelivery === "4E" ) { setEmailFieldRequired(deliveryMethodSelect.value === labeldelivery); } } deliveryMethodSelect.addEventListener("change", checkDeliveryMethod); checkDeliveryMethod(); if (form) { form.addEventListener("submit", function (e) { const valid = validateEmailField(); if (!valid) { e.preventDefault(); } }); } } //alert (vLoginType_Text) //if (vLoginType_Text === "StandardShipGuest") { /*Adjust forms width for guest*/ $("#main_ship_form").css("width", "500px"); /*Hides the ShipTo Header and Address Section for Guest*/ UIKit.hideElement(document.querySelectorAll("#mainTable > tbody > tr:nth-child(1) > th:nth-child(2)")); UIKit.hideElement(document.querySelectorAll("#mainTable > tbody > tr:nth-child(2) > td:nth-child(2)")); } }); function validateEmail(Email) { var retVal = true; if (Email.val().length == 0) { //$("#Reference1ErrorMessage").html("Error, Reference 1 field is empty. Please Correct."); //$("#errorMessage").html("Error, Reference 1 field is empty. Please Correct."); //$("#Reference1").css("background", "red"); EmailError(emailMsg, "red"); retVal = false; } return retVal; } // Replace the jQuery change with vanilla JS and a short debounce document.getElementById("boxSFCust02")?.addEventListener("change", () => { // debounce so if something else is mutating SFCust02 in quick succession we wait briefly clearTimeout(window.__boxSFCust02_timer); window.__boxSFCust02_timer = setTimeout(() => { const cutProfile = document.getElementById("SFCust02")?.value; if (cutProfile) { console.log(cutProfile); if (typeof changeAccount === "function") { changeAccount(cutProfile); } else if (typeof change_account === "function") { change_account(cutProfile); } } }, 1500); }); /* $("#boxSFCust02").change(function () { setTimeout(function () { // //alert (delivery); // console.log(cutprofile); if (cutprofile != "") { change_account(cutprofile); } }, 1500); }); */ document.getElementById("SFState")?.addEventListener("change", () => { setTimeout(function () { const selectedProfile = vLoginType_Text === "StandardShipGuest" ? profile : document.getElementById("SFCust02")?.value; if (selectedProfile) { changeAccount(selectedProfile); } }, 1500); }); /* // Consolidated, optimized change_account logic (renamed to camelCase) function changeAccount(profileVal) { const state = document.getElementById("SFState")?.value; const prepaidEl = document.getElementById("PrePaidAccount"); const addressListEl = document.getElementById("STAddressBookList"); const changeEvent = new Event("change"); if (!prepaidEl || !addressListEl) return; let accountVal; let addressVal; if (profileVal === "OX") { accountVal = "XH7618"; addressVal = "926180305"; } else { // Cogeco logic if (state === "QC") { accountVal = "679826"; addressVal = "926180306"; } else { accountVal = "Y0690W"; addressVal = "927231628"; } } // Set PrePaidAccount prepaidEl.value = accountVal; prepaidEl.dispatchEvent(changeEvent); // Set STAddressBookList addressListEl.value = addressVal; // also ensure the option is marked selected (some browsers respect value assignment) const opt = addressListEl.querySelector(`option[value="${addressVal}"]`); if (opt) opt.selected = true; addressListEl.dispatchEvent(changeEvent); // Debug logging console.log("STAddressBookList:", addressListEl.value); console.log("PrePaidAccount:", prepaidEl.value); console.log(document.getElementById("STAddressBookList").value); } */ /* $("#SFState").change(function () { setTimeout(function () { var custprofile = document.getElementById("SFCust02").value; if (vLoginType_Text === "StandardShipGuest") { changeAaccount(profile); } //alert (state); //alert (shipto); //if cust rep use value from cust rep selection else { changeAccount(custprofile); } }, 1500); }); */ function changeAccount(profile) { var state = document.getElementById("SFState").value; var selProfile = document.getElementById("SFCust02").value; console.log(state); console.log(profile); if (profile === "custrep") { profile = selProfile } if (profile === "OX") { //Oxio 926180305 document.getElementById("PrePaidAccount").value = "XH7618"; $("#PrePaidAccount").change(); //Select the option with the value ON DC "926180305" and set it as selected document.getElementById("STAddressBookList").value = "926180305"; $("#STAddressBookList").change(); //Select the option with the value "926180305" and set it as selected document.querySelector("#STAddressBookList option[value='926180305']").selected = true; //Set the value of the select element to "926180305" document.getElementById("STAddressBookList").value = "926180305"; //Trigger the change event on the select element const eventUS = new Event("change"); document.getElementById("STAddressBookList").dispatchEvent(eventUS); console.log(document.getElementById("STAddressBookList").value); console.log(document.getElementById("PrePaidAccount").value); } else { //Cogeco if (state === "QC") { console.log ("Entro a Ontorio"); document.getElementById("PrePaidAccount").value = "679826"; $("#PrePaidAccount").change(); //Select the option with the value QC Warehouse "926180306" and set it as selected document.getElementById("STAddressBookList").value = "926180306"; $("#STAddressBookList").change(); //Select the option with the value "926180306" and set it as selected document.querySelector("#STAddressBookList option[value='926180306']").selected = true; //Set the value of the select element to "926180306" document.getElementById("STAddressBookList").value = "926180306"; //Trigger the change event on the select element const eventUS = new Event("change"); document.getElementById("STAddressBookList").dispatchEvent(eventUS); console.log(document.getElementById("STAddressBookList").value); console.log(document.getElementById("PrePaidAccount").value); } else { //ontorio console.log ("Entro a Ontorio"); document.getElementById("PrePaidAccount").value = "Y0690W"; $("#PrePaidAccount").change(); //Select the option with the value ON DC "927231628" and set it as selected /* document.getElementById("STAddressBookList").value = "927231628"; $("#STAddressBookList").change(); */ //Select the option with the value "927231628" and set it as selected document.querySelector("#STAddressBookList option[value='927231628']").selected = true; //Set the value of the select element to "927231628" document.getElementById("STAddressBookList").value = "927231628"; //Trigger the change event on the select element const eventUS = new Event("change"); document.getElementById("STAddressBookList").dispatchEvent(eventUS); console.log(document.getElementById("STAddressBookList").value); console.log(document.getElementById("PrePaidAccount").value); } } } $("#ProcessShipment").click(function () { var selProfile = document.getElementById("SFCust02").value; var state = document.getElementById("SFState").value; if (profile == "custrep") { if (selProfile === "00") { alert(alertprof); this.focus(); return false; } if (selProfile === "CO") { if (state !== "QC" && state !== "ON") { alert(alertstate); this.focus(); return false; } } } }); //rma 030925 miSelect.addEventListener('change', function(event) { var locL = window.location.host; var miop=this.value; if (locL === 'fr-fr-row.ups.com') { switch (miop) { case "6B": spanMensaje.textContent = `Obtenez un QR code mobile à scanner chez The UPS Store`; break; case "6A": spanMensaje.textContent = `Vous générez l'étiquette`; break; case "4E": spanMensaje.textContent = `Vous générez l'étiquette`; break; case "5P": spanMensaje.textContent = `Vous générez l'étiquette`; break; case "21": spanMensaje.textContent = `UPS livre une étiquette d'expédition à votre client et récupère l'envoi`; break; default: spanMensaje.textContent = ` `; } }else { switch (miop) { case "6B": spanMensaje.textContent = `Get a mobile QR code to be scanned at The UPS Store`; break; case "6A": spanMensaje.textContent = `You generate the label`; break; case "4E": spanMensaje.textContent = `You generate the label`; break; case "5P": spanMensaje.textContent = `You generate the label`; break; case "21": spanMensaje.textContent = `UPS delivers a shipping label to your customer and collects the shipment`; break; default: spanMensaje.textContent = ``; } } }); //rma030925 function miFuncionE() { let loc1 =""; loc1 = window.location.host; setInterval(function(){},3000); localStorage.setItem("globalloc", loc1); return true; }; function miFuncionF() { let loc2 =""; loc2 = window.location.host; setInterval(function(){},3000); localStorage.setItem("globalloc",loc2); return true; } ; window.addEventListener("beforeunload", function () { document.getElementById("shipForm").reset(); }); .MastLeft { width: auto; width: 275px; min-height: auto; color: #000000 !important; height: auto !important; height: 400px; padding: 2px 10px; margin: -1px 0px 0 0px; float: left; display: inline-block; position: relative; text-align: left; font-family: Quicksand,Arial,sans-serif !important; } #mainTable { font-size: 14px; font-family: Quicksand,Arial,sans-serif !important; } .MastMain { margin: 0px; padding: 0; display: inline-block; position: relative; width: 770px; height: auto; } #labelPack{ display: none; } #SFCust01{ width: 225px !important; } #SFCust02{ width: 225px !important; } /*Remove border*/ #shipFromAddressBook, #mainTable > tbody > tr:nth-child(2) > td:nth-child(4) { border-right: 0 !important; } h2{ color: #000000 !important; font-style: normal; font-family: Quicksand,Arial,sans-serif !important; } hr{ display: none; } #shipForm { display: block; position: relative; max-width: none; margin: auto; width: 100%; } /*change ship form back color*/ .FormModule, .FormModule p, .FormModule h4, .FirstColumnModule, .FirstColumnModule p, .FirstColumnModule h4, .ButtonBarDiv { background-color: #fff !important; padding: 5 10px; font-family: Quicksand,Arial,sans-serif !important; } /*Remove border on bottons*/ #ButtonBarDiv { height: 43px !important; } /*Container block properties*/ #gaShipToSpan { background-color: #001e62; color: yellow; display: block!important; top: 21px; display: none; /* font-weight: bold;*/ /* position: relative;*/ padding: 10px; border-radius: 15px; line-height: 1.6; } #mainTable > tbody > tr:nth-child(2) > td:nth-child(2) { border-right: solid 0px #908474; } /*modify border on bottons*/ [type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) { font-weight: 600 !important; box-shadow: none !important; display: inline-block; line-height: 16px !important; text-align: center; text-decoration: none !important; padding: 8px 18px !important; transition: all .3s ease 0s !important; border: 0 none !important; min-height: auto !important; } /*Container block properties*/ #gaShipToSpan { background-color: #001e62; color: yellow; display: block!important; top: 21px; display: none; /* font-weight: bold;*/ /* position: relative;*/ padding: 10px; border-radius: 15px; line-height: 1.6; } /*Control line properties*/ .stHighlight { color: #000; background-color: yellow; font-style: italic; font-weight: bold; margin: 0; padding-left: 5px; } .FormModule .Header, .FormModule caption, .ColorModule .Header, .ColorModule caption, .TableModule .Header, .TableModule caption, .ListModule .Header, .ListModule caption { color: #fff; font-weight: 500; margin-right: 16px; padding: 0px 5px; text-decoration: none; background-color: #001e62; } /*Center buttons*/ #ButtonBarDiv { background: #fff; margin-top: 2%; border-radius: 25px; text-align: center; } /*Buttons*/ #ProcessShipment, #Clear, #packageHistoryBtn { background: #001e62; border: 1px solid rgb(122, 0, 230); border-radius: 0.33em; color: #fff; } .myprocess{ background-color: #C0F0AF; /* Rojo */ color:#2F2E2E; } .myclear{ background-color: #FFCBAE; /* Rojo */ color:#2F2E2E; } /*Footer Section*/ body > div.page-layout > footer { background-color: white !important; color: #001e62 !important; font-size: 12px; } footer a { color: #fff; !important; font-size: 12px; } /*Controls the textbox alignment for ShipFrom, ShipTo, Shipment Sections*/ #shipFromAddressBook, #mainTable > tbody > tr:nth-child(2) > td:nth-child(2), #mainTable > tbody > tr:nth-child(2) > td:nth-child(3) { padding-left: 15px; } #languages, .OneLinkNoTx li { background-color: #ED6AFF !important; color: #fff; border: solid 0px black! important; } #languages, .OneLinkNoTx2 li { background-color: #001e62 !important; color: #fff; border: solid 0px black! important; } div> img.banner{ width:50px; height:50px; } ol { margin: 10px 0; padding: 2px 30px; list-style-type: decimal; } .Header { width: 100%; } <div id="English" ><h2><b>RETURN INSTRUCTIONS </b></h2><p /><p style="color:#8B4513;"> </p> <b><p style="color:#8B4513;"> &#9830; = Required fields</p><br/><ol> <li>Enter your shipping address and email address. </li><br/><li>Select the delivery method of the return label. </li><br/> <li>Click on "Generate Label" after entering all the information.<br/><br/> </li><li>Make sure you have the return label on your mobile phone or stick the printed version on the package <br/><br/></li><li>Drop off your package at a UPS drop-off location. <a href="https://www.ups.com/content/ca/en/index.jsx" target="_blank"> Click here </a> to find the one nearest to you. <br/><br/></li></ol></br></ul></ol></div> <div id="French" > <h2><b>INSTRUCTIONS DE RETOUR </b></h2><p /><p style="color:#8B4513;"> </p> <b><p style="color:#8B4513;"> &#9830; = Champs obligatoires</p> <br/><ol><li>Entrez votre adresse d'expédition et votre adresse courriel. </li><br/><li>Sélectionnez la méthode de livraison de l'étiquette de retour. </li><br/><li>Cliquez sur « Générer l'étiquette » après avoir entré toutes les informations.<br/><br/></li> <li>Assurez-vous d’avoir l’étiquette de retour sur votre mobile ou collez la version imprimée sur le colis. <br/><br/></li> <li>Déposez le colis dans un point de dépôt UPS. <a href="https://www.ups.com/content/ca/fr/index.jsx" target="_blank"> Cliquez ici</a> pour trouver le plus proche de chez vous. <br/> <br/></li></o></div>90falsefalsefalsefalsefalsefalsefalsetruefalse0falsefalse0falsefalse1753-01-01T00:00:00truefalsefalsefalsefalsefalsefalsefalse0truefalsefalsefalsetruetruefalsetruefalse<div id="custom_selects_1"></div> <div id="custom_selects_2"></div>trueQ09HRUNPfalseP278078falsefalsed15ac9fb-ebd3-4083-9ad0-31e5a0273310falsefalsefalsefalsefalse<script> // alert(localStorage.getItem("sfmailcode")); //Retrieves the PostalCode from the ShipFrom var sfctry = (localStorage.getItem("sfcountry")); var sfzip = (localStorage.getItem("sfpostal")); // alert(sfctry); // alert(sfzip); //var pageURL = $(location).attr("href"); // alert(pageURL); function GetURLParameter(sParam) { var sPageURL = $(location).attr("href"); var sURLVariables = sPageURL.split('&'); for (var i = 0; i < sURLVariables.length; i++) { var sParameterName = sURLVariables[i].split('='); if (sParameterName[0] == sParam) { return sParameterName[1]; } } }; var countrySF = GetURLParameter('country'); var postalSF = GetURLParameter('postalcode'); // alert(countrySF); // alert(postalSF); if (countrySF === undefined) { var ctry_sf = sfctry // alert(ctry_sf); } else { var ctry_sf = countrySF // alert(ctry_sf); } if (postalSF === undefined) { var zip_sf = sfzip // alert(zip_sf); } else { var zip_sf = postalSF // alert(zip_sf); } </script> <div id="EngG"> <h3 style="color:#60513A;">UPS Electronic Return Label : View/Print Label</h3> <br> <ol> <li><b>Ensure that there are no other tracking labels attached to your package.</b></li> <br><br> <li><b>Fold the printed label at the solid line above. Place the label in a UPS Shipping Pouch. If you do not have a pouch, affix the folded label using clear plastic shipping tape over the entire label. Take care not to cover any seams or closures.</b></li> <br><br> <li><b>Drop-off</b> <br/> <ul> <li><b>Drop off this package at a UPS Store®, a UPS drop box, a UPS customer service center, at a UPS partner (like Staples®) or any other authorized shipping point near you. Items shipped with UPS Returns® services (including UPS® Ground) are accepted in drop boxes. To find the nearest drop-off point, visit the site <a href="https://www.ups.com/content/us/en/index.jsx" target="_blank">UPS Drop Off </a> and click on 'Find Closest UPS Location'. </b> <br/> </li> </ul> <br><br> </ul> </li> </ol> </div> <div id="FrnG"> <h3 style="color:#60513A;">UPS Electronic Return Label : View/Print Label</h3> <br> <ol> <li><b>Assurez-vous qu'aucune autre étiquette de suivi n'est apposée sur votre colis.</b></li> <br><br> <li><b>Pliez l'étiquette imprimée en suivant le trait ci-dessus. Insérez l'étiquette dans une pochette d'expédition UPS. Si vous n'avez pas de pochette, fixez solidement l'étiquette pliée avec du ruban adhésif transparent en recouvrant entièrement sa surface. Veillez à ne pas apposer l'étiquette sur les rebords ou la fermeture du colis.</b></li> <br><br> <li><b>Dépôt:</b> <br/> <ul> <li> <b>Déposez ce colis dans une boutique UPS Store®, une boîte de dépôt UPS, un centre de service à la clientèle UPS, chez un partenaire UPS (comme Bureau en Gros®) ou tout autre point d'expédition autorisé près de chez vous. Les articles expédiés avec les services UPS Returns® (y compris UPS® Ground) sont acceptés dans les boîtes de dépôt. Pour trouver le point de dépôt le plus proche, visitez le site <a href="https://www.ups.com/content/ca/fr/index.jsx" target="_blank">UPS Dépôt </a> et cliquez sur "Trouver Le Point de Service UPS Le Plus Près".</b> <br/> </li> </ul> <br><br> </ul> </li> </ol> </div> <div id="EngC"> <h3 style="color:#60513A;">UPS Electronic Return Label : View/Print Label</h3> <br> <ol> <li><b>Ensure that there are no other tracking labels attached to your package.</b></li> <br><br> <li><b>Fold the printed label at the solid line above. Place the label in a UPS Shipping Pouch. If you do not have a pouch, affix the folded label using clear plastic shipping tape over the entire label. Take care not to cover any seams or closures.</b></li> <br><br> <li><b>Collection</b> <br/> <ul> <li>Schedule pickup of your prepared packages online for today or later, and a UPS driver will pick them up. <br> <br> <br/> <li>Daily Pickup Customers: Remember to prepare your package(s) before the UPS driver arrives. </li> </ul> <br><br> </ul> </li> </ol> </div> <div id="FrnC"> <h3 style="color:#60513A;">UPS Electronic Return Label : View/Print Label</h3> <br> <ol> <li><b>Assurez-vous qu'aucune autre étiquette de suivi n'est apposée sur votre colis.</b></li> <br><br> <li><b> Pliez l'étiquette imprimée en suivant le trait ci-dessus. Insérez l'étiquette dans une pochette d'expédition UPS. Si vous n'avez pas de pochette, fixez solidement l'étiquette pliée avec du ruban adhésif transparent en recouvrant entièrement sa surface. Veillez à ne pas apposer l'étiquette sur les rebords ou la fermeture du colis.</b></li> <br><br> <li><b>Cueillette/Dépôt:</b> <br/> <ul> <li> Planifiez le ramassage de vos colis préparés en ligne pour aujourd'hui ou plus tard, et un chauffeur UPS passera les prendre. <br/> <br/> <li>Client béficiant du service de ramassage quotidien : N'oubliez pas de préparer votre ou vos colis avant l'arrivée du conducteur UPS./Clients with daily pickup need to prepare their package before the driver arrives. <br/> </li> </ul> <br><br> </ul> </li> </ol> </div> <script nonce="65E3F5F2EFB246E4A1C28CC10921318AAC4E5FD149114314B00C827114E5FC8C"> window.addEventListener("load", (event) => { if(document.getElementById('divPickup')){ if (localStorage.globalprofile != "custrep") { var pickup = document.getElementById("linkPickup"); pickup.style.display = "none"; var divpickup = document.getElementById("divPickup"); divpickup.style.display = "none"; } } }); $(document).ready(function() { { //document.getElementById("linkPickup").hide(); if(document.getElementById('divPickup')){ if (localStorage.globalprofile != "custrep") { var pickup = document.getElementById("linkPickup"); pickup.style.display = "none"; var divpickup = document.getElementById("divPickup"); divpickup.style.display = "none"; } } //rma1108 var loc = window.location.host; console.log(loc); console.log(localStorage.globalprofile); if( localStorage.globalloc == "fr-fr-row.ups.com"){ if(localStorage.globalprofile != "custrep"){ document.getElementById("EngG").style.display = "none"; document.getElementById("EngC").style.display = "none"; document.getElementById("FrnC").style.display = "none"; } else{ document.getElementById("EngG").style.display = "none"; document.getElementById("EngC").style.display = "none"; document.getElementById("FrnG").style.display = "none"; } } else{ if(localStorage.globalprofile != "custrep"){ document.getElementById("FrnC").style.display = "none"; document.getElementById("FrnG").style.display = "none"; document.getElementById("EngC").style.display = "none"; } else{ document.getElementById("FrnC").style.display = "none"; document.getElementById("FrnG").style.display = "none"; document.getElementById("EngG").style.display = "none"; } } //rma 1108 } }); </script> 0N/ACANADA902025-10-22T17:32:06mathieu.morin@cogeco.comugBrG13uPRD_COGECO_000000_RefreshToken0102673b16-dd63-42da-82b7-f3c9da50d483f86c5b07-8127-4fbe-92c7-c4d420eac268falsefalse1falseCOGECO35891Guest Accesstrue0ba885990-4916-46bb-a735-a97495e59644COGECO2025-06-25T00:00:002001077