diff --git a/_dev/apps/ui/src/assets/json/prestashopUrl.json b/_dev/apps/ui/src/assets/json/prestashopUrl.json index 7a38c37e8..568241b71 100644 --- a/_dev/apps/ui/src/assets/json/prestashopUrl.json +++ b/_dev/apps/ui/src/assets/json/prestashopUrl.json @@ -1,3 +1,8 @@ { - "contactForm": "https://help-center.prestashop.com/contact" + "contactForm": { + "en": "https://prestashop-academy.com/gb/contact-us", + "fr": "https://prestashop-academy.com/fr/nous-contacter", + "it": "https://prestashop-academy.com/it/contattaci", + "es": "https://prestashop-academy.com/es/contactenos" + } } \ No newline at end of file diff --git a/_dev/apps/ui/src/store/modules/app/getters.ts b/_dev/apps/ui/src/store/modules/app/getters.ts index 6eb3587f4..5129850a9 100644 --- a/_dev/apps/ui/src/store/modules/app/getters.ts +++ b/_dev/apps/ui/src/store/modules/app/getters.ts @@ -43,8 +43,9 @@ export default { state: LocalState, getters, rootState, rootGetters, ): string { const {domain} = rootGetters['accounts/GET_PS_ACCOUNTS_CONTEXT'].currentShop; + const languageCode = rootGetters[`app/${GettersTypes.GET_CURRENT_LANGUAGE}`]; - return `${prestashopUrls.contactForm}?utm_source=back-office&utm_medium=psx&psx=psxmarketingwithgoogle&shop_domain=${domain}`; + return `${prestashopUrls.contactForm[languageCode] ?? prestashopUrls.contactForm.en}?utm_source=back-office&utm_medium=psx&psx=psxmarketingwithgoogle&shop_domain=${domain}`; }, [GettersTypes.GET_DEBUG_DATA](state: LocalState): DebugData { return state.debugData;