Reading list Switch to dark mode

    Get Custom Model Collection According to Page Number and Page Size..(In Magento )

    Updated 29 April 2013

    //salesperson is a custom model in magento
    $pagenum=5;// pagenumber which you data want
    $pagesize=10;// how many data display on a page
    $collection->addFieldtoFilter('phone2',array('eq'=>''));// condition for filter data
    foreach($collection as $t){
    echo $t->geCity();

    Searching for an experienced
    Magento Company ?
    Read More
    . . .
    Discuss on Helpdesk

    Leave a Comment

    Your email address will not be published. Required fields are marked*

    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home