Hi...Need Help! In Extension, inside event 'afterA...
# suitecommerce
s
Hi...Need Help! In Extension, inside event 'afterAddLine', I am using Cart.addLine() but this re-triggers the event and keeps on adding the same line...Is there any way to prevent the 'afterAddLine' event from triggering when I use Cart.addLine()? Thanks
s
It's designed to iterate over every line item. You will need to add a condition in that checks the contents of the current iterated line before executing addLine()
s
Thanks..that is what we did...Checking for which item/line addline event triggered before again executing addLine()..