Opened 9 years ago

Closed 9 years ago

Last modified 7 years ago

#1167 closed Frage (wontfix)

Frage zu PayPal Ratenkauf (paypalinstallment) — at Version 2

Reported by: Torsten Riemer Owned by: Gerhard Waldemair
Priority: normal Milestone: modified-shop-2.0.2.2
Component: Module Version: 2.0.2.1
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by Torsten Riemer)

Welchen Grund hat es denn, dass in der "/includes/external/paypal/classes/PayPalPaymentBase.php" in der funtion install() für "paypalinstallment" weder "Erlaubte Zonen" noch "Zahlungszone" angelegt wird?

    if ($this->code != 'paypalinstallment') {
      xtc_db_query("INSERT INTO ".TABLE_CONFIGURATION." (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MODULE_PAYMENT_".strtoupper($this->code)."_ALLOWED', '', '6', '3', NULL, now(), '', '')");
      xtc_db_query("INSERT INTO ".TABLE_CONFIGURATION." (configuration_key, configuration_value, configuration_group_id, sort_order, last_modified, date_added, use_function, set_function) VALUES ('MODULE_PAYMENT_".strtoupper($this->code)."_ZONE', '0', '6', '4', NULL, now(), 'xtc_get_zone_class_title', 'xtc_cfg_pull_down_zone_classes(')");
    }

Die Sprachdateien von "paypalinstallment" sind dafür bereits erweitert:

  [...]
  'MODULE_PAYMENT_PAYPALINSTALLMENT_ALLOWED_TITLE' => 'Erlaubte Zonen',
  'MODULE_PAYMENT_PAYPALINSTALLMENT_ALLOWED_DESC' => 'Geben Sie <b>einzeln</b> die Zonen an, welche f&uuml;r dieses Modul erlaubt sein sollen. (z.B. AT,DE (wenn leer, werden alle Zonen erlaubt))',
  [...]
  'MODULE_PAYMENT_PAYPALINSTALLMENT_ZONE_TITLE' => 'Zahlungszone',
  'MODULE_PAYMENT_PAYPALINSTALLMENT_ZONE_DESC' => 'Wenn eine Zone ausgew&auml;hlt ist, gilt die Zahlungsmethode nur f&uuml;r diese Zone.',
  [...]

Das führt auch zu einer Warnung:

[08-04-2017 12:43:26] E_WARNING	: LoggingManager: constant(): Couldn't find constant MODULE_PAYMENT_PAYPALINSTALLMENT_ALLOWED in File: /var/www/clients/client1/web78/web/includes/classes/payment.php on Line: 131
[08-04-2017 12:43:26] E_WARNING	: LoggingManager: Backtrace #0 - /var/www/clients/client1/web78/web/checkout_payment.php called at Line 118
[08-04-2017 12:43:30] E_WARNING	: LoggingManager: constant(): Couldn't find constant MODULE_PAYMENT_PAYPALINSTALLMENT_ALLOWED in File: /var/www/clients/client1/web78/web/includes/classes/payment.php on Line: 131
[08-04-2017 12:43:30] E_WARNING	: LoggingManager: Backtrace #0 - /var/www/clients/client1/web78/web/includes/external/paypal/functions/PayPalFunctions.php called at Line 24
[08-04-2017 12:43:30] E_WARNING	: LoggingManager: Backtrace #1 - /var/www/clients/client1/web78/web/callback/paypal/paypalplus.php called at Line 26

Change History (2)

comment:1 by Torsten Riemer, 9 years ago

Resolution: wontfix
Status: newclosed

PayPal Ratenkauf ist derzeit eh nur für Deutschland zugelassen und wird bei anderen Ländern eh nicht angezeigt, daher werden die Datenbank-Einträge "MODULE_PAYMENT_PAYPALINSTALLMENT_ALLOWED" & "MODULE_PAYMENT_PAYPALINSTALLMENT_ZONE" nicht angelegt.

Last edited 7 years ago by Torsten Riemer (previous) (diff)

comment:2 by Torsten Riemer, 7 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.