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

#   PayPal script issue

##

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

Less More

- Posts: 42
- Thank you received: 0
-
-

10 years 5 months ago [\#243083](#243083) by [michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")  *[PayPal script issue](/forum/29-payment-methods/885088-paypal-script-issue#243083 "-- HikaShop version -- : 2.6.3  Hi,  on paypal&#95;end.php file there is a small JavaScript snippet which submits the form to PayPal and somehow this snippet is blocking my template footer from displaying correctly.  When I remove the snippet everything is working correctly. Please see screenshots.  Thanks!")* was created by *[michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")*

-- HikaShop version -- : 2.6.3

Hi,

on paypal_end.php file there is a small JavaScript snippet which submits the form to PayPal and somehow this snippet is blocking my template footer from displaying correctly.

When I remove the snippet everything is working correctly. Please see screenshots.

Thanks!

- [ ![screen1&#95;2016-06-15.png](/forum/attachment/32091) ](/forum/attachment/32091 "...2016-06-15.png") [ ](/forum/attachment/32091?download=1 "...2016-06-15.png")
- [ ![screen2&#95;2016-06-15.png](/forum/attachment/32092) ](/forum/attachment/32092 "...2016-06-15.png") [ ](/forum/attachment/32092?download=1 "...2016-06-15.png")
- [ ![screen3.png](/forum/attachment/32093) ](/forum/attachment/32093 "screen3.png") [ ](/forum/attachment/32093?download=1 "screen3.png")

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 5 months ago -  10 years 5 months ago [\#243088](#243088) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[PayPal script issue](/forum/29-payment-methods/885088-paypal-script-issue#243088 "-- HikaShop version -- : 2.6.3  Hi,  on paypal&#95;end.php file there is a small JavaScript snippet which submits the form to PayPal and somehow this snippet is blocking my template footer from displaying correctly.  When I remove the snippet everything is working correctly. Please see screenshots.  Thanks!")*

Hello,

Maybe some little Css code may fixed your footer issue, but impossible to be sure of it without seeing it by myself.
Two solution for you :
- Provide an **url link** to your website.
- Or you add some **Css custom code**.

I want to know how to proceed, have a look on this link, [ here](https://www.hikashop.com/support/documentation/272-hikashop-display-by-color.html#custom).

**Note :** I advice you to edit your Css file at the end, later that will be easier to find and correct it.

To learn more about Css code and their properties, I invite you to read this source, [ here ](http://www.w3schools.com/css/).

Hope that will help you.

Regards,

Last edit: 10 years 5 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 42
- Thank you received: 0
-
-

10 years 5 months ago [\#243197](#243197) by [michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")  Replied by *[michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")* on topic *[PayPal script issue](/forum/29-payment-methods/885088-paypal-script-issue#243197 "-- HikaShop version -- : 2.6.3  Hi,  on paypal&#95;end.php file there is a small JavaScript snippet which submits the form to PayPal and somehow this snippet is blocking my template footer from displaying correctly.  When I remove the snippet everything is working correctly. Please see screenshots.  Thanks!")*

Hi,

I've sent all website logins via your contact form.

Thank you!

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 5 months ago -  10 years 5 months ago [\#243211](#243211) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[PayPal script issue](/forum/29-payment-methods/885088-paypal-script-issue#243211 "-- HikaShop version -- : 2.6.3  Hi,  on paypal&#95;end.php file there is a small JavaScript snippet which submits the form to PayPal and somehow this snippet is blocking my template footer from displaying correctly.  When I remove the snippet everything is working correctly. Please see screenshots.  Thanks!")*

Hello,

I had a little look on your website, unfortunately I can't help you because your footer isn't displayedor managed by HikaShop maybe it come from your template or maybe a module or else a plugin, I don't know.

The only thing I can tell you, is that for a reason or another it don't displayed on step 3, therefore it displayed on step 1 and 2.
And see, there are only one view to manage step...
There is something missing, maybe a configuration or else.
The best way for you is maybe, if it's the case to contact the creator of your your extension.

Sorry for this answer.

Regards

Last edit: 10 years 5 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 42
- Thank you received: 0
-
-

10 years 5 months ago -  10 years 5 months ago [\#243325](#243325) by [michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")  Replied by *[michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")* on topic *[PayPal script issue](/forum/29-payment-methods/885088-paypal-script-issue#243325 "-- HikaShop version -- : 2.6.3  Hi,  on paypal&#95;end.php file there is a small JavaScript snippet which submits the form to PayPal and somehow this snippet is blocking my template footer from displaying correctly.  When I remove the snippet everything is working correctly. Please see screenshots.  Thanks!")*

Hi Philip,

Sorry to tell you, but is not missing anything, the issue is with Hikashop and as I said this is the piece of code that is causing the issue:
Code:

&lt;script type="text/javascript"&gt; document.getElementById('hikashop_paypal_form').submit(); &lt;/script&gt;

On step 1 and 2 is working fine because the above code doesn't exist, soon as you move to the PayPal page redirection this script is loaded and is breaking all templates.

I've tested on other templates like Beez and Protostar and the issues are the same and even worse on Protostar. I've attached screenshots as proof.

thanks!

- [ ![beez.png](/forum/attachment/32154) ](/forum/attachment/32154 "beez.png") [ ](/forum/attachment/32154?download=1 "beez.png")
- [ ![protostar.png](/forum/attachment/32155) ](/forum/attachment/32155 "protostar.png") [ ](/forum/attachment/32155?download=1 "protostar.png")

Last edit: 10 years 5 months ago by [michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile").

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

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

Less More

- Posts: 4820
- Thank you received: 652
-
-

10 years 5 months ago -  10 years 5 months ago [\#243328](#243328) by [Philip](/forum/user/34318-philip "View Philip's Profile")  Replied by *[Philip](/forum/user/34318-philip "View Philip's Profile")* on topic *[PayPal script issue](/forum/29-payment-methods/885088-paypal-script-issue#243328 "-- HikaShop version -- : 2.6.3  Hi,  on paypal&#95;end.php file there is a small JavaScript snippet which submits the form to PayPal and somehow this snippet is blocking my template footer from displaying correctly.  When I remove the snippet everything is working correctly. Please see screenshots.  Thanks!")*

Hello,

The only solution I see, is maybe to waiting that your page fully loaded before apply this script function, and so replace your code by this one :
Code:

&lt;script type="text/javascript"&gt; window.hikashop.ready( function(){ document.getElementById('hikashop_paypal_form').submit(); } &lt;/script&gt;

Hope this will solve your issue.

Regards

Last edit: 10 years 5 months ago by [Philip](/forum/user/34318-philip "View Philip's Profile").

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

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

Less More

- Posts: 42
- Thank you received: 0
-
-

10 years 5 months ago [\#243519](#243519) by [michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")  Replied by *[michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")* on topic *[PayPal script issue](/forum/29-payment-methods/885088-paypal-script-issue#243519 "-- HikaShop version -- : 2.6.3  Hi,  on paypal&#95;end.php file there is a small JavaScript snippet which submits the form to PayPal and somehow this snippet is blocking my template footer from displaying correctly.  When I remove the snippet everything is working correctly. Please see screenshots.  Thanks!")*

Hi,

Now the footer works but the user is no longer automatically redirected to PayPal.

I need the user to be automatically redirected to PayPal for payment. Another click in the way of the checkout process is bad for conversions.

thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODUwODgtcGF5cGFsLXNjcmlwdC1pc3N1ZT90bXBsPW1hcmtkb3du) 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: 86593
- Thank you received: 14334
-
-

10 years 5 months ago [\#243523](#243523) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[PayPal script issue](/forum/29-payment-methods/885088-paypal-script-issue#243523 "-- HikaShop version -- : 2.6.3  Hi,  on paypal&#95;end.php file there is a small JavaScript snippet which submits the form to PayPal and somehow this snippet is blocking my template footer from displaying correctly.  When I remove the snippet everything is working correctly. Please see screenshots.  Thanks!")*

Hi,

This must mean that you have a javascript error on the page which prevents that javascript code to run after the page is loaded.
The code that we have by default will run as soon as the browser reads it. So the browser might stop the page processing in the middle, but the advantage is that the code will work even if there are javascript errors on the page as they will happen after.
With that new code Philippe gave you, it runs after the page is loaded and thus the whole page has to be loaded first, but if there is an error, the browser won't run that code.
That's why it's like that by default.
So you have to look at your browser's javascript error console for the error on that page and then fix it (probably an issue with the template or a module) and then that code change should work like you want.

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

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

Less More

- Posts: 42
- Thank you received: 0
-
-

10 years 5 months ago [\#243620](#243620) by [michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")  Replied by *[michaelmyth](/forum/user/33888-michaelmyth "View michaelmyth's Profile")* on topic *[PayPal script issue](/forum/29-payment-methods/885088-paypal-script-issue#243620 "-- HikaShop version -- : 2.6.3  Hi,  on paypal&#95;end.php file there is a small JavaScript snippet which submits the form to PayPal and somehow this snippet is blocking my template footer from displaying correctly.  When I remove the snippet everything is working correctly. Please see screenshots.  Thanks!")*

Hi Nicolas,

the problem is with the code that Philip gave me. If you look closely Is missing a ")" . Everything is working now.

thanks!

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

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