From 33ac42552e79ebde68f994b3450fdda4a4912aa6 Mon Sep 17 00:00:00 2001 From: Alejandro Castrillon Ciro Date: Wed, 25 Sep 2024 16:15:21 -0500 Subject: [PATCH 1/4] feat: add brand image in checkout process --- src/Models/PlacetoPayPayment.php | 1 + views/templates/hook/brand_payment.tpl | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/PlacetoPayPayment.php b/src/Models/PlacetoPayPayment.php index c26fcb5..1111816 100644 --- a/src/Models/PlacetoPayPayment.php +++ b/src/Models/PlacetoPayPayment.php @@ -480,6 +480,7 @@ public function hookPaymentOptions($params) $newOption = new PaymentOption(); $newOption->setCallToActionText($this->lll('Pay by %s')) + ->setLogo($this->getImage()) ->setAdditionalInformation('') ->setForm($form); diff --git a/views/templates/hook/brand_payment.tpl b/views/templates/hook/brand_payment.tpl index 0d191ce..0b60d3a 100644 --- a/views/templates/hook/brand_payment.tpl +++ b/views/templates/hook/brand_payment.tpl @@ -1,6 +1,5 @@
- {l s='Pay with Placetopay' mod='placetopaypayment'} {$client_message}
{$secure_message} From 5d15c014927d62b5762ebff8ce08b08683f4abdf Mon Sep 17 00:00:00 2001 From: Alejandro Castrillon Ciro Date: Wed, 25 Sep 2024 16:15:28 -0500 Subject: [PATCH 2/4] Updated CHANGELOG --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7d3465..b44c937 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org). ## [Unreleased] +### [2.24.4] - 2024-09-26 + +### Added +- Add brand image in payment option + ## [4.0.4 (2024-06-20)](https://github.com/placetopay/prestashop-placetopay/compare/4.0.3...4.0.4) ## Added From 645c832927e3ca003cc5f22cad0919325dbf8137 Mon Sep 17 00:00:00 2001 From: Alejandro Castrillon Ciro Date: Wed, 25 Sep 2024 16:42:01 -0500 Subject: [PATCH 3/4] Updated CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b44c937..deec095 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org). ## [Unreleased] -### [2.24.4] - 2024-09-26 +### [4.0.5 (2024-09-26)](https://github.com/placetopay/prestashop-placetopay/compare/4.0.4...4.0.5) ### Added - Add brand image in payment option From a196d70f6d6307450851cb33ee4a11c32fef403c Mon Sep 17 00:00:00 2001 From: Alejandro Castrillon Ciro Date: Wed, 25 Sep 2024 16:57:24 -0500 Subject: [PATCH 4/4] refactor: change style --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index deec095..7e18aff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org). ### [4.0.5 (2024-09-26)](https://github.com/placetopay/prestashop-placetopay/compare/4.0.4...4.0.5) ### Added + - Add brand image in payment option ## [4.0.4 (2024-06-20)](https://github.com/placetopay/prestashop-placetopay/compare/4.0.3...4.0.4)