Jump to content

Paypal link dead javascript:void(0)


Recommended Posts

IHi,

 

I am using

Paypal 3.10.0 with Prestashop 1.5.2.0

 

on mysite matchafactory.fr/en/

 

When customers reach the checkout stage the the checkout page looks in order but paypal link is dead.  It links to javascript:void(0).  I've seen a few people have had this problem but there are no solutions.  Any ideas?

 

Thanks in advance,

Stephen

Link to comment
Share on other sites

  • 5 weeks later...

No, I contacted opaypal and they said it was a prestashop image.  I just had to stop using paypal.  I have the issue with 1.6.1 and 1.5.2 I am surprised more people don't have this issue.  Are you using moneybookers by any chance?  Maybe there is a conflict with this module.

Link to comment
Share on other sites

Hi Stephen,

 

I´m not usin moneybookers, but I read it could be a java conflict with another module.

 

If someone have any suggestion I appreciate. If not I´m afraid I won´t have another option that stop using paypal.

 

Link to comment
Share on other sites

Going back to the earlier version of paypal 3.6.8 solved my problem thanks.  I am a bit worried about updates and if it will continue to work.  Can someone look into what javascript conflict is causing the problems with the newer versions of paypal.

 

Thanks

Link to comment
Share on other sites

  • 3 weeks later...

can someone help me? i'm using paypal v3.10.0.

 

I have the exact same problems with paypal with the dead link, so I want to try installing the old version of paypal. I'm using prestashop cloud, but I can't download this old version to install.

 

I am restricted! Pls see screenshot.

 

Pls help me. I really need this to work asap.

post-1053074-0-68015600-1442029531_thumb.png

Link to comment
Share on other sites

I had the same problem.

After a long search I think I solved, and it seems to be a cache problem.

Go to Performance parameters, for smarty options, set template compilation to force compilation and no cache. Then save.

After that you can set these parameters to the previous status.

Link to comment
Share on other sites

The version of my prestashop is 1.6.0.8, and the previous working version of paypal was 3.10.0

I have deactivated all option about cache and all options of CCC.

Because the file paypal.js is not loaded as a normal javascript but is embedded inside the html, I think it needed to deactivate all possible options.

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

The version of my prestashop is 1.6.0.8, and the previous working version of paypal was 3.10.0

I have deactivated all option about cache and all options of CCC.

Because the file paypal.js is not loaded as a normal javascript but is embedded inside the html, I think it needed to deactivate all possible options.

Thanks Mikie. This solution has solved also my problem. 

Now the question is, how much the performance of the site will decrease, but I haven´t found any other solution.

Link to comment
Share on other sites

Thanks Mikie. This solution has solved also my problem. 

Now the question is, how much the performance of the site will decrease, but I haven´t found any other solution.

 

You are welcome.

I don't know about the performance. But you could active again your cache options and test it on some pages.

I think it depends on the server configuration too.

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 1 month later...

Hello,

Same problem after upgrading to 1.6.1.3.

I tried every solution given in this topic and on some other forums. I regenerated the htaccess.

Set debug on but no error shows.

 

Anyone has another idea?

 

Link to comment
Share on other sites

  • 3 weeks later...

Hello !

