I am trying to add the same item twice the SCA cart and I need them to be added as separate items instead of combining the quantities. I ran a test and discovered the Commerce API combine items with the same internal ID and item option values. Is there a setting in NetSuite to prevent the Commerce API from combining the items?
s
Steve Goldberg
03/29/2021, 6:36 PM
I'm asking some colleagues but I don't think that's a thing. My only thought is that you inject some uniqueness by giving every item a custom transaction line field, which is invisible and contains a unique string
k
Keith Fetterman
03/29/2021, 6:48 PM
@Steve Goldberg, thanks for the quick feedback. I ran a test where I create a non-matrix item option (text field) and used a unique id. It worked. I didn’t hide it, but that can be done. The good news is the Commerce API returned them as separate items.
netsuite halo 1
s
Steve Goldberg
03/29/2021, 6:49 PM
Yeah my colleagues confirmed that this is probably the best way of doing it.
k
Keith Fetterman
03/29/2021, 6:50 PM
Steve, thank you. I really appreciate that you checked with your colleagues and confirmed it. I’ll go the hidden custom line item field route