Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-5506

Order: Unable to checkout with non-addable config options

    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]
                  );
      

        Activity

        jonathan Jonathan Reissmueller created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Sprint 5.13.0 Sprint 5 [ 220 ]
        jonathan Jonathan Reissmueller made changes -
        Sprint 5.13.0 Sprint 5 [ 220 ] 5.13.0 Sprint 3 [ 218 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        jonathan Jonathan Reissmueller made changes -
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            jonathan Jonathan Reissmueller
            Reporter:
            jonathan Jonathan Reissmueller
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Sep/25

              Agile