Can't add more than one item to cart when using comma list and reset cart

Created on 28 March 2024, 9 months ago
Updated 4 April 2024, 9 months ago

Problem/Motivation

When trying to use a link like: /direct-checkout-by-url?products=1234,5678 only the last item in the list is added to the cart.

In this case only 5678 is added to the cart.

Proposed resolution

Only reset the cart of the first product in the handleProductsAsArray loop

🐛 Bug report
Status

Needs review

Version

1.3

Component

Code

Created by

🇬🇧United Kingdom chrisscrumping

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024