Hi All, In the cart page by default we have to click on "edit" to make any changes to item options. However for quantity we can just click on + to make the change. Trying to make the itemoptions editable on cart as well (We currently only have one item option free-form text)posted this a while ago aiming to achieve this using extension framework but I donot see any methods in extensibility API for cart component to update item options I just found a method updateLine( line ) which apparently only works for updating quantity. Is there any approach for this?
s
Steve Goldberg
03/30/2021, 1:12 PM
Items in the cart are the specific combination of item options of the parent item. As each item combination is a different child item, there's no way to mutate the item in the cart without removing it and adding a new one (which would be the combination that you want).
Steve Goldberg
03/30/2021, 1:14 PM
My thought is that you would need to create a link that, when clicked:
1. Opens a quick view like window for options selection
2. Adds the new item to the cart (when add to cart is clicked)
3. Removes the old item from the cart
Steve Goldberg
03/30/2021, 1:15 PM
Doing it with the extensibility API would be possible but a bit complicated, and you would end up with a scenario where both items would temporarily be in the cart. You could probably do some stuff to control rendering so it doesn't show both, confusing the customer
d
Durgasree
03/30/2021, 2:19 PM
@Steve Goldberg Can I update a transaction column field instead of item options then? didn't find any API on that too
s
Steve Goldberg
03/30/2021, 6:24 PM
Similar thing. Custom columns are like item options