开发者

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

开发者 https://www.devze.com 2023-01-15 09:40 出处:网络
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 c

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

精彩评论

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

关注公众号