PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.7.0
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.7.0
1.7.0 1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 All 50 releases
← All changes | app/Http/Controllers/FrontendControllers/CustomerOrderController.php +2 -1 1.6.6 → 1.7.0 View file →
@@ -238,8 +238,9 @@
238 238 $variationIds[] = $item->object_id;
239 239 $productIds[] = $item->post_id;
240 240 }
241 241
242 +
242 243 $upgradableVariationIds = [];
243 244 $isUpgradeEligibleOrder = in_array($order->payment_status, [
244 245 Status::PAYMENT_PAID,
245 246 Status::PAYMENT_PARTIALLY_PAID,
@@ -301,9 +302,9 @@
301 302 ];
302 303
303 304 $formattedOrderData['subscriptions'] = $order->subscriptions
304 305 ->filter(function ($subscription) {
305 - return !in_array($subscription->status, [Status::SUBSCRIPTION_PENDING, Status::SUBSCRIPTION_INTENDED]);
306 + return $subscription->isVisibleToCustomer();
306 307 })
307 308 ->map(function ($subscription) {
308 309 return OrderService::transformSubscription($subscription);
309 310 });