Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 24541

Questions related to Magento collections

0
votes
this will help i think problem with loading the collection parent::_prepareLayout(); $collection = $this->_getProductCollection(); $pager = $this->getLayout()->createBlock('page … /html_pager', 'sales.order.history.pager')->setCollection($collection); $this->setChild('pager', $pager); $this->getCollection()->load(); return $this; …
answered Jun 2 '15 by Qaisar Satti
0
votes
you can magento session for that public function getProductCollection(){ $collection = Mage::getModel('catalog/product') ->getCollection() ->addAttributeToSelect('a1 … ($collection); return $collection; } you retrieve in function public function sortcollection(){ $collection=Mage::getSingleton('core/session')->getsCustomCollection(); /* Here I want to …
answered Oct 8 '15 by Qaisar Satti
1
vote
you want something like that $_products->addFieldToFilter('url_from', array('in' => array(1,2))); $_products->addFieldToFilter('url_to', array('in' => array(2,1)));
answered Apr 27 '16 by Qaisar Satti
2
votes
It is rough idea hope work for you For current day WHERE created_at LIKE '2016-12-05 %' For weekly $lastmonday=date('Y-m-d', ("last Monday")).' 00:00:00'; $currentday=date('Y-m-d').' 23:59:00'; …
answered Dec 5 '16 by Qaisar Satti
1
vote
you can get it like that <?php $orders = Mage::getModel('sales/order')->getCollection() $collection->getSelect()->group('status'); echo count($orders->getAllIds()); ?> you can get it …
answered Oct 15 '15 by Qaisar Satti
2
votes
use Zend_Db_Select::SQL_UNION_ALL public function getStatusLimit($array = array()) { $this->getSelect()->reset() ->union( $array, Zend_Db_Select::SQL_UNION_ALL ); …
answered Jul 12 '16 by Qaisar Satti
3
votes
This is correct method $career_collection->addFieldToFilter('active',1)->setOrder('career_id','ASC'); If it is not showing in query. just simply add load(); $career_collection->addFieldToFilter(' …
answered May 10 '18 by Qaisar Satti
0
votes
I thin you want all order items Change $a = $productCollection->getItems(); to $a = $productCollection->getAllItems();
answered Aug 3 '17 by Qaisar Satti
2
votes
Not sure what problem but solved it by $orderCollection->getAllIds() public function getMyOrderCollection(){ $orderCollection = $this->_orderCollectionFactory->create(); $i=1; foreach($orde …
answered Dec 16 '16 by Qaisar Satti
2
votes
you can use this to get invoice between two date $orders = Mage::getModel("sales/order_invoice")->getCollection(); $orders->addAttributeToFilter('created_at', array( 'from' => 'datefrom', 'to' => 'da …
answered Jan 1 '16 by Qaisar Satti
3
votes
you can set cast as mention @RT $collection->setOrder(new Zend_Db_Expr("cast(validity as unsigned)"), 'asc') or $collection->select()->order(new Zend_Db_Expr("CAST(validity AS unsigned )",'asc')); …
answered Jan 9 '17 by Qaisar Satti
2
votes
The phtml file is a view, so you should not work directly on database there. Instead try to create a model, use that in the block and then call the prepared data from the block object.
answered Mar 28 '16 by Qaisar Satti
0
votes
after spending many of hours i checked this is a css by default .limiter { display: none; } so i have to overwrite in my module .news-index-index .limiter { display: block !important; } …
answered Aug 8 '16 by Qaisar Satti
1
vote
this will give total number of order $processingOrders = Mage::getModel('sales/order')->getCollection(); echo $total = $processingOrders->count();
answered Dec 16 '15 by Qaisar Satti
2
votes
::app()->getRequest()->getParam('limit'); } //Calculate Offset $offset = ($curr_page - 1) * $limit; $collection = Mage::getModel("testimonialmanager … /testimonialmanager")->getCollection( ) ->addFieldToFilter('status', '2') ->setOrder('testimonial_id', 'DESC') $collection->getSelect()->limit($limit,$offset); return $collection; } now in phtml call <?php $this->_getCollection(); ?> …
answered Apr 29 '16 by Qaisar Satti

15 30 50 per page