Jump to content
mma87

issue with multilingual website

Recommended Posts

Hello,

I'm using prestashop 1.7.3.3 and PayPal v4.4.1 

I have a multilingual website and I found a bug (I think) in the cart using the paypal module.

in the browser console there is an error 404, missing file, mydomain/en/modules/paypal/views/js/ec_in_context.js

because the file is in mydomain/modules/paypal/views/js/ec_in_context.js (without the language iso)

 

so I made a quick fix in modules/paypal/paypal.php

around row 745 I changed 

$this->context->controller->registerJavascript($this->name . '-paypal-checkout-in-context', 'modules/' . $this->name . '/views/js/ec_in_context.js', array('server' => 'remote'));

 

to

$this->context->controller->registerJavascript($this->name . '-paypal-checkout-in-context', 'https://www.kuboweb.it/modules/' . $this->name . '/views/js/ec_in_context.js', array('server' => 'remote'));

(I added the domain address)

 

Best Regards,

Matteo

Share this post


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

Important Information

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