Questions tagged [order-collection]

Questions related to Magento order collections.

11 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
2
votes
0answers
117 views

{M1) Product collection sort order by views for Most Viewed Products

Does anyone know how to order by views (ascending/descending) a product collection when working with most viewed products? I am using this following code: $_productCollection = Mage::...
2
votes
1answer
96 views

Order collection not showing the order that have been invoiced

I try to retrieve all the order collections, but when I observe by looping the collections and print the order id, I notice the order that has been invoiced is not inside the collection. $collections ...
0
votes
0answers
18 views

Not able to add filters on getItemsCollection in admin order page

I am implementing a feature, where I need to filter the order item list in order admin page. I have checked and found the list is getting from method getItemsCollection(). But when I am trying to ...
0
votes
1answer
23 views

How to fusion an AND et OR filter/condition in Magento?

how to fusion this instructions: $collection->addFieldToFilter('updated_at', ['from' => $from]) ->addFieldToFilter('updated_at', ['to' => $to]) or $collection->...
0
votes
0answers
38 views

Get Parent SKU from ordered simple products

I want to show the review form to customer who bought the product. I get it solved with below mention code but it is not working for configurable product. How can I get parent associated product with ...
0
votes
0answers
18 views

Magento 2.3: Filter Purchase Date of Orders by month and year

Default Magento allow we filter purchase date from DD/MM/YYYY to DD/MM/YYYY Now, I want to filter from MM/YYYY to MM/YYYY Please help me.
0
votes
0answers
30 views

How to get order collection which don't have invoice Magento 2?

I want to get order collection which don't have invoice. I want to create invoice manually for specific product type. How can I get? My working code in which I have get recent 10 days orders: <?php ...
0
votes
1answer
33 views

Get order Collection in Observer Class

I am working with an observer where i have to disable a payment method if user has no order existed and show it if at least one order existed. I am trying something like this but not able to get the ...
0
votes
1answer
48 views

How to use orderCollectionFactory and productCollectionFactory together in Model file?

I have created a custom attribute in product and saved a string in that value and I want if some one order those product of same value string i want that collection of product. So, i want to use \...
0
votes
3answers
320 views

Magento1 Get Item Details From Order Collection

in magento 1.9 i am working on order collection i am getting order collection successfully using below code now i want to get item details from order how i can get this .i am using this collection $...
0
votes
0answers
42 views

Data Not Set in admin Grid in magento2

I am Filter the Order Collection. Code give as protected function searchResultToOutput(SearchResultInterface $searchResult) { $arrItems = []; $arrItems['items'] = []; foreach ($...