PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.7.1
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.7.1
1.7.1 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 All 51 releases
← All changes | app/Http/Routes/WebRoutes.php +5 -0 1.7.0 → 1.7.1 View file →
@@ -369,8 +369,13 @@
369 369 }
370 370
371 371 $cart = CartResource::generateCartForInstantCheckout($variationId, $quantity);
372 372
373 + // A WP_Error is truthy, so without this it reached the renderer as a cart.
374 + if (is_wp_error($cart)) {
375 + return false;
376 + }
377 +
373 378 if ($cart) {
374 379 $modalCheckoutRenderer = new ModalCheckoutRenderer($cart);
375 380 ob_start();
376 381 $modalCheckoutRenderer->renderForm();