I want to fetch multiple products from shopify in same order as i pass ids???

DD_Support
New Member
1 0 0

i have write a code which fetch multiple products from shopify, but i want to fetch multiple products in same order as i pass ids.

ids = ['204725518493', '266296033437', '236032262301', '204725649565', '236032196765', '235341054109', '235344625821', '268460261533']
@products = ShopifyAPI:: Product.find(:all, params: {ids: ids})

  kindly help with this.

0 Likes