Same issues here but with Paypal and another paiement module (which work also with href="javascript(void)".

 

I figure something.

When link seems disabed, uncheck then check the CGU checkbox reload the paiement methods and fix the issues... but why ? 

Link to comment
Share on other sites

  • 2 months later...
  • 4 weeks later...

Hello,

I have similiar problem with latest Paypal europe module. If I activate "Use PayPal In Context Checkout" -> try to pay with paypal -> this error pops up: error in ajax post error

Activated console on google chrome and noticed that paypal loads mixed content on secure page. ..../payment.php loads with insecure connection:

http://www.store.fi/modules/paypal/express_checkout/payment.php?&ajax=1&onlytoken=1&express_checkout=cart&current_shop_url=https://www.store.fi/fi/pikatilaus?&bn=PRESTASHOP_ECM&quantity=&id_p_attr=

 

Does anybody have a clue how to force it load all content with https -connection?

Link to comment
Share on other sites

Im having the same problem

 

My paypal checkout botton is not working.. I download an old version, i change permissions, I made all the changes that paypal and prestashop told me and is not working!

 

It say a javascrip:voi problem 

 

Did someone find a solution?

 

Many thanks!!

Link to comment
Share on other sites

  • 3 months later...

I don't know if people are still having this problem, but I recently upgraded to Paypal 3.10.10 and found the problem. 

 

I fixed this by making a minor source code modification:

 

modules/paypal/views/hook/express_checkout_payment.tpl

 

From line 58 the file reads:

 

{else}
<p class="payment_module">
<a href="javascript:void(0)" id="paypal_process_payment" title="{l s='Pay with PayPal' mod='paypal'}">
{if isset($use_mobile) && $use_mobile}
<img src="{$base_dir_ssl|escape:'htmlall':'UTF-8'}modules/paypal/views/img/logos/express_checkout_mobile/CO_{$PayPal_lang_code|escape:'htmlall':'UTF-8'}_orange_295x43.png" />
{else}
 
The <a> tag is missing an onclick handler...  Update the line to read:
 
<a href="javascript:void(0)" onclick="$('#paypal_payment_form').submit();" id="paypal_process_payment" title="{l s='Pay with PayPal' mod='paypal'}">
 
After making this change I could run with caching on as normal.  Also I could operate paypal with Use Paypal in Context Checkout set to No.  As I don't have a cert yet I thought that may be preferable. 
 
 
Link to comment
Share on other sites

  • 3 months later...

Hello! One of my friends send me that solution:

 

one solution is replace this "javascript:void(0)" whith "#". for example: <a href="javascript:void(0)" onclick="$('#paypal_payment_form').submit();" id="paypal_process_payment" title="{l s='Pay with PayPal' mod='paypal'}"> will be <a href="#" onclick="$('#paypal_payment_form').submit();" id="paypal_process_payment" title="{l s='Pay with PayPal' mod='paypal'}"> but only in '<a>' tags with href and onclick together.

  • Like 2
Link to comment
Share on other sites

  • 1 month later...

I just upgraded to the very latest prestashop version 1.6.1.10 and the latest PayPal module 3.10 and having the same problem above. I believe the missing image linked to a page giving the customer info about PayPal and this file no longer exists on /modules/paypal/about.php 

 

My fix was this:-

1. I logged into the front end as a customer so we have the creditorials to get to a customer account

2. open prestashop back office and go to Modules- Positions and run the live edit on the top right.

3. go to customer account page i.e. sign in and click on the My alert tab (This will show the paypal missing ? image) and click the bin icon next to it. 

4 save changes and exit live edit

 

Problem solved :) 

Link to comment
Share on other sites

  • 6 months later...

Hello! One of my friends send me that solution:

 

one solution is replace this "javascript:void(0)" whith "#". for example: <a href="javascript:void(0)" onclick="$('#paypal_payment_form').submit();" id="paypal_process_payment" title="{l s='Pay with PayPal' mod='paypal'}"> will be <a href="#" onclick="$('#paypal_payment_form').submit();" id="paypal_process_payment" title="{l s='Pay with PayPal' mod='paypal'}"> but only in '<a>' tags with href and onclick together.

 

Hi, if i change javascript:void(0) with #, button become clickable (i think i've try every fix on the web, and this seems to be the only one make my button working), but i remain on the same page..maybe i'm making something wrong..

Link to comment
Share on other sites

  • 6 months later...
  • 2 years later...

 javascript:void(0) is not a very critical error, it sure is an irritating to encounter. When you encounter the javascript:void(0) error it most probably is an indication of an error stemming from your browser; which in turn blocks you from accessing a particular website. The root cause of the error can be traced to a resident pop up blocker in your internet browser. Also, it may be triggered by a proxy server if you are connecting to the internet through proxy.

The void operator evaluates the given expression and then returns undefined. If you have pass 0 as the unary expression operand to the void operator, JavaScript coerces 0 to "false" and returns, but void doesn't care and simply returns undefined, which means "do nothing" . Put them together and you have composed a way to programmatically "do nothing" when a link is clicked. JavaScript Void(0) is often used when, inserting an expression into a web page may produce an unwanted side-effect.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...