shortCodeAttributes ?? []; $product = null; $isDefault = Helper::toBool(Arr::get($data, 'is_default', false)); if ($isDefault) { $product = fluent_cart_get_current_product(); } else { $productId = Arr::get($data, 'product_id', false); if ($productId) { $product = Product::query()->find($productId); } } if (!$product) { return; } (new ProductCardRender($product))->renderProductImage(); } }