Install
Works with Drupal: ^8.8 || ^9Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This release drops support for Drupal 8.7. It is compatible on Drupal 9, contributed projects in the Commerce ecosystem also need to provide Drupal 9 ready releases.
Contributors (49)
TwiiK, mglaman, davenelson, bojanz, lisastreeter, agoradesign, heddn, jsacksick, olafkarsten, rszrama, rinasek, eiriksm, Morbus Iff, khiminrm, alex.stanciu, Niklan, Martijn de Wit, majmunbog, zaporylie, tbradbury, nmeegama, pcambra, Siegrist, alexpott, kkumaren, joshmiller, vasike, flocondetoile, a.dmitriiev, davps, NicolasGraph, istavros, ben.hamelin, czigor, PieterDC, lukasss, dragonwize, sorabh.v6, Dom., gmem, trebormc, jeroendegloire, MDJ Webdiensten, drugan, p4trizio, introfini, puogintas, joekers, FiNeX
Change records
- The AvailabilityManager API has moved to the Order module
- Off-site payment gateways may now support stored payment methods
Changelog
Issues: 38 issues resolved.
Changes since 8.x-2.18:
Bug
- #3047357 by TwiiK, mglaman, davenelson, bojanz: Locked orders should not automatically be refreshed on load
- #3143260 by eiriksm: Typo in code comment for PriceCalculatorTest
- #3133816 by Morbus Iff: Shipped YAML config is slightly out of date (8.8.x)
- #3139833 by mglaman: Using assertNotContains() and assertContains() with string haystacks is deprecated
- #3096966 by tbradbury, mglaman, nmeegama, pcambra, Siegrist: Ajax may leave checkout panes with an out-of-date order
- #3065951 by alexpott, mglaman, kkumaren, joshmiller: Using \Drupal\commerce_cart\CartManager::emptyCart() vs \Drupal\commerce_cart\CartManager::removeOrderItem
- #3135949 by mglaman: Inline Entity Form rc4+ causing test regressions
- #3125060 follow-up: Fix the currency code condition in OrderItemFixedAmountOff.
- #3120774 by davps: Fix incorrect behavior when changing the offer type selection on the add promotion page.
- #3005935 by istavros, jsacksick, a.dmitriiev: Skip invoking order processors when the order has no items.
- #3126828 by ben.hamelin, jsacksick: Add Views reverse relationships to Commerce base fields only.
- #3119345 by czigor, PieterDC: Profile fields not updated when toggling between "incomplete" existing profiles.
- #3126832 by dragonwize: Fix incorrect indent in commerce_cart.services.yml.
- #3117937 by jsacksick: Promotion::postSave() should call the getter for getting coupons.
- #3117180 by jsacksick: Fix the past credit card expiration dates in PaymentCheckoutTest.
Feature
- #3145060 by mglaman: Price fields should be able to generate sample values
- #2902495 by lisastreeter, agoradesign, mglaman, heddn, bojanz: Allow promotion usage to be limited per-customer
- #3137253 by mglaman: Allow payment gateways to explicitly support payment method creation outside of a payment transaction
- #3136999 by jsacksick, mglaman, rszrama, rinasek: Log a message to the order activity when the order receipt is sent
- #3143382 by mglaman, jsacksick: AddToCartForm should reference the destination cart when building the order item
- #3009602 by khiminrm, alex.stanciu, Niklan, Martijn de Wit, bojanz, majmunbog: Order item theme suggestions
- #3137107 by mglaman: Provide a storage method to initialize a new payment method for a customer
- #2835629 by vasike, mglaman, flocondetoile, a.dmitriiev: Allow altering the default variation
- #3135918 by mglaman: Use a static cache in getDefaultVariation for performance
- #3073942 follow-up by jsacksick: Update the base field definition for the owner fields.
- #3048791 by jsacksick, zaporylie, eiriksm: Add helper methods for checking whether the payment can be captured, voided or refunded.
- #3060519 by lukasss, jsacksick: Allow passing options to the price Twig filter.
- #2872455 by mglaman, sorabh.v6, Dom., czigor, gmem, trebormc, lisastreeter, jeroendegloire, MDJ Webdiensten, drugan, p4trizio, introfini, puogintas, bojanz, joekers, FiNeX: Allow coupons to be redeemed on the cart page
Task
- #3145073 by mglaman: Utilize createWithSampleValues in product context service
- #3138952 by jsacksick, mglaman, olafkarsten: Make the AvailabilityManager order aware
- #3142252 by mglaman: assertInternalType() is deprecated and will be removed in PHPUnit 9
- #3142248 by mglaman: Fix usages of deprecated PHPUnit exception annotations
- #3141563 by mglaman: Silence the inline_entity_form theme function deprecation
- #3139847 by mglaman, bojanz, jsacksick: Drop Drupal 8.7 support, minimum of 8.8.x
- #3137116 by mglaman, zaporylie: Move createPayment to SupportsStoredPaymentMethodsInterface
- #3130011 follow-up: Uncomment the fix.
- #3127569 by jsacksick: Performance improvements to AvailabilityOrderProcessor.
- #3126234 by NicolasGraph: Remove unused variable in ListPriceWidget.