most of our searches have mainline true which by-product gives us only one result for each order, however, if i want to access the item info it returns 4 results for one sales order how can I still get item data but only one line per order
s
Sandii
01/14/2022, 6:15 PM
If there are more than one line then it does not make sense to have a single line per transaction. If you are getting more lines even though there is a single, it is likely from shipping/tax. You can set
shipping line
and
tax line
to false to remove them.
s
Sim Greenbaum
01/14/2022, 6:16 PM
thanx
Sim Greenbaum
01/14/2022, 6:19 PM
I just did it if weight is equal or greater than 0