Questions tagged [items]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
35 views

What is Difference Between Field, Argument and Item in Magento 2

I am not cleared about field,argument and item. Also I don't know why we use it. Xml code is: <field name="allow_shipping_method"> <argument name="data" xsi:type="array"> ...
0
votes
1answer
20 views

How to get orders items data from particular order?

I want to get details of custom options which selected whenever customer choose at order time. Thanks
0
votes
2answers
46 views

How to add item status for an order in magento 2

I have multiple items in my order. How can I add item status and its tracking information for that order in My Account Orders? I am using this to get orders $_orders = $block->getOrders(); And ...
0
votes
0answers
13 views

Mix&Match Magento 2

How to set up Mix & Match Pricing on Magento? For example: Buy 3 for total of $10 Buy 4 will be $10 + 1 item price The items will be all different pricing. If not, is there a suggested ...
0
votes
1answer
23 views

Can't add items to cart in Magento 1.7

I'm working on migrating my site over to a new server and everything is up and running, except when I go to add an item into stock it doesn't work. I am not getting a Magento error nor is it ...
0
votes
1answer
169 views

get invoice item using order_item_id in magento 2

I want invoice item data using order_item_id and I tried using use Magento\Sales\Api\InvoiceItemRepositoryInterface; private function getInvoiceItemById($orderItemId) { return $this->...
0
votes
2answers
30 views

Item is out of stock but available on storefront

Can you please guys explain, me how can I do this ? "If an item is out of stock can it stay on the site but say 'More stock on its way' and not allow people to order until stock is available again."
0
votes
1answer
55 views

Price is not updating when dropdown is selected for configurable items

I am having a small issue in where the price is not being updated on Magento 1.9. When I select a drop down selection the price is still fixed to the configurable price. I have learned that Magento ...
0
votes
1answer
146 views

After deleting wishlist item programmatically from my Api call It is still visible in frontend magento2?

This is my code: $wishlistIds = $this->_checkoutSession->getWishlistIds(); $wishlist = $this->_wishlist->create()->loadByCustomerId($this->_customerSession->getCustomerId(), true)...
0
votes
0answers
102 views

Magento 1 - Getting product options from quot item

I have a simple request, to get all of the product options from a Quote item. This can be done very simply with the Order item as follows: $item = $order->getItemById($itemId); $item->...
0
votes
0answers
38 views

Magento 2 : Get Items Ordered in Email Template

I'm looking to achieve a product grid of items ordered in an email template upon successful product. This is what I'm trying to achieve, in this exact order for each product. Is this doable? I can't ...
0
votes
2answers
539 views

Get Order Id from Item Id in magento 1

I am having puchased item id and I need to grab order details in magento 1 Can anybody please help?
0
votes
0answers
121 views

How to add each product items separatly to a shopping cart

Can some take an advice how to add each item to a shopping quote separately, even if add few items per one time? If override method in a class \Magento\Quote\Model\Quote\Item, it works if add the one ...
2
votes
0answers
165 views

How to prevent adding same item into wish list twice in magento 2.1.9

I need to prevent users adding same item into user wish list. I could find an answer here .But i'm not able to implement it. please help me with the implimentation.
0
votes
1answer
115 views

Convert product item options in an order to readable array

When i print the order item there's an index product_options, i want to make the value is readable, because the current value seems like encoded or something foreach($order->getAllItems() as $item)...
2
votes
1answer
821 views

Hide item count and pagination from category page in Magento2

Is it possible to hide pagination and item count from Magento 2? Preferably only for specific category but if not possible then for all categories... ............
1
vote
1answer
1k views

Get Order Id from Order Item id in Magento 2

How to get order details based on order item id using simple way. I can get the order id from sales_order_item table and then can lookup in sales_order table to fetch sales order details. Is there a ...
0
votes
1answer
275 views

How to display wishlist item details in admin panel of magento?

I wants to display 'wishlist_item' and 'wishlist' table details on admin panel of magento.
1
vote
0answers
190 views

How to download wishlist list item as a PDF in magento?

I would like to download wishlist items in PDF format. there will be a button on wishlist item list page as "export as PDF" after clicking on this button i wants to download wishlist item list as a ...
1
vote
0answers
287 views

How to override protected function in Magento 2

I'm trying to override one protected function in Magento 2 but I am not able to achieve it. I have edited following files: <preference for="Magento\Checkout\CustomerData\DefaultItem" type="XYZ\...
0
votes
1answer
424 views

how to get Grand Total of Wishlish Items in magento?

i am trying to get grand total of wishlist item. when we update quantity of wishlist item then total will show in price column and display the all item grand total at bottom. anybody knows answer ...
-1
votes
1answer
485 views

What is the reason for Item Status = “canceled” and not able to create Invoice

The ordered placed by online payment, and the ordered page item status canceled, may i know what is the reason for my item status canceled How create Invoice for this order?
1
vote
1answer
939 views

Magento 2: Retrieve items on Order

I'm trying to retrieve products(which are in order) from order id but it's not working. Here is the code: namespace My\Trackorder\Controller\Index; use Magento\Framework\App\Action\Context; class ...
0
votes
1answer
741 views

How to open my wishlist top link in new window? [closed]

I wants to open my wishlist top link in new window excluding my account left nevigation menu. and after open this list also display grand total of all wishlist item. finally export it as a pdf ...
3
votes
1answer
610 views

Delete order item after successfully save order Magento 2

I want to delete the order item from observer I created like this: namespace Namespace\Module\Observer; use Magento\Framework\Event\ObserverInterface; class AfterOrder implements ObserverInterface {...
0
votes
2answers
722 views

How to filter items by id in Magento 2

In a module, I need to deal with Order Items. I know how to get items from Order: $order = $this->_order->load($order_id); $items = $order->getAllItems(); But I would like to retrieve the ...
1
vote
3answers
852 views

Magento 2 : Adding Custom Attribute “color” to Order Items in Backend

How do I add custom attribute "color". I have made to order items in backend. I have tried: $_item->getColor() $_item->getAttributes() $_item->getAttribute('color') And a bunch of other stuff: ...
1
vote
1answer
759 views

Magento 1.9.3.2 edit table /email/order/items.phtml - Solved

I can not change <th> and color in email order I changed the file /email/order/items.phtml but it does not work If I add another <th>not work Instead it works if I change the file in /...
3
votes
2answers
3k views

Magento 2 - How to programmatically add a product to cart multiple times but with different options?

How to add multiple items (same product ID) with different options to cart ? Following code is working for one product or different products. But, with two items of same product ID, with different ...
0
votes
0answers
21 views

Magento 2 sometimes don't show items in the second category

I have two basic categories (woman/man) with many subcategories and products. Sometimes, just sometimes the products in the second category "man" don't appear in the frontend. In the backend they are ...
8
votes
0answers
341 views

Magento 2 : What is the Best Way to Implement Favorite Products List for Regular Customer?

The majority of our customers not very tech savvy and have trouble with basic website functions and they need to order same or similar items every week or quickly. What is best way for me to assign ...
1
vote
2answers
2k views

Magento : Update Cart Grand Total and Subtotal

I have 4 main products in cart, Each item is having different price. I want to update cart's total price as $40 without considering each line item price. I want to show $40 as combined price for all 4 ...
2
votes
0answers
367 views

Magento 2 How to filter shared wishlist items function?

I want to add a new filter in shared wishlist items. I have used the preference method to override the block method. The problem is that the addFieldToFilter is not working. How can I achieve it? ...
0
votes
1answer
127 views

How to override email/items.phtml and email/items/default.phtml to include product url and thumbnail in magento2.1.3

I have developed one module in magento-2.1.3. on the name of Shelltag/SalesOrder/. I want to override items.phtml file and default.html from module-sales/ in this. I don't want to edit core file. So, ...
1
vote
0answers
27 views

Magento : Get RETURNED/EXCHANGED Items List From Database

I would like to build a report in Magento admin, where I can see all products that have been returned or exchanged. Does anyone know how to get a list of all the returned/exchanged products from a ...
0
votes
1answer
337 views

How can I get additional data for each order item, based on order id?

How can I get additional data for each order item, based on order id? I need to get additional data for each order when order is made. I already implemented the observer, it works fine. I hooked ...
3
votes
1answer
2k views

Magento 2 get shipped items in sales_order_shipment_save_after event

I want the items that are shipped in the "sales_order_shipment_save_after" event(Not all the ordered items,only the currently shipped items). How can I do it. Here is my code. This code gives shipment ...
0
votes
1answer
445 views

Magento add another custom dropdown field in bundle items of bundle product

How to add new dropdown field, next to the position field of bundle item like shown in the below screenshot.
5
votes
1answer
655 views

Change <item> node class via di.xml

If I have something like this: <type name="Magento\Downloadable\Ui\DataProvider\Product\Form\Modifier\Composite"> <arguments> <argument name="modifiers" xsi:type="array">...
3
votes
0answers
362 views

Join sales/order and ordered items in grid column render Magento 2

I created a custom column in sales/order grid named Product name, They are coming fine on first time, When I am doing sorting Found : Column not found: 1054 Unknown column 'product_name' in 'order ...
0
votes
1answer
346 views

Magento add custom attribute to transaction email items

I want to change the default SKU field inside the transactional email item field, to a custom attribute. Therefore I need to edit the following file: /app/design/frontend/theme/theme/template/email/...
1
vote
1answer
97 views

Get name for all products of all orders

I have a Magento store installed on localhost over WAMP server. I'm using Magento 1.7. I need to do a table whose first column contains all the products from all the orders. I can't manage to get the ...
1
vote
0answers
43 views

I'm pulling the style number for configurable products instead of the sku (simple) in my data array

For u2 it populates the style number and I'm trying to pull the sku/upc. Here's what i have: if ($module === 'website_checkout' && $controller === 'onepage' && $action === '...
0
votes
1answer
1k views

Magento 2: How to get Order Item's Direct Without Inner Loop

I have below code for fetching Order's which has payment method "Paypal Express" $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $orderCollection = $objectManager->create('...
0
votes
2answers
810 views

Product custom attribute display in backend

I have created one order from backend in Magento 2.0.7 and selected item for order at that time. I want to display product custom attribute Best Price with item details. How can I do this?
0
votes
2answers
6k views

Magento 2 change number of items per row

I'm using Magento 2 with a custom theme , and I'm trying to change the number of items per row in the catalog. Now I'm having 3 items per row , and I'm trying to get 4.. what's the right file to edit ...
0
votes
1answer
53 views

Add product to quote skips product randomly

I need to create an order with more than 60 products programmatically but it seems like Magento skips some(around 3 or 4) products randomly. I think it's a problem with itemsCollection of _quote but I ...
0
votes
2answers
74 views

How to get Order ID on product view.html

I'm trying to get all Order ID's for each Product ID. So far I'm getting the Product Id with the following code: Mage::getModel('sales/order_item')->getCollection()->addFieldToFilter('...
22
votes
4answers
40k views

Magento 2 - How to get all items in cart?

At checkout page (chekout/cart) I want to edit the checkout button url destination based on cart items (link.phtml). How can I get all items in cart? I want to do this without using the API. Thanks.
2
votes
1answer
3k views

Magento 2 : How do i ONLY display the number currently in cart?

I am trying to display the number of items currently in my cart, however not getting any result. In magento 1 we just just add the following to our phtml file and it will just echo the no. of items in ...