From 798abcc0f25c47eaac4a5aff370965d2fc1ce3b0 Mon Sep 17 00:00:00 2001 From: Git Manager GUI Date: Wed, 29 Apr 2026 19:15:39 +0200 Subject: [PATCH] Upload via Git Manager GUI --- wp-ingame-shop/wp-ingame-shop-pro.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-ingame-shop/wp-ingame-shop-pro.php b/wp-ingame-shop/wp-ingame-shop-pro.php index d0a94ce..bd3578a 100644 --- a/wp-ingame-shop/wp-ingame-shop-pro.php +++ b/wp-ingame-shop/wp-ingame-shop-pro.php @@ -495,8 +495,8 @@ class WIS_Activator { 'response' => json_encode([ 'commands' => [[ 'type' => 'fly_abo', - 'days' => 30, 'label' => $sub->label, + 'price' => $sub->price, ]], ]), ]); @@ -3686,9 +3686,9 @@ class WIS_API { $abo_days = intval($cmd['days'] ?? 30); $abo_label = sanitize_text_field($cmd['label'] ?? 'Fly-Abo'); $abo_price = 0; - // Preis aus dem Warenkorb ermitteln (erstes passendes fly_abo Item) + // Preis aus dem Warenkorb ermitteln (fly_abo mit oder ohne Zahl-Suffix) foreach ($valid_cart as $ci) { - if (preg_match('/^fly_abo_\d+$/', $ci['id'])) { + if ($ci['id'] === 'fly_abo' || preg_match('/^fly_abo/', $ci['id'])) { $abo_price = intval($ci['price'] ?? 0); break; }