[Skip to main content](#vessel-content)

#   PayPal Return Url for different languages

##

- **[franchina](/forum/user/59359-franchina "View franchina's Profile")**
- [![franchina's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/59359-franchina "View franchina's Profile") Topic Author
- [ Offline](/forum/user/59359-franchina)

Less More

- Posts: 15
- Thank you received: 1
-

6 years 3 months ago [\#322907](#322907) by [franchina](/forum/user/59359-franchina "View franchina's Profile")  *[PayPal Return Url for different languages](/forum/10-translation/900580-paypal-return-url-for-different-languages#322907 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20  Hello, Is it possible in the &quot;HikaShop Paypal payment plugin&quot; to customize the page to be inserted in the &quot;Return URL&quot; for each language?  THX")* was created by *[franchina](/forum/user/59359-franchina "View franchina's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.20

Hello,
Is it possible in the "HikaShop Paypal payment plugin" to customize the page to be inserted in the "Return URL" for each language?

THX

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzkwMDU4MC1wYXlwYWwtcmV0dXJuLXVybC1mb3ItZGlmZmVyZW50LWxhbmd1YWdlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86583
- Thank you received: 14324
-
-

6 years 3 months ago [\#322930](#322930) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal Return Url for different languages](/forum/10-translation/900580-paypal-return-url-for-different-languages#322930 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20  Hello, Is it possible in the &quot;HikaShop Paypal payment plugin&quot; to customize the page to be inserted in the &quot;Return URL&quot; for each language?  THX")*

Hi,

No, but that's a good idea.
Add the code: Code:

$paymentOptions-&gt;payment_params-&gt;return_url = hikashop_translate($paymentOptions-&gt;payment_params-&gt;return_url);

before the line: Code:

foreach(get_object_vars($order) as $key =&gt; $val) {

in the file administrator/components/com_hikashop/classes/cart.php
We'll add that change on our end too for the next version of HikaShop, that way, you won't have to do anything when you update.

Then, instead of entering a URL in that "return URL" parameter, you can enter a translation key (for example MY_RETURN_URL).
And then, in the Languages tab of the HikaShop configuration, for each language, you can add such translation override:
MY_RETURN_URL="xxx"
where xxx is the URL you want for the language.

The following user(s) said Thank You: [franchina](/forum/user/59359-franchina "View franchina's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzEwLXRyYW5zbGF0aW9uLzkwMDU4MC1wYXlwYWwtcmV0dXJuLXVybC1mb3ItZGlmZmVyZW50LWxhbmd1YWdlcz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.054 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
