When using OrderItemInfoProvider, what is the best way to include SKU info on fetch of order items to prevent multiple SQL Queries?
Also what in the ExpandColumns()?
Thanks
So the OrderItemInfoProvider statics are obsolete, but looking at code it just uses a join
new QuerySource("COM_OrderItem").Join("COM_SKU", "COM_SKU.SKUID", "COM_OrderItem.OrderItemSKUID")
Thank you
does this help: http://devnet.kentico.com/docs/13_0/api/html/M_CMS_Ecommerce_OrderItemInfoProvider_GetOrderItems_1.htm
Returned items contain pre-loaded OrderItemSKU SKU data.
Please, sign in to be able to submit a new answer.