Skip to content

Commit

Permalink
New Color-Codes for Banner
Browse files Browse the repository at this point in the history
  • Loading branch information
mariolorenz committed Sep 22, 2023
1 parent 97ee8ec commit 61b6d26
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- [0007537](https://bugs.oxid-esales.com/view.php?id=7537): Show PayNow-Button on PP-Standard instead of Continue-Button
- [0007531](https://bugs.oxid-esales.com/view.php?id=7531): Correct Handling of Vouchers from Voucher-Series
- [0007536](https://bugs.oxid-esales.com/view.php?id=7536): PayPal Checkout - Values are stored correctly in the YAML
- [0007543](https://bugs.oxid-esales.com/view.php?id=7543): New Color-Codes for Banner: gray, monochrome, greyscale

## [2.3.1] - 2023-08-17

Expand Down
4 changes: 2 additions & 2 deletions metadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
'en' => 'Use of the online payment service from PayPal. Documentation: <a href="https://docs.oxid-esales.com/modules/paypal-checkout/en/latest/" target="_blank">PayPal Checkout</a>'
],
'thumbnail' => 'out/img/paypal.png',
'version' => '2.3.2-rc.1',
'version' => '2.3.2-rc.2',
'author' => 'OXID eSales AG',
'url' => 'https://www.oxid-esales.com',
'email' => 'info@oxid-esales.com',
Expand Down Expand Up @@ -410,7 +410,7 @@
[
'name' => 'oscPayPalBannersColorScheme',
'type' => 'select',
'constraints' => 'blue|black|white|white-no-border',
'constraints' => 'blue|black|white|gray|monochrome|grayscale',
'value' => 'blue',
'group' => null
],
Expand Down
4 changes: 3 additions & 1 deletion tests/Unit/Core/ViewConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ public function providerGetPayPalColorScheme(): array
['blue'],
['black'],
['white'],
['white-no-border'],
['gray'],
['monochrome'],
['grayscale'],
];
}
// <-- PSPAYPAL-491
Expand Down
10 changes: 6 additions & 4 deletions views/admin/de/admin_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,12 @@
'OSC_PAYPAL_BANNER_PAYMENTPAGESELECTOR' => 'CSS-Selektor der Seite "Versand & Zahlungsart" (Bestellschritt 3) hinter dem das Banner angezeigt wird.',
'HELP_OSC_PAYPAL_BANNER_PAYMENTPAGESELECTOR' => 'Standardwerte für die Themes "Flow" und "Wave": \'.checkoutSteps ~ .spacer\' bzw. \'.checkout-steps\'. Nach diesen CSS-Selektoren wird das Banner angezeigt.',
'OSC_PAYPAL_BANNER_COLORSCHEME' => 'Farbe des Ratenzahlung-Banners auswählen',
'OSC_PAYPAL_BANNER_COLORSCHEMEBLUE' => 'blau',
'OSC_PAYPAL_BANNER_COLORSCHEMEBLACK' => 'schwarz',
'OSC_PAYPAL_BANNER_COLORSCHEMEWHITE' => 'weiß',
'OSC_PAYPAL_BANNER_COLORSCHEMEWHITENOBORDER' => 'weiß, ohne Rand',
'OSC_PAYPAL_BANNER_COLORSCHEMEBLUE' => 'Blau',
'OSC_PAYPAL_BANNER_COLORSCHEMEBLACK' => 'Schwarz',
'OSC_PAYPAL_BANNER_COLORSCHEMEWHITE' => 'Weiß',
'OSC_PAYPAL_BANNER_COLORSCHEMEGRAY' => 'Grau',
'OSC_PAYPAL_BANNER_COLORSCHEMEMONOCHROME' => 'Einfarbig',
'OSC_PAYPAL_BANNER_COLORSCHEMEGRAYSCALE' => 'Graustufen',
'OSC_PAYPAL_STANDARD_CAPTURE_TIME' => 'PayPal Standard - Geldeinzug',
'OSC_PAYPAL_STANDARD_CAPTURE_TIME_LABEL' => 'Nur für PayPal Standard ist ein abweichender Geldeinzug zum Bestellzeitpunkt möglich. Alle anderen Zahlarten (inkl. PayPal Express) werden sofort eingezogen.',
'OSC_PAYPAL_STANDARD_CAPTURE_TIME_HELP' => 'Bitte beachten! Die Autorisierung einer Bestellung gilt drei Tage. Sie wird maximal bis 29 Tage nach Bestellung automatisch aufgefrischt. Anschließend ist ein Geldeinzug nicht mehr möglich.',
Expand Down
4 changes: 3 additions & 1 deletion views/admin/en/admin_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,9 @@
'OSC_PAYPAL_BANNER_COLORSCHEMEBLUE' => 'blue',
'OSC_PAYPAL_BANNER_COLORSCHEMEBLACK' => 'black',
'OSC_PAYPAL_BANNER_COLORSCHEMEWHITE' => 'white',
'OSC_PAYPAL_BANNER_COLORSCHEMEWHITENOBORDER' => 'white, no border',
'OSC_PAYPAL_BANNER_COLORSCHEMEGRAY' => 'gray',
'OSC_PAYPAL_BANNER_COLORSCHEMEMONOCHROME' => 'monochrome',
'OSC_PAYPAL_BANNER_COLORSCHEMEGRAYSCALE' => 'grayscale',
'OSC_PAYPAL_STANDARD_CAPTURE_TIME' => 'PayPal Standard - Capture money',
'OSC_PAYPAL_STANDARD_CAPTURE_TIME_LABEL' => 'A deviating collection of money at the time of the order is only possible for PayPal Standard. All other payment methods (incl. PayPal Express) will be capture immediately.',
'OSC_PAYPAL_STANDARD_CAPTURE_TIME_HELP' => 'Please note! The authorization of an order is valid for three days. It will be refreshed automatically for a maximum of 29 days after ordering. After that, it is no longer possible to capture the money.',
Expand Down
10 changes: 8 additions & 2 deletions views/admin/tpl/oscpaypalconfig.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,14 @@
<option value="white" [{if $config->getPayPalCheckoutBannerColorScheme() == 'white'}]selected[{/if}]>
[{oxmultilang ident="OSC_PAYPAL_BANNER_COLORSCHEMEWHITE"}]
</option>
<option value="white-no-border" [{if $config->getPayPalCheckoutBannerColorScheme() == 'white-no-border'}]selected[{/if}]>
[{oxmultilang ident="OSC_PAYPAL_BANNER_COLORSCHEMEWHITENOBORDER"}]
<option value="gray" [{if $config->getPayPalCheckoutBannerColorScheme() == 'gray'}]selected[{/if}]>
[{oxmultilang ident="OSC_PAYPAL_BANNER_COLORSCHEMEGRAY"}]
</option>
<option value="monochrome" [{if $config->getPayPalCheckoutBannerColorScheme() == 'monochrome'}]selected[{/if}]>
[{oxmultilang ident="OSC_PAYPAL_BANNER_COLORSCHEMEMONOCHROME"}]
</option>
<option value="grayscale" [{if $config->getPayPalCheckoutBannerColorScheme() == 'grayscale'}]selected[{/if}]>
[{oxmultilang ident="OSC_PAYPAL_BANNER_COLORSCHEMEGRAYSCALE"}]
</option>
</select>
</div>
Expand Down

0 comments on commit 61b6d26

Please sign in to comment.