-
BC-Break: Introduced
array $options
parameter intoCoreShop\Component\Index\Listing\ListingInterface
to allow certain variations for loading data -
Introduced WholesalePrice Calculators, this deprecates the "wholesalePrice" property in the Product Class and adds the "wholesaleBuyingPrice" Property with a currency attached. We've added a migration for that, but since we need a currency now, we just assume the buying currency as the defaults store currency. If you have a different one, create a custom migration that changes it.
-
CoreShop\Component\StorageList\StorageListModifierInterface
got completely refactored and works a bit different now. Since deciding what StorageListItem belongs to what product, can be a bit more complicated, we decided to introduce a BC break.CoreShop\Component\StorageList\StorageListModifierInterface
addedaddToList
functionCoreShop\Component\StorageList\StorageListModifierInterface
removedremove
toremoveFromList
CoreShop\Component\StorageList\Model\StorageListItemInterface
addedequals
functionCoreShop\Component\StorageList\Model\StorageListInterface
removedgetItemForProduct
functionCoreShop\Component\StorageList\Model\StorageListProductInterface
got deprecated, since not it's not needed anymore
-
CoreShop\Component\Order\Factory\CartItemFactoryInterface
introduced a new functionpublic function createWithPurchasable(PurchasableInterface $purchasable, $quantity = 1);
-
Introduced Theme-Bundle to handle Themes
- deprecated CoreShop\Bundle\StoreBundle\Theme\ThemeHelper in favor of CoreShop\Bundle\ThemeBundle\Service\ThemeHelper
- deprecated CoreShop\Bundle\StoreBundle\Theme\ThemeHelperInterface in favor of CoreShop\Bundle\ThemeBundle\Service\ThemeHelperInterface
- deprecated CoreShop\Bundle\StoreBundle\Theme\ThemeResolver in favor of CoreShop\Bundle\ThemeBundle\Service\ThemeResolver
- deprecated CoreShop\Bundle\StoreBundle\Theme\ThemeResolverInterface in favor of CoreShop\Bundle\ThemeBundle\Service\ThemeResolverInterface
-
Introduce AddToCartFormType and QuantityType. This allows to use validators to check if its allowed to add a product to the cart. If you update from CoreShop 2.0.* change the add-to-cart form in your templates to the following: (https://github.com/coreshop/CoreShop/pull/812/files#diff-3e06a5f0e813be230a0cd232e916738eL29)
{{ render(url('coreshop_cart_add', {'product': product.id})) }}
- Be sure you have adopted the new form template in
views/Product/_addToCart.html.twig
-
Introduced Store Unit:
- Please add
product_unit
to permission table. - Remove
storePrice
field from all product classes - If you don't use the
Store Price
element in your classes besides thestorePrice
field, you should delete thecoreshop_product_store_price
table after migration. - We introduced a new jquery plugin
$.coreshopQuantitySelector()
which allows you to add more numeric control to your quantity field, checkout our demo example.
- Please add