weird question but is it possible to update the Or...
# suitecommerce
u
weird question but is it possible to update the Order cart items appear in (top - down) without removing and re-adding ? OR is it possible to add an item to the cart a a specified index ?
s
No. You could do some wizardry that rejigs the ordering of the cart collection before it is rendered maybe?
u
yea currently using jquery to swap item placements in the cart. Thanks any way @Steve Goldberg
s
What’s the use case? Why do you want to control the ordering of it items?
u
some items are available for a design to be attached to it. so from the list of items in the cart, we can determine what items are available for attaching designs. The user is prompted a modal window that populates some custom records (the designs) and from their selection we add a base item to the cart with an item option referencing what item it is attached to and what custom record was selected.
so when the design item hits the cart it would be nice to just have it show up right underneath its attached (lets say “parent”) item. for now i just use cart.on addline, updatelines, removelines to reorder the items to fit under their parent
s
I see! Interesting. Yes, it sounds like a similar request I’ve heard before regarding add-on items / cross-sells: that they should be grouped together. Buying a new TV with an extended warranty and gold plated HDMI cable? Show the cable and warranty as ‘sub items’ in the cart to the TV, not as fully separate line items
u
yea exactly
cause then i dont have to worry about how it shows up on the mini cart / cart / checkout
👍🏻 1
s
OK! Well I think you’ve got the best solution right now (which is to do it visually in the DOM). There’s no way I know of to do as config in NS/SC
u
eh no prob! maybe it comes out in a future update