Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/pt 5283 add logo in the payment option #39

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](http://semver.org).

## [Unreleased]

### [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)

## Added
Expand Down
1 change: 1 addition & 0 deletions src/Models/PlacetoPayPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ public function hookPaymentOptions($params)
$newOption = new PaymentOption();

$newOption->setCallToActionText($this->lll('Pay by %s'))
->setLogo($this->getImage())
->setAdditionalInformation('')
->setForm($form);

Expand Down
1 change: 0 additions & 1 deletion views/templates/hook/brand_payment.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<div>
<div class="alert">
<img style="width: 170px;" src="{$url}" alt="{l s='Pay with Placetopay' mod='placetopaypayment'}"/>
<b>{$client_message}</b>
<br/>
{$secure_message}
Expand Down