Skip to content

Commit

Permalink
Merge pull request #31 from paynl/feature/PLUG-3145
Browse files Browse the repository at this point in the history
PLUG-3145 - Advanced Settings
  • Loading branch information
woutse authored Feb 19, 2024
2 parents 69c3394 + b989761 commit d2a94c4
Show file tree
Hide file tree
Showing 7 changed files with 150 additions and 102 deletions.
12 changes: 9 additions & 3 deletions upload/admin/language/de-de/extension/payment/paynl3.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$_['text_apitoken'] = 'API token';
$_['text_serviceid'] = 'SL-code';
$_['text_serviceid'] = 'Sales location';

// Text
$_['text_payment'] = 'Zahlung';
Expand Down Expand Up @@ -43,6 +43,7 @@

$_['text_follow_payment_method'] = 'Follow payment method';
$_['text_follow_payment_method_tooltip'] = 'Dadurch wird sichergestellt, dass die Bestellung mit der tatsächlichen Zahlungsmethode aktualisiert wird, die zum Abschluss der Bestellung verwendet wurde. Diese kann von der ursprünglich gewählten Zahlungsart abweichen'; // phpcs:ignore
$_['text_advanced_settings'] = 'Erweiterte Einstellungen';

$_['text_coc'] = 'Feld mit der Nummer der Handelskammer anzeigen';
$_['text_coc_tooltip'] = 'Wenn diese Option aktiviert ist, hat der Kunde die Möglichkeit, seine Handelskammernummer einzugeben im Checkout';
Expand All @@ -65,8 +66,13 @@
$_['text_display_icon'] = 'Symbol anzeigen';
$_['text_display_icon_tooltip'] = 'Wählen Sie hier aus, ob und in welcher Größe ein Symbol angezeigt werden soll.';

$_['text_testmode'] = 'Testmodus';
$_['text_testmode_tooltip'] = 'Schalten Sie den Testmodus ein oder aus, um den Austausch zwischen Pay. und Ihrem Webshop zu testen';
$_['text_icon_style'] = 'Symbolstil';
$_['text_icon_style_tooltip'] = 'Wählen Sie hier aus, ob Sie die klassischen oder die neuesten Bilder verwenden möchten.';
$_['text_classic'] = 'Klassisch';
$_['text_newest'] = 'Neueste';

$_['text_testmode'] = 'Test modus';
$_['text_testmode_tooltip'] = 'Schalten Sie den Test modus ein oder aus, um den Austausch zwischen Pay. und Ihrem Webshop zu testen';

$_['text_status_pending'] = 'Bestellstatus wartet auf Zahlung';
$_['text_status_pending_tooltip'] = 'Der Status der Bestellung, wenn die Zahlung begonnen, aber noch nicht abgeschlossen ist';
Expand Down
8 changes: 5 additions & 3 deletions upload/admin/language/en-gb/extension/payment/paynl3.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$_['text_apitoken'] = 'API token';
$_['text_serviceid'] = 'SL-code';
$_['text_serviceid'] = 'Sales location';

// Text
$_['text_payment'] = 'Payment';
Expand Down Expand Up @@ -41,6 +41,8 @@
$_['text_prefix'] = 'Order description prefix';
$_['text_prefix_tooltip'] = 'Change the order description prefix here. If left empty the order description will just be the order number.';

$_['text_advanced_settings'] = 'Advanced settings';

$_['text_refund_processing'] = 'Refund processing';
$_['text_refund_processing_tooltip'] = 'Process refunds that are initiated in My.pay';

Expand Down Expand Up @@ -74,12 +76,12 @@

$_['text_current_ip'] = 'Current user IP address: ';
$_['text_test_ip'] = 'Test IP Address';
$_['text_test_ip_tooltip'] = 'Forces testmode on these IP addresses, separate IPs by commas for multiple IPs';
$_['text_test_ip_tooltip'] = 'Forces test mode on these IP addresses, separate IPs by commas for multiple IPs';

$_['text_logging'] = 'Logging';
$_['text_logging_tooltip'] = "Enable logging";

$_['text_testmode'] = 'Testmode';
$_['text_testmode'] = 'Test mode';
$_['text_testmode_tooltip'] = 'Enable or disable test mode to test the exchanges between Pay. and your webshop';

$_['text_status_pending'] = 'Order status pending payment';
Expand Down
3 changes: 2 additions & 1 deletion upload/admin/language/fr-fr/extension/payment/paynl3.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$_['text_apitoken'] = 'jeton API';
$_['text_serviceid'] = 'SL-code';
$_['text_serviceid'] = 'Service';

// Text
$_['text_payment'] = 'Paiement';
Expand Down Expand Up @@ -43,6 +43,7 @@

$_['text_follow_payment_method'] = 'Follow payment method';
$_['text_follow_payment_method_tooltip'] = 'Cela garantira que la commande est mise à jour avec le mode de paiement réel utilisé pour finaliser la commande. Celui-ci peut différer du mode de paiement initialement sélectionné'; // phpcs:ignore
$_['text_advanced_settings'] = 'Réglages avancés';

$_['text_coc'] = 'Afficher le champ du numéro de la Chambre de Commerce';
$_['text_coc_tooltip'] = 'Lorsqu\'il est activé, le client aura la possibilité de saisir son numéro de chambre de commerce avant de terminer la transaction.';
Expand Down
10 changes: 6 additions & 4 deletions upload/admin/language/nl-nl/extension/payment/paynl3.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$_['text_apitoken'] = 'API token';
$_['text_serviceid'] = 'SL-code';
$_['text_serviceid'] = 'Verkooplocatie';

// Text
$_['text_payment'] = 'Betaling';
Expand Down Expand Up @@ -41,6 +41,8 @@
$_['text_prefix'] = 'Order omschrijving prefix';
$_['text_prefix_tooltip'] = 'Verander de order omschrijving prefix hier. Als dit leeg is, zal de omschrijving het ordernummer zijn.';

$_['text_advanced_settings'] = 'Geavanceerde instellingen';

$_['text_refund_processing'] = 'Verwerking terugbetaling';
$_['text_refund_processing_tooltip'] = 'Verwerk terugbetalingen die gestart zijn vanuit Pay.';

Expand Down Expand Up @@ -74,13 +76,13 @@

$_['text_current_ip'] = 'IP-adres van huidige gebruiker: ';
$_['text_test_ip'] = 'Test IP Adressen';
$_['text_test_ip_tooltip'] = "Forceer testmode voor de ingevulde IP adressen, scheid IP's met komma's voor meerdere IP's";
$_['text_test_ip_tooltip'] = "Forceer test mode voor de ingevulde IP adressen, scheid IP's met komma's voor meerdere IP's";

$_['text_logging'] = 'Logging';
$_['text_logging_tooltip'] = "Schakel logging in";

$_['text_testmode'] = 'Testmode';
$_['text_testmode_tooltip'] = 'Zet de testmode aan of uit om de exchanges te testen tussen Pay. en uw webshop';
$_['text_testmode'] = 'Test mode';
$_['text_testmode_tooltip'] = 'Zet de test mode aan of uit om de exchanges te testen tussen Pay. en uw webshop';

$_['text_status_pending'] = 'Order status wacht op betaling';
$_['text_status_pending_tooltip'] = 'De status van de order wanneer de betaling is gestart, maar nog niet afgerond';
Expand Down
11 changes: 11 additions & 0 deletions upload/admin/view/javascript/pay.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,15 @@ jQuery(document).ready(function () {
});
}, 750);
});

jQuery(".advanced_settings").hide();
jQuery("#show_advanced_settings").click(function () {
jQuery(".advanced_settings").toggle();

if ($(".advanced_settings").is(":visible")) {
$("#advanced_settings_icon").removeClass("fa-chevron-down").addClass("fa-chevron-up");
} else {
$("#advanced_settings_icon").removeClass("fa-chevron-up").addClass("fa-chevron-down");
}
});
});
19 changes: 19 additions & 0 deletions upload/admin/view/stylesheet/pay.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,23 @@

.payHide {
display: none;
}

#show_advanced_settings{
cursor: pointer;
}

.btn-advanced {
color: black;
background-color: #dcdcdc;
font-weight: 600;
}

.btn-advanced:hover {
color: black;
}

#advanced_settings_icon{
margin-left: 5px;
display: inline-block;
}
Loading

0 comments on commit d2a94c4

Please sign in to comment.