Upgrade the ProductBundle module

Edit on GitHub

Upgrading from version 6.* to version 7.0.0

In this new version of the ProductBundle module, we have added support of decimal stock. You can find more details about the changes on the ProductBundle module release page.

This release is a part of the Decimal Stock concept migration. When you upgrade this module version, you should also update all other installed modules in your project to use the same concept as well as to avoid inconsistent behavior. For more information, see Decimal Stock Migration Concept.

Estimated migration time: 5 min

To upgrade to the new version of the module, do the following:

  1. Upgrade the ProductBundle module to the new version:
composer require spryker/product-bundle: "^7.0.0" --update-with-dependencies
  1. Update the database entity schema for each store in the system:
APPLICATION_STORE=DE console propel:schema:copy
APPLICATION_STORE=US console propel:schema:copy
...
  1. Run the database migration:
console propel:install
console transfer:generate

Upgrading from version 4.* to version 6.0.0

In order to dismantle the Horizontal Barrier and enable partial module updates on projects, a Technical Release took place. Public API of source and target major versions are equal. No migration efforts are required. Please contact us if you have any questions.

Upgrading from version 3.* to version 4.*

In version 4 we have added support for multi-currency. First, make sure that you migrated the Price module. If you extended ProductBundleCartExpander, then you have to adapt some code because we changed the way the price is selected for added bundle products, check the core changes and adapt accordingly. We have also added a new plugin to handle a cart reload event.

You will also need to add the \Spryker\Zed\ProductBundle\Communication\Plugin\Cart\CartBundleItemsPreReloadPlugin plugin to \Pyz\Zed\Cart\CartDependencyProvider::getPreReloadPlugins(). This ensures that bundle items are correctly updated when the currency is changed and cart reload is invoked.

Upgrading from version 2.* to version 3.*

In version 3, the calculator plugin has been changed together with the new calculator version.

The ProductBundlePriceAggregatorPlugin has been moved to the SalesAggregator module, so you may need to change the \Spryker\Zed\SalesAggregator\Communication\Plugin\OrderAmountAggregator\ProductBundlePriceAggregatorPluginnamespace if you still want to use it. aggregator. ProductBundlePriceCalculation does not have sales aggregator logic anymore. This class has been adapted to the new calculator concept. However, if you want to use the old one, use it from \Spryker\Zed\SalesAggregator\Business\Model\OrderAmountAggregator\ProductBundlePrices.