All Questions

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

How to get all orders items by product_id?

I want to get all order items by product_id not by order_id. So Please read carefully and give me a solution. Thanks in Advance.
0
votes
0answers
14 views

how to change the custom option value to download link in magento 2 order

Hi I have created a custom option for product working fine in the front end When I order this product in order view the product custom option showing as text I need as the ...
0
votes
0answers
22 views

Adding textarea to admin product view to show customers who ordered product?

I want to add a textarea to the Magento 2 admin product view which contains the customer ids of the customers who ordered that product. What would be the best approach? Has anybody done something ...
0
votes
1answer
378 views

Magento 2 How to decrease product qty from source same as “Product Salable qty” after orderd placed to make product out of stock?

As Magento 2.3 have default behavior that it decreases the qty from "Product Salable Quantity" after order placed not the "Source inventory". The main qty(source inventory) of a product is decreased ...
1
vote
1answer
37 views

Deleting Products Order history?

How can I Delete test order history from my Magento 2 Admin Panel?
0
votes
0answers
27 views

Add option of custom shipping amount at the time of create new order from admin in magento 1.9

I am creating new order from a admin ,there found option to put custom price amount of product but . I want to put custom amount for shipping also . please help how to integrate this , or have any ...
0
votes
0answers
42 views

Order for a single product getting placed and cancelled automatically along with all orders

There is no issues in placing order from the website. But in Magento admin panel along with each order a default product is shown as ordered and cancelled. This is making me confused. How to solve ...
0
votes
0answers
21 views

Magento 2.2.0 : Wrong Download Items and Download Link in order Invoice Email and customer account

I am facing an issue, My site have downloadable products when I place order and invoice is auto generate her as we are using paypal. So the Emails and in customer account and admin orders all are ...
0
votes
0answers
219 views

Magento2: Create a new order from Admin panel for particular customer

Create a new order from Admin panel for a particular customer. Magento default functionality is not working When I add a new product and update to the shopping cart option then page refresh but the ...
4
votes
0answers
26 views

Magento 2.2 - order confirmation/order edit - rounded bundled product qty

I use decimal qty for some products. If product type is simple order confirmation email sends qty correctly in decimal eg. 1.05 m2 Unfortunately if same product is part of bundle qty is rounded down. ...
0
votes
1answer
62 views

Magento 2 Index Contoller on Custom Module

I have added the custom order form on product page. When cutomer enters the details and submit the form then the Order will be created in backend and also confirmation email will send to customer ...
1
vote
0answers
251 views

Magento 2 : Display Custom Attribute in Order Items

How we can show product custom attribute i-e: upc in orders items under sku. pics attached for reference,
1
vote
0answers
8 views

getting z_filters via REST

We are trying to grab all data from a magento 1.x-Shop to process them for some statistics. I was able to connect to the shop and grab product, customers, orders and stockitems so far I saw at the ...
1
vote
0answers
24 views

Magento 2 Customized Product

I'm struggling, I need some advice! I want to create a form where a user can customize his order, So it's a Cars Form, the user can chooses the model, the color, the brand, the quantity (a discount ...
0
votes
2answers
184 views

Isssue with imported order

I import all my orders from Magento 1.9 to Magento 2.2, the orders are in the store but when I press on View button, I have the following error: 1 exception(s): Exception #0 (Exception): Warning: ...
3
votes
1answer
130 views

Rest api for my orders

Where can i find the rest api for my orders and my downloadable products in magento2. I can't find the list in the swagger file. eg: GET /orders/me GET /downloadableproducts/me Or how can i filter ...
0
votes
1answer
23 views

How to Place order for specific product id?

This is my controller to add a specific product to the cart. It is working fine. Now I don't need to add in cart, but directly to place order using product id. My product id is 483. I need to place ...
0
votes
3answers
349 views

What is difference between getOrderId and getLastRealOrder() function in magento 2?

As I'm new to magento 2 I can't anble to trigger out the difference between getOrderId and getLastRealOrder function ? How to get product id using getLastRealOrder() function?
0
votes
1answer
267 views

how to get date of out of stock product

I need the date of out of stock product. is this possible we get the date of product when the product is out of stock or again quantity added in stock? Thanks.
3
votes
1answer
431 views

Magento2 - How can possible Reorder Product wise?

I need All order Product Items in User My account section. How I can get All order items with selected options.
0
votes
1answer
124 views

Magento 2 : Increase sold count after order status completes

I'm new to Magento 2. I want to show the sold count of product only after the order was complete. I have used this code to display count. $_product = $block->getProduct(); $sku = $_product->...
0
votes
2answers
356 views

Summary of purchase on the success page

I wanted to summarize the purchase on the success page, as if it were a cart with all the products that the user bought, with the image, product name, quantity and price of it. From the code below I ...
1
vote
1answer
256 views

Updating minimum order quantity (Front End View)

I am trying to change the 'Minimum order quantity' on the front end because it currently displays '0'. All simple and configurable products currently display 0. I have gone into the attributes of ...
0
votes
1answer
579 views

get product name for the order in my dashboard

I am working on magento 2.1.8. In the my dashboard There are orders listing. But i want the product name of that order also. right now product name could be shown by clicking on the view all list. ...
0
votes
1answer
240 views

Clean orders and products

How can I delete all the orders and products, with their relative data, in order to have a clean Magento's environment?
2
votes
1answer
641 views

Magento 2 - Getting order numbers by product id

I want join order collection, order item collection and product collection. my goal is get all orders based product id. example : my product_id is '123', and I want know all order number contain ...
1
vote
1answer
936 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 ...
1
vote
0answers
75 views

Magento 2 : When I Create an Order on Admin It Show Disabled Products

When I manually create an order in the backend and go to add a product, it will show all products even those out of stock or status disable, is there a hook for this in Magento 2 to hide those ...
1
vote
0answers
81 views

Magento 2 : All Completed Orders With Customer and Product Details

I'm planning to execute particular SQL query against magento database and use that result in data-analyzing-tool which requires uploading data to be in following format. I need to know what are ...
0
votes
0answers
329 views

Order Total and Order Item issue when creating order magento 2

I am using the following to create an order in magento 2. Basically I have to shift data from a custom made eCommerce site to magento 2. protected function createRealOrder($singleOrder, $tempOrder, $...
1
vote
1answer
84 views

Get all ordered products for all customers

I am using Magento 1.7. I want to get all the products that each one of the customers bought in the past. Edit: I need the list of products because I am trying to design and implement a recommender ...
2
votes
1answer
258 views

How to add Purchased From(store) in programmatically order

I have a script to create order programmatically in magento 1. Everything works fine except the fact that my created order doesn't have this field (Purchased From(store)) like in the picture bellow ...
2
votes
1answer
431 views

Magento 2 What are the Custom Attributes Node when Creating a new Product Type?

I've had a look at how to create new product types in magento. Looking through the core code I found the following: <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1answer
1k views

How to create a custom button in Order grid in Magento 1

I want to create a custom button in magento 1 backend in **order tab.** I want this button to be General(for all orders), but i can't find anything related to my issue. All i find it's this article ...
0
votes
1answer
67 views

How to take order id form url in Magento 1

I have this link from backend /sales_order/view/order_id/44/key/6d81f4104dc5d2a72a8e16f709f61990/ Here I have the order id which it's 44. I want to take this id in a controller. I try like this: $id =...
0
votes
1answer
3k views

How to get customer name and adress through order increment id/order id in magento 2?

I want to fetch and show which customer bought which product and from where on front end. The issue is i am unable to fetch the above details through order increment id/order id. So how can i get ...
1
vote
1answer
79 views

Get no order from product name or product description

I want create search field which can get order number from product name or product description in magento 1.9 , I've confuse since order number is placed in Mage::getModel('sales/order') and product ...
1
vote
0answers
21 views

Display categories of products in the shipment grid

I want to display the categories of products in the shipment grid. Suppose a shipment contains 3 products- A,B,C. I want to display the categories of all the 3 products, separated by ";" in the ...
3
votes
1answer
811 views

How to get the number of times a product has been ordered

I need the number of orders made by each product. I have the object \Magento\Catalog\Model\Product With that object I can retrieve the Id, price, name, etc. But no idea how to get the number of ...
1
vote
0answers
77 views

Set maximum limit of products purchased from a store for a day (not per customer or cart)

We are using Magento for a bakery website. There is a limit in the number of products that can be served per day (not for a single customer or cart, but for the whole store)... The number of ...
6
votes
1answer
4k views

$item->getSku() and $item->getProduct()->getSku() return different values. Why?

Edit: originally this question was just about sales/order objects but I've found an identical problem with sales/quote objects too, so I'm editing it to include that. I also added a TL;DR at the ...
2
votes
1answer
74 views

Deleting archived products - Will the products inside orders be affected?

I have a lot of archived products that I would like to delete. But I am using a function in the frontend where users can see their old orders and what products were bought: $orders = Mage::...
2
votes
1answer
810 views

Create an order in admin panel with a new product type

I created a new product type like "License Product" extend from "Virtual Product". I can place an order with this product type in frontend, but i can't add this product to order in backend. Any help ...
0
votes
1answer
27 views

View Date-based Products

I run a food delivery business where we make fresh food, package it, and delivery it locally each day. Each day we offer a different set of options. For example, on Monday there might be Entree A, ...
1
vote
1answer
474 views

Magento 2 - Getting order information

I'm working on creating a file that I can use to send any orders received on a particular day via a post API call. Magento's code appears to have changed dramatically now so I'm finding getting ...
0
votes
1answer
513 views

How can I get special price of an ordered product in “sales_flat_order_item” table

A product which have following prices in catalog has been sold with qty 1:- Price - 65.00 [INR] [Inc. Tax Rs 8.23] Rate - 51.61 [INR] [Inc. Tax Rs 6.54] SpecialPrice - 61.75 [INR] [Inc. Tax Rs 7.82] ...
2
votes
1answer
231 views

Order per product unit or per box

This is what I'm trying to achieve: I have 2 radiobuttons: 1. Order per item 2. Order per box (6) Under those radiobuttons, theres a textbox. People need to fill the amount in that field. When I ...
2
votes
1answer
86 views

Sort orders by criterias

I'm trying to display a history of customer's orders by products. I succeeded to display every product ordered with its date, name, price, sku and quantity. But now I'd like to display it by at least ...
0
votes
1answer
697 views

Magento update order product on observer

I'm trying to update additional_data field on sales_flat_order_item table in Magento. For this I create a custom module This is my Observer.php under app/code/local/Distelsa/Wedding/Models : class ...
2
votes
1answer
985 views

What is the effect of deleting a product with associated orders?

We use an extension by Celigo that pushes products from our CRM/ERM (Netsuite) into Magento. Somehow the system pushed a couple duplicates (still looking into why). I need to delete the duplicate ...