fix(checkout): don't skip the edit page of a one-plan product in the cart

This commit is contained in:
dualfroz committed 2026-10-03 16:14:23 +02:00
1 parent 963b96fed9
commit 40c8d613ba
2 files changed
+23 -1

No files matched your search

+1 -1
View File
@@ -92,7 +92,7 @@ class Checkout extends Component
// As there is only one plan, config options and checkout config, we can directly call the checkout method to avoid confusion
// This is only done when the user is not editing the cart item
if ($this->product->plans->count() === 1 && empty($this->configOptions) && empty($this->checkoutConfig)) {
if ($this->product->plans->count() === 1 && empty($this->configOptions) && empty($this->checkoutConfig) && !$this->cartProductKey) {
$this->checkout();
}
}