From 30a8733e906982fcd948cebe08e6475fc607e1ba Mon Sep 17 00:00:00 2001 From: MarijusCoding Date: Wed, 20 Nov 2024 20:48:24 +0200 Subject: [PATCH] Revert "[PIPRES-468] delete comments" This reverts commit 978195c091ff6d2c99ade2a5746fe5d091d987ad. --- src/Service/PaymentMethodService.php | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/src/Service/PaymentMethodService.php b/src/Service/PaymentMethodService.php index 28d8a5e12..2cfd03964 100644 --- a/src/Service/PaymentMethodService.php +++ b/src/Service/PaymentMethodService.php @@ -171,6 +171,38 @@ public function savePaymentMethod($method) $paymentMethod->id_method = $method['id']; $paymentMethod->method_name = $method['name']; $paymentMethod->enabled = Tools::getValue(Mollie\Config\Config::MOLLIE_METHOD_ENABLED . $method['id']); + //todo logic to save title + // data comes likes this {lang_id: title} + //result = {string[12]} ["a", "b", "c", "d", "", +7 more] + // 1 = "a" + // 2 = "b" + // 3 = "c" + // 4 = "d" + // 5 = "" + // 6 = "" + // 7 = "" + // 8 = "" + // 9 = "" + // 10 = "" + // 11 = "" + // 12 = "" + + // todo check is it complient with multishop as we might need to save shop id as well + // todo make get logic to show correct titles. + // todo prestashop has multilang maybe we can connect this functionality with it + // todo update method and install method + // todo add logic to show correct title in payment step + + // todo check is it relevant + // todo add logic to show correct title in order confirmation email + // todo add logic to show correct title in order invoice + // todo add logic to show correct title in order pdf + // todo add logic to show correct title in order admin order list + // todo add logic to show correct title in order admin order details + // todo add logic to show correct title in order admin order invoice + // todo add logic to show correct title in order admin order pdf + // todo add logic to show correct title in order admin order history + // todo add logic to show correct title in order admin order confirmation email $paymentMethod->title = $method['name']; $paymentMethod->method = Tools::getValue(Mollie\Config\Config::MOLLIE_METHOD_API . $method['id']); $paymentMethod->description = Tools::getValue(Mollie\Config\Config::MOLLIE_METHOD_DESCRIPTION . $method['id']);