Skip to content

Commit

Permalink
Merge pull request #10 from pagantis/hotfix
Browse files Browse the repository at this point in the history
fix the checkout front-end view
  • Loading branch information
rmarinleal authored Jun 9, 2021
2 parents 4078a2c + 35e2ed2 commit 6cc70a3
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion afterpayofficial.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public function __construct()
{
$this->name = 'afterpayofficial';
$this->tab = 'payments_gateways';
$this->version = '1.1.2';
$this->version = '1.1.2.1';
$this->author = $this->l('Afterpay');
$this->currencies = true;
$this->currencies_mode = 'checkbox';
Expand Down Expand Up @@ -366,6 +366,17 @@ public function hookHeader()
// Continue
}
}
if (Context::getContext()->controller->php_self === 'order') {
if (_PS_VERSION_ >= "1.7") {
$this->context->controller->registerJavascript(
sha1(mt_rand(1, 90000)),
self::AFTERPAY_JS_CDN_URL,
array('server' => 'remote')
);
} else {
$this->context->controller->addJS(self::AFTERPAY_JS_CDN_URL);
}
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<module>
<name>afterpayofficial</name>
<displayName><![CDATA[Afterpay Payment Gateway]]></displayName>
<version><![CDATA[1.1.2]]></version>
<version><![CDATA[1.1.2.1]]></version>
<description><![CDATA[Buy now, pay later. Always interest-free. Reach new customers, increase your conversion rate, recurrency and average order value ofering interest-free installments in your eCommerce.]]></description>
<author><![CDATA[Afterpay]]></author>
<tab><![CDATA[payments_gateways]]></tab>
Expand Down

0 comments on commit 6cc70a3

Please sign in to comment.