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

#   Window.open on After\_end page?

##

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

Less More

- Posts: 152
- Thank you received: 11
-
-

5 years 8 months ago [\#331288](#331288) by [gerryna09](/forum/user/52735-gerryna09 "View gerryna09's Profile")  *[Window.open on After\_end page?](/forum/29-payment-methods/902280-window-open-on-after-end-page#331288 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.15  In the php code of the after&#95;end.php page there is $doc-&gt;addScriptDeclaration(&quot;window.hikashop.ready( function() {window.location='&quot;.$this-&gt;payment&#95;params-&gt;return&#95;url.&quot;'});&quot;);  I replaced window.location with window.open. Nothing is happening ;-(")* was created by *[gerryna09](/forum/user/52735-gerryna09 "View gerryna09's Profile")*

-- HikaShop version -- : 4.4.1
-- Joomla version -- : 3.9.25
-- PHP version -- : 7.4.15

In the php code of the after_end.php page there is
*$doc-&gt;addScriptDeclaration("window.hikashop.ready( function() {window.location='".$this-&gt;payment\_params-&gt;return\_url."'});");*

I replaced **window.location** with **window.open**.
Nothing is happening ;-(

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26402
- Thank you received: 4081
-
- [](http://obsi.dev)
-

5 years 8 months ago [\#331297](#331297) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Window.open on After\_end page?](/forum/29-payment-methods/902280-window-open-on-after-end-page#331297 "-- HikaShop version -- : 4.4.1 -- Joomla version -- : 3.9.25 -- PHP version -- : 7.4.15  In the php code of the after&#95;end.php page there is $doc-&gt;addScriptDeclaration(&quot;window.hikashop.ready( function() {window.location='&quot;.$this-&gt;payment&#95;params-&gt;return&#95;url.&quot;'});&quot;);  I replaced window.location with window.open. Nothing is happening ;-(")*

Hello,

I recommend you to search JavaScript help for that kind of modification.
You will find plenty of websites giving advices and also website with documentation regarding the JS common functions :
[ developer.mozilla.org/en-US/docs/Web/API/Window/open](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy85MDIyODAtd2luZG93LW9wZW4tb24tYWZ0ZXItZW5kLXBhZ2U/dG1wbD1tYXJrZG93bg==) 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.056 seconds

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