What's New
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
Hi!
I see at your compatibility page for the Easycheckout module that we have to edit a file if we are using PayPal AW by AlabazWeb Pro.
I have tested the module and seems to be working fine without editing the file.
Also, I don’t have the code as you say in the description.
You say:
Edit the /modules/paypal/paypal.php file, replace this code.
if($this->context->controller->php_self == 'order')
By this one
$page = Context::getContext()->smarty->getTemplateVars('page');
if($this->context->controller->php_self == 'order' || $page['page_name']=='module-steasycheckout-default')
My code is like this:
if($this->context->controller->php_self == 'order' || $this->context->controller->php_self == 'checkout'){ //checkout en 1.7.2.4
//compatibilidad 1.7
$this->context->controller->registerJavascript($this->name.'-paypal_js', $this->_path.'/views/js/paypal.js');
//error en 1.7.2.4 ????
$this->context->controller->addJS($this->_path.'/views/js/paypal.js', 'all');
How should be the modification? I tested this one and seems to be working fine too:
if($this->context->controller->php_self == 'order' || $page['page_name']=='module-steasycheckout-default'){ //checkout en 1.7.2.4
In any case, why is the modification for if the module is working ok without it? I’m using a non updated version of that module v.17.0.1.1
Thank you for your help as ever.
Then replace this code
if($this->context->controller->php_self == 'order' || $this->context->controller->php_self == 'checkout'){ //checkout en 1.7.2.4
With
$page = Context::getContext()->smarty->getTemplateVars('page');
if($this->context->controller->php_self == 'order' || $page['page_name']=='module-steasycheckout-default' || $this->context->controller->php_self == 'checkout'){ //checkout en 1.7.2.4
You must be logged in to reply to this topic.