Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.12.1
-
Component/s: None
-
Labels:None
Description
To reproduce:
- Create a config option that is not addable by clients
- Assign it to a package
- Assign the package to an order form
- Attempt to checkout
- Get redirected back to configuration
To resolve, in plugins/order/controllers/config.php around line 280 change
$package_options = $this->PackageOptions->getAllByPackageId( $package->id, $pricing->term, $pricing->period, $pricing->currency );
To
$package_options = $this->PackageOptions->getAllByPackageId( $package->id, $pricing->term, $pricing->period, $pricing->currency, null, ['addable' => 1] );