开发者

How can I retrieve only one product from a Magento collection?

I have a collection, which contains only one product. How I can get this product witho开发者_开发百科ut using a "foreach' cycle?


Use $collection->getFirstItem() to retrieve the first item from a collection.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