Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sales-order]

Denotes questions related to Magento Sales module's order functionality.

1
vote
0answers
6 views

Efficient method to load/get and assign multiple custom options/attributes from quote item?

Is there a more efficient way to load and assign quote item custom options/attributes? This is code in my Observer: public function MyFunction(Varien_Event_Observer $observer) { $QuoteObject = Mage::...
0
votes
1answer
33 views

Change Email Template On Specific Order Status:Magento2

I am trying to use different e-mail template for one of my custom order status when the status is changed from the admin. I have used the event sales_order_save_after <observer name="...
0
votes
2answers
30 views

How to get the items orders by the customer in the order collection?

I need to get the collection of orders with the the items ordered by using the customer ID. But I am not getting the items ordered in my collection. Please help. $objectManager = \Magento\Framework\...
0
votes
2answers
43 views

Get order id by order increment id in Magento 2

I want to get order id by order increment id. I have this code but it is returning empty value: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $incrId = 100005363; $collection =...
0
votes
0answers
18 views

Magento2 - Admin order shipment not save with tracking number

When I m using payment method with COD than shipment is working fine, but when i'm using with Authorize.net than getting below error. Fatal error: Uncaught exception 'Exception' with message 'User ...
1
vote
1answer
17 views

External image details getting added in order email template in Magento 2

I am trying to add product image in the sales order email template with overriding in the path /app/design/frontend/vendor/Mytheme/Magento_Sales/templates/email/items/order/default.phtml. Code ...
2
votes
0answers
25 views

Getting an error: No such entity with cartId = 17090. How to resolve it

Magento give me this error when I create order using the backend. When creting the order with frontend, it works fine. I am using multi-website functionality in my project. I have creted custom quote ...
0
votes
0answers
23 views

Magento 2.3.1 Authorize.net: How to redirect to fail page if credit card details are wrong or any error occurs?

I have integrate Authorize.net payment method which is available in Magento 2.3.1 version uses Accept.js method. When customer gives wrong credit card details or any error that authorize.net gives in ...
1
vote
1answer
39 views

Magento 2.3.0 How to get product image from order item collection

I would like to get a product image from order items collection. How can I get a product thumbnail image? Below is my custom order item collection code : public function getEmailLogOrders() { $...
1
vote
0answers
22 views

How to get additional_information on sales/order

This is my code. I would like to get additional_information on API. I'm using getPayment, on this way, I believe that I can define this function there. I don´t know, just looking for some help or ...
1
vote
0answers
16 views

Magento 1.9 set custom field/attribute when order is set to complete

When order change status from "x" to "complete" I need save when order was completed. I am trying to achieve this with sales_order_save_commit_after event. Problem is that I can't save order when the ...
0
votes
0answers
12 views

Accept payment fail when payment status is review in Magento2

There are some orders which are in status "Payment Review" So i try to edit that order and clicked "Accept Payment" from the Magento admin end. I am getting the below error. "Action failed with ...
3
votes
0answers
30 views

Sales email layout not showing proper Magento 2

I am using clue theme for Magento 2.3.There is an issue with my all transactional email. Please check my order email layout. If i switch the theme to luma and check order email then it looks fine. ...
0
votes
1answer
22 views

magento 2 how to display simple product image instead of configurable product image in order detail?

I can successfully display the configurable product image in order detail page with the following code. /** @var $block \Magento\Sales\Block\Order\Item\Renderer\DefaultRenderer */ $_item = $block-&...
2
votes
1answer
38 views

How to get entity id(order id) in success phtml

In my success.phtml , $block->getViewOrderUrl() gives a order url with order id(entity id) . dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Success.php /sales/order/view/...
0
votes
0answers
32 views

Some Payment Method Not Showing in Sales grid after upgrade magento to 2.3.1

I upgraded Magento version 2.2.3 to 2.3.1 by using composer. All Things are working fine, except Sales order grid. In sales grid it's showing only payment method check, rest other payment methods are ...
1
vote
1answer
38 views

Magento 1.9.x: How to change the system so that new orders start from a specific number going up?

Magento 1.9.4 We just created a brand new Magento store and are going to switch our existing domain to that but we would like to change the order numbers in such a way that the new orders placed ...
0
votes
1answer
33 views

How to remove secondary UI component in Magento 2?

I want to remove export component from order toolbar page in Magento 2 admin. I have already created an custom export component in my module but I want to remove default one. See screenshot. Here ...
1
vote
0answers
10 views

Magento2 Invoice and delivery the same checked by default

I can't figure out how to check the "Invoice and delivery address are the same" checkbox by default. Is this a setting that I'm missing or is this something which should be handled from within a theme?...
0
votes
0answers
12 views

Get Tax amount only of Items in an order

I have enable Tax for shipping in an order. By default the products are taxable. I have written an observer which will run after order being placed. Inside the observer i am storing the Tax of Items ...
0
votes
0answers
15 views

How to get the extension attributes in shipping info and order/{id} APi magento2?

I have created a sales attribute "port" in sale_order table. I want to POST this post attribute in shipping information API payload and get it in response as extension attribute. I also want to save ...
0
votes
1answer
15 views

Adding new block in admin order section

I have added a new block in admin sales order page. The strange thing is it doesn't appear when i open order create page. But when i reload it appears. Can anyone tell what i am missing.
1
vote
0answers
35 views

How to override definition.xml file in Magento 2?

I am developing an extension to add another export format option in order toolbar in export button dropdown. What I found yet is that there are two options here (Sales Order Toolbar) right now: a) ...
0
votes
0answers
13 views

Coupon code being applied only to the first product in cart insead of whole cart

A coupon code is generated programmatically on a particular day. The coupon code when applied shows the correct discount amount and even the checkout shows the correct discount amount, but when the ...
0
votes
0answers
24 views

How to get the custom quote field in quote Api?

I have added a custom attribute in my quote table and sales_order table. How can I get this custom attribute in my quote Api so that I get the custom attribute with quote_id in response. After ...
0
votes
0answers
9 views

How to get total salesrule that has been used for today by customer using salesrule id

How to get total promo has been used for current date (today) by customer using salesrule id and customer id?
0
votes
0answers
10 views

what is difference between magento1 and magento2 sales order table list

what is difference between magento1 and magento2 sales order table related data to be stored and which table to be affected. Magento1 Sales related table Magento2 Sales related table Thank you, ...
0
votes
1answer
50 views

checkout success page events magento

I have just created one module after checkout success event in Magento. etc/config.xml <?xml version="1.0"?> <config> <modules> <Tech_Paymentinfo> &...
1
vote
1answer
14 views

Magento 2 invoice email not sending

My customer complaint they do not receive the email order. So I have to manually send them the invoice from the admin account. What cloud be the issue?
0
votes
0answers
25 views

Where is the original price set in sales order item table?

In quote_item table we don't have a column original_price. So when and how sales_order_item table get the original_price value. Post order we are seeing original_price as 0 in admin sales order view ...
2
votes
1answer
118 views

How to create duplicate new quote from old order quote Magento 1.7?

I want to create a new order programmatically by copying an existing order's quote. Here is what I have tried: <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); ...
1
vote
0answers
20 views

Sales orders not showing for new Admin user in magento2

I have created new User here System -> Permission Assigned User Role as Administrator But when logged in with the new user which i created now, I can't see the orders for the newly created admin ...
1
vote
0answers
43 views

cancel an order customer did not receive an email

I like to send an email to customer if admin cancel an order. Please help to solve the solution. Thank you.
3
votes
1answer
24 views

How to hide item with qty 0 after shipment created

I just very curiously how magento can process this . Default when create shipment with set item qty to zero. It's will not visible in shipment But i can't find file to process this Can anyone show me ...
1
vote
0answers
38 views

Magento 2.2.5 Override sales order item block not working

We are working on Magento 2.2.5, override the \Magento\Sales\Block\Order\Items class method _prepareLayout but it is not working showing error. File : etc\module.xml <?xml version="1.0" ?> <...
1
vote
1answer
21 views

Magento 1 - Predict Order Id Before creating the order

I have a use-case where I need to know the order id from Magento before completing the order. The idea is that I essentially call an API and if the API call is successful, then I proceed to complete ...
0
votes
0answers
40 views

Information Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving

I am getting below error on order view page in magento 2, what is the reason for this error. Information Changes have been made to this section that have not been saved. This tab contains invalid ...
0
votes
0answers
35 views

Cancel order item without cancelling order in magento 2

How to cancel order item without cancelling order in magento 2? Is it possible
0
votes
1answer
28 views

how to update Items Ordered order qty in magento 1

how to update order Items qty in admin panel? (magento 1.9)
1
vote
2answers
70 views

Magento2 : Add sales_order column coupon_code in sales order grid

In sales_order table we have a column coupon_code. I need to show it in sales order grid. I have added the column coupon code by overriding sales_order_grid.xml file. The column is being shown. Now I ...
1
vote
1answer
21 views

Add additional Fee on Order page

I want to add an additional fee here which will be a textbox. Entering a value will add to the grand total of the Order. This page is from admin, where admin will generate an order for Customer.
1
vote
1answer
30 views

Magento 1.9 - Customer placed the order successfully but its not in the Magento Admin Panel

I am facing a very serious issue with Magento 1.9 website. This has happened a couple of times. Customer places the order, they even get an email confirming the order but the order does not show in ...
1
vote
1answer
40 views

My Account dashboard orders (Magento 2)

I am currently showing all my orders in My Account dashboard. The problem only 5 orders are shown when I fetch all orders. $_orders = $block->getOrders(); but I have 29 orders in the database, it ...
3
votes
3answers
62 views

Magento2 Check Order Was Created by Admin or Customer?

I want to check whether an order is created by an Admin or by the customer.
2
votes
1answer
52 views

Magento Recommended way to add comment to order

I am looking for the Magento recommended best practice for adding a comment to an order. I can easily accomplish this using things such as $order->addCommentToStatusHistory($message)->save() and ...
1
vote
2answers
39 views

Magento1.9 Product SKU in Sales order grid

i have use default collection and change this file /app/code/core/Mage/Adminhtml/Block/Sales/Order/grid.php Now replace your _prepareCollection() function to this following code protected ...
1
vote
1answer
17 views

How to get coupan code(Promotion code) amount for an order (Magento 2)

I am getting the coupon code(promotional code) for an order For a coupon code, I am using this $order->getCouponCode(); How to get the coupon code discounted price so I can show it to the user. ...
1
vote
0answers
24 views

Missing Rows In Sales Order Grid

I have an interesting issue. Admin sales order grid does not show all records in sales_order_grid table. I tried several solutions. For example, I activated async grid generation on admin panel, ...
0
votes
1answer
48 views

Magento 2.2 - Add link to product (front end) within a custom column in sales order view items list?

I would like to add a column after "Product" to have a link to the product on the front end so it is easy to identify the product. Nearly all our products are one off items so I'm looking for an easy ...
2
votes
2answers
78 views

Order Status Processing after Shipment and Generate Invoice also Invoice status showing pending in Magento2

Shipment completed and generate invoice but order status showing Processing and invoice is in pending. Also invoice showing a Capture button. why? Anyone Know?