Hi All, I have two item internalid's.I want to get...
# suitecommerce
g
Hi All, I have two item internalid's.I want to get the two item's data. var application = this.application , product = new ProductModel() , item = product.get('item'); if(splitItemarray) { for(var i=0;i<splitItemarray.length;i++){ item.fetch({ data{idsplitItemarray[i]} , killerId: AjaxRequestsKiller.getKillerId() , pageGeneratorPreload: true }); }} I have written like this.but i can able to get only one item data only. Anything i have done wrong? @PabloZ @Steve Goldberg do we have any articles for related this?
p
Look RecentlyViewedItems which loads some items by their Ids (based on a cookie). Fetching via a collection will be cleaner and will be 1 request only.
And please, don't tag me for questions.