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.

0
votes
0answers
10 views

Payment section on Order detail Page Magento 2

On the admin side, payment section (Order detail page) data is not showing. I am trying to override the default code or change the current code but couldn't find the proper class. Need guidelines for ...
1
vote
0answers
9 views

Magento2.3 how to add custom option of product when create order programatically? [duplicate]

I am using Magento2.3 I need to how to add custom option of product when create order programmatically? I used below code for add custom option to product but it is not working $product = $om->...
0
votes
1answer
19 views

How to get tracking number for items using order id for an order

I am getting the order information using $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('Magento\Sales\Api\OrderRepositoryInterface')->...
0
votes
3answers
40 views

How to get data from sales_order_item table in magento 2

I am new to Magento 2 and I want to get all data from sales_order_item table in Magento 2. How to get that can anyone answer?
1
vote
1answer
17 views

How to get tracking number and its title(FEDEX) for each item in Magento 2

I need to get a tracking number which resides in sales_shipment_track for each item in an order. Right now I am iterating all items of an order. foreach ($_order->getAllItems() as $item) { echo $...
0
votes
1answer
9 views

Invoice VAT - Non VAT

Placed an order with an incorrect VAT number, which then allowed me to submit my order as a Non-Vat customer. Is there any way to now change that order to a VAT customer and submit a new invoice ...
1
vote
0answers
10 views

Item level status in magento 2 via Netsuite

We have used Netsuite for items shipment tracking, now I don't know on which table of Magento 2, Netsuite updates item level status. Like for an order, there can be multiple items, and I have to show ...
1
vote
0answers
14 views

Filter a custom attribute in Order Grid

I added new attribute and new column to Order Grid : [vendor]\[module]\view\adminhtml\ui_component\sales_order_grid.xml <?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www....
0
votes
1answer
23 views

Order Emails are not generated :: SMTP configurations required :: Magento community open source

Magento 2.3.1 PaymentGateway: Fatzebra OS: Ubuntu 18.04 Environment: Dev I have used following code from here: https://magecomp.com/blog/send-order-confirmation-email-after-successful-payment-...
1
vote
1answer
44 views

Magento 2: How can change in the frontend sortOrder of Grand Totals and Tax positions in my account order detail page?

I need to change sort order in order_totals block in the frontend order view page. I want to swap the position of Grand Total & Tax in order_totals child items. Please help to change to order of ...
0
votes
0answers
6 views

Order shipment creation takes around 2 mins in magento 2

While creating shipment for order in magento2 is very slow. It takes around 2 mins for complete the process. How to solve this.
0
votes
0answers
7 views

Order status change after order shipment creation is not working in Magento 2 [on hold]

Order status is not getting changed after order shipment creation in magento2.
0
votes
0answers
19 views

Magento 2:- How to add order export feature to seller dashboard?

I'm using Marketplace and there is separate dashboard for each seller from where seller can manage their sections e.g-products,stores,orders etc. for now,on order grid seller can't export the order ...
0
votes
1answer
40 views

Set default filter for Customer grid during order creation in Magento2

I added a Customer Group column in Customer grid during order creation for Magento2, Then I filtered this grid base on Customer Group. Customer grid filtered and it is working fine but module ...
0
votes
0answers
23 views

Magento 2 - Sales email template override don't work

I customized store email template on the theme (header, footer, and content by module), however, those related to orders (Magento_Sales) aren’t working and display the LUMA theme email. The other ...
1
vote
1answer
33 views

Add a new column of “Customer Group” in a Customer grid during order creation

I want to add a Customer Group in a Customer grid during order creation For Magento2. I made [vendor]\[module]\view\adminhtml\layout\sales_order_create_customer_block.xml like this: <?xml ...
2
votes
0answers
16 views

$order->getCustomerName() returned ?? for unicode customer name

Under Magento EE 1.14, I have unicode characters in the customer name, the following code does return correct name in unicode for the first time: $order = Mage::getSingleton("sales/order")->...
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
0answers
16 views

Magento2 Split Order Functionality

I am using b2b marketplace extension in my website. I need to split orders based on vendor id. I got one split order module https://github.com/magestat/magento2-split-order , which is splitting orders ...
1
vote
0answers
19 views

Magento2.3 SetTemplate is not working first time ajax

I would like to add additional some field info in sales_order_create_index.xml I used setTemplate: <referenceBlock name="data"> <action method="setTemplate"> <...
0
votes
2answers
25 views

Magento 2.3: How to attach a pdf file with new order mail?

I am using magento 2.3.1 I need to send a pdf with new order mail, I have already done that for magento 2.2.6 but that is not working with 2.3. Can any one help me with this?
3
votes
1answer
104 views

Magento 2 - Reverting cancel orders programmatically

For some reason order canceled in bulk through my customly added order cancel mass action. Now I need to uncancel all orders. Change status from cancel to the status that was previously set on order ...
0
votes
0answers
16 views

Magento 1 Authorize.net issue | order created from admin panel is getting redirected to front-end cart page

I am using a Magento 1 of version 1.7.0.2. Recently i update a patch for Authorize.net and right after that i started getting issues. Currently in the site with live Authorize.net credentials if a ...
0
votes
2answers
27 views

How to get value from sales_flat_order_item table using quote_item_id?

Using the sales_order_place_after event in my custom Observer. I have the quote_item_id value (example 324). How to get the corresponding item_id value from the sales_flat_order_item table? I am ...
0
votes
1answer
31 views

Magento 2 - Order Item changes

I want to inform customers with email all the details of their orders and I want to be able to show the difference. For example: Those items shipped: ... Those items cancelled: ... Those items ... ...
1
vote
2answers
55 views

Get order increment id in observer

I have created a module to save order details to a custom mysql table after checkout completion. All works fine but the order id saves in the format "210"(order_id) instead of "1000000210"(...
1
vote
1answer
33 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
38 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
31 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
119 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
30 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
20 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
31 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
40 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
49 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
27 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
20 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
16 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
1answer
40 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
35 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
48 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
92 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
52 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
44 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
20 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
36 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
18 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
39 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 ...