Jump to content

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

Share this post


Link to post
Share on other sites

This issue appears only related to the paypal upgrade Paypal 3.10.0 as 3.09 was working fine and continues to work fine if I delete 3.10 and add athe 3.9 module.  Is anyone else having issues with this update?

  • Like 1

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

had the same problem. now i use paypal-version 3.6.8 PayPal 3.6.8.zip

with that i can use paypal.

(delete the old version completely before upload the new one!)

 

try it - maybe it´s also your solution

Edited by LENNOXX (see edit history)

Share this post


Link to post
Share on other sites

I have already installed the old version you said but still is not working.

 

LENNOXX Thank you for your help anyway

 

If someone find a solution please help me!

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Tnanks you,!! First unistall the new version and after install de old version 3.6.8, really this problem with the new version needs update.

 

Thanks you for your solution ;)

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
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.

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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

I had the same issue. What helped me was "Use PayPal In Context Checkout" set to "NO" and now I can use cache and smard cache for JavaScript too.

  • Like 1

Share this post


Link to post
Share on other sites

I had the same issue. What helped me was "Use PayPal In Context Checkout" set to "NO" and now I can use cache and smard cache for JavaScript too.

This solution wokrs for me...

Share this post


Link to post
Share on other sites

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?

 

Share this post


Link to post
Share on other sites

had the same problem. now i use paypal-version 3.6.8 zip.gif  PayPal 3.6.8.zip   826.91KB   140 downloads


with that i can use paypal.


(delete the old version completely before upload the new one!)


 


try it - maybe it´s also your solution


 

 

OBRIGADO, RESOLVIDO

Share this post


Link to post
Share on other sites

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 ? 

Share this post


Link to post
Share on other sites

We got the point, 

 "Use PayPal In Context Checkout" set to "NO" and now cache and smard cache for JavaScript work like a charm.

 

Any solution for context checkout set to yes, and use cache and smart cache?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

It's buggy, revert to previous version, v3.10.2

Share this post


Link to post
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!!

Share this post


Link to post
Share on other sites

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. 
 
 

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 :) 

Share this post


Link to post
Share on other sites

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..

Share this post


Link to post
Share on other sites

While browsing we get error javascript:void(0). It’s actually indication that error stemming from your browser, which in turn blocks you from accessing a specific site. I have visited a lot of sites to find the solution then finally https://appuals.com/solved-javascriptvoid0/ sound good which have multiple solutions to fix it.

Share this post


Link to post
Share on other sites

 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.

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More