Jump to content

Why does paypal module add the .js inlined and can I remove it


hubbobubbo

Recommended Posts

When the paypal module is enabled it hooks into the header but it inlines the whole paypal.js code which looks quite bad and also excludes the file from the CCC.

 

I have the whole:

$(document).ready( function() {


$('#payment_paypal_express_checkout').click(function() {
$('#paypal_payment_form').submit();
return false;
});

etc code on every single page.

 

The thing is I am not even using Express Checkout or any special features. We just redirect to Paypal on the payment page and that's it.

 

I have tried updating the module to the latest version but it behaves the same. 

 

So, can someone explain why it is necessary to have this js code inlined all over the site? 

 

I have unhooked the Paypal module from the header in the Positions menu and it seems to solve the problem. Any known drawbacks to doing this (as long as Express Checkout is not used)?

 

All feedback appreciated

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