Add a useAddAttributeToCart
hook to facilitate requests to cartClient#addAttributeToCart
.
Add a useRemoveAttributeFromCart
hook to facilitate requests to cartClient#removeAttributeFromCart
.
The Passthrough Payment Form now uses the useAddAttributeToCart
hook to update the PAYMENTS_LIST
when a new payment is submitted or removed.
The AddAttributeRequest
contains invalidatePricing: true
, so that the cart will be repriced once the attribute has been updated.
The PAYMENTS_LIST
attribute is used by the backend to apply offers based on the type of payment. For more details visit the Cart Operation Service release notes.
Modified all usages of Customer Access Tokens to pass in limited scopes when fetching the access tokens.
A new configuration property named NEXT_PUBLIC_PAYMENT_LIMIT_CUSTOMER_TOKEN_SCOPES
was added to limit the Customer Access Tokens scopes that are used in Payment Gateways requests. See the Commerce NextJS Starter Configuration Guide for more.
Fix bug where Quote pricing was being overridden by a CSR after making changes, removing any customer-segment based offers that apply to the quote owner.
Include the X-Customer-Ref
header in any requests to modify a cart when isCsrSelf(user)
is true
.
Fixed bug where the type ahead dropdown did not open if there were product suggestions but no category suggestions.