tags:

views:

24

answers:

1

I have a collection, which contains only one product. How I can get this product without using a "foreach' cycle?

+2  A: 

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

Joseph Mastey
Thank you very much. It's so simply really :)
Victor Burre