• Resolved nickstamat

    (@nickstamat)


    Γεια σα?.

    Πα?ρνω το ακ?λουθο PHP notice απ? το site που ?χω εγκαταστ?σει το plugin σα?:

    Notice: Undefined index: piraeusbank_gateway-card-doseis

    WordPress version: 5.4.1
    WooCommerce version: 4.0.1
    Piraeus Bank WooCommerce Payment Gateway version: 1.5.5

    Πλ?ρε? stack trace στο συνημμ?νο link απ? Sentry.

    Δεν βρ?κα κ?ποιο git repository για να ανο?ξω pull request, οπ?τε παραθ?τω το diff με τη μικρ? δι?ρθωση που προτε?νω:

    diff --git a/wooshop-piraeus.php b/wooshop-piraeus-b.php
    index f024ee5..b10376d 100644
    --- a/wooshop-piraeus.php
    +++ b/wooshop-piraeus-b.php
    @@ -521,7 +521,7 @@ function woocommerce_piraeusbank_init() {
                  */
    
                 $order = new WC_Order($order_id);
    -            $doseis = intval($_POST[esc_attr($this->id) . '-card-doseis']);
    +            $doseis = intval($_POST[esc_attr($this->id) . '-card-doseis'] ?? 0);
                 if ($doseis > 0) {
                     $this->generic_add_meta($order_id, '_doseis', $doseis);
                 }

    Ευχαριστ?! ??

    • This topic was modified 4 years, 10 months ago by nickstamat.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support gibeladakis

    (@gibeladakis)

    Καλ? σα? μερα,

    και σα? ευχαριστο?με για το μ?νημα σα?.

    Σχετικ? με το α?τημα σα?, να σα? ενημερ?σουμε πω? το ?χουμε λ?βει υπ?ψη και θα συμπεριληφθε? σε επ?μενη αναβ?θμιση του plugin μα?.

    Με εκτ?μηση,
    Μπελαδ?κη? Γι?ργο?

Viewing 1 replies (of 1 total)
  • The topic ‘Undefined index: piraeusbank_gateway-card-doseis’ is closed to new replies.