Skip to content

Commit

Permalink
Fix admin notification
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Sep 12, 2024
1 parent 05fd531 commit 1d86e9d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/admin/TpayConfigurationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public function validatePostProcess(): bool
{
$res = true;

if (Tools::getValue('TPAY_CARD_ACTIVE')) {
if (Tools::getValue('TPAY_CARD_ACTIVE') && Tools::getValue('TPAY_CARD_WIDGET')) {
if (empty(Tools::getValue('TPAY_CARD_RSA'))) {
$this->errors['rsa'] = $this->module->l('Invalid RSA key');
$res = false;
Expand Down
2 changes: 1 addition & 1 deletion views/templates/hook/product_installment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
installmentsButton.appendChild(text);
installmentsButton.addEventListener('click', function () {
let currentAmount = $('#quantity_wanted').val() * $('.current-price-value').attr('content');
let currentAmount = $('#quantity_wanted').val() * $('.current-price span').attr('content');
let url = 'https://secure.tpay.com/Installment/Pekao/page?merchantId=__merchantId__&amount=__amount__';
url = url.replace('__merchantId__', {$merchantId}).replace('__amount__', currentAmount);
Expand Down

0 comments on commit 1d86e9d

Please sign in to comment.