Stack Exchange Network

Stack Exchange network consists of 174 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
10 views

Magento 1 - How to exclude column data from export csv file?

I want to exclude Email and Billing Telephone columns data from orders export csv file for specific user. I am using Rave Infosys Order Import / Export extension. These columns data should be empty ...
0
votes
0answers
15 views

Magento 2 How to send HTML in Order Comment Section of Transactional E-Mails

I am trying to send HTML structure in order comment section, but in email it convert in simple plain text. any idea? Comment: Hello, <a href="example.com">Click Here</a> Current ...
1
vote
0answers
8 views

How to add Backorder in Customer account dashboard in magento 2.1?

I want to display backorder if any sku have backorder list. See below screenshot: For ITP7 SKU : ordered :1 shipped : 1 backordered : 0 For ITP1 SKU : ordered :1 shipped : 0 backordered : 1
0
votes
0answers
11 views

Auto selected shipping method in magento2

I want to show auto selected shipping method based on order subtotal. So customer need not to manually select it.
1
vote
0answers
27 views

Show order comment history on invoice

I'm trying to show the order comments history on the invoice (Magento 2.2.6) I've written the following override: app/code/Denial/InvoiceComments/etc/di.xml <?xml version="1.0"?> <config ...
0
votes
1answer
14 views

How to render HTML entities in the wishlist sidebar

I have added the © symbol to product names in Magento 2. These all appear fine on the category and product pages, however when I add an item to my wishlist the product name appears with the text &...
0
votes
0answers
13 views

Magento1.9 shipping method must be specified when admin edit orders

I am trying to edit order in the admin section when showing "Shipping method must be specified." enter image description here
0
votes
0answers
26 views

Magento 2 | How To Add Drop Down menu in Sales Order Grid Page?

I wanted to add a dropdown menu. At the below location. How can we do it if by ui-components? Or can we do it by injecting js element? Any help will be highly appreciated.
0
votes
0answers
10 views

how to set null value to email column in sales order address table

I want to set the email field in sales order address table to null.But if i give $address->setEmail('')->save(); Its saying that the email is not in correct format.I am able to save the customer ...
0
votes
0answers
9 views

Modifying Order Status on sales_order_status_history_save_before event

I'm trying to automatically update certain orders to complete_1 after complete_0 is triggered. The status is updating ins status history but not on the actual order. if ($commentStatus == '...
0
votes
0answers
10 views

Magento2: searching for orders through REST is too slow.

I am looking to optimise my website. Searching for orders through the rest api is too slow. It's taking around 23 seconds for the query execution here: /Webapi/Rest/Magento\Sales\Api\...
0
votes
0answers
25 views

Adding a custom field into the items array in the results from the sales order list API in Magento 2

I'm using Magento 2, and I'm trying to figure out how to add a custom field (that I've already added into the sales_order_item table) into the "items" array that is returned for each sales order, when ...
0
votes
0answers
14 views

Magento2 Reorder using REST Api

Can anyone let me know if we can Reorder in Magento2 using REST webapi? Actually i have made one api and used same code as magento default reorder does, here is my code in API function using order_id ...
0
votes
1answer
27 views

Magenta 2 save product custom attribute in order to retrive them on sales information and otder email

I have created a custom attribute that shows in product detail page like colour and size attribute, I want them to be saved on order placement so that i can retrieve them in order information, order ...
1
vote
1answer
24 views

How to show product custom attribute in sales item ordered section in admin for bundle product and configurable product in Magento2.2.0?

I want to show product custom attribute in sales item ordered section in admin for Bundle product and Configurable product in Magento2.2.0? Refer my screenshot.
0
votes
1answer
25 views

Magento 2: Unable to get item_id while event “sales_order_save_after” is trigger

I need the product item id while sales_order_save_after event call. I try the following code. I am not able to get the item_id $order = $observer->getEvent()->getOrder(); foreach($order->...
0
votes
1answer
28 views

M2| How to put button on sales order information page

I want to add a button with email address. I can add buttons on places like this. Can any body help me to figure out how to do this on the specific point. Any help should be highly appreciated.
0
votes
1answer
28 views

Order confirmation receiving twice in magento2

I am facing same issue in Magento2, After the order gets confirmation we receiving the order confirmation mail twice. We using External plugin JccPaymentGateway , by using that plugin if we do order ...
1
vote
2answers
46 views

How to remove create an order button in sales order grid in magento2

i m overriding above code in di.xml file in magento2 <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory"> <arguments> <argument name="...
0
votes
1answer
20 views

Magento 2 email item list add product attributes

i want to add some product attribute to the ew order email . I cloned file in template and trying to do changes as below but it is not working <?php // @codingStandardsIgnoreFile /** @var $block ...
0
votes
1answer
36 views

Overriding admin .phtml files not showing up in magento2 backend?

I have overridden the admin .phtml files vendor/magento/module-sales/view/adminhtml/templates/order/view/items/renderer/default.phtml but nothing shows. This is my module.xml app/code/...
2
votes
1answer
28 views

How to get the orders above the order id and How to use the limit in magento 2

I need to write code to get next 10 orders above the given order id. <?php namespace Learning\GreetingMessage\Controller\Index; use Magento\Framework\Controller\ResultFactory; use Magento\...
0
votes
1answer
29 views

Order not placed in magento2

Not able to place the order in magento2 checkout. getting below error when place order button is clicked. An error occurred on the server. Please try to place the order again. The request to rest/...
0
votes
0answers
47 views

Magento 2 Cusomer and Order Migration Mismatch of entities in the document: sales_order_grid

I've migrated the customers&Orders from Magento 1.9.0.1 Version to Magento 2.2.6 Version so that I have implemented migration-tool. in in my config.xml, I have the following code config.xml <...
0
votes
0answers
30 views

Magento 2 Webhook Extension

What appears to be commonplace and easy to do on just about every other platform, Im trying to source an extension that allows for order notifications via webhooks... I've looked high and low but ...
3
votes
1answer
169 views

Get the shipping method on a order

I want to get the shipping cost for a specific order on magento 2 v2.2.4. What is the query I have to do?
0
votes
1answer
29 views

override Magento\Sales\Controller\Adminhtml\Order\Create\Save.php file

How to override Magento\Sales\Controller\Adminhtml\Order\Create\Save.php the file can you please help me out?
2
votes
1answer
26 views

Mail Notification when Item is Out of Stock

I am trying to achieve the following: When an item is Out of Stock send an E-Mail Notification to the warehouse. First question would be: what's the easiest and cleanest way to achieve this?! My ...
2
votes
2answers
41 views

Magento 2: Get last 5 orders detail

I have code for last order detail but I want last 5 orders. For last order detail code is: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $orderDatamodel = $...
0
votes
0answers
11 views

Add a Column to Display an Item's Cost in Back-End Order Entry for Magento 2

I'd like to add a column that shows an item's cost so a sales person can determine a custom price if necessary "on the fly" while entering an order in Magento2. I've not been able to figure out ...
0
votes
0answers
47 views

How to save data in custom column in sales_order table Magento 2

I need to save a string in a new column I created in the order table but I can not get any positive results, it does not save anything. First I created the column: <?php namespace Vendor\Module\...
0
votes
0answers
12 views

Magento 2: entity_id is 0 in sales_order_grid table for programmatically placed orders

I am fetching data from a webhook into my custom module's controller and placing order programmatically from the controller itself. I am able to place order successfully, however that does not reflect ...
1
vote
2answers
37 views

Magento 1.9 The requested Payment Method is not available

We want to disable a specific payment method, because we changed to another payment service provider. But when we disable the module, we can not open the old orders anymore. We get the error: The ...
0
votes
0answers
29 views

How to set 'Total Paid' and create one closed transaction without creating blank invoice in Magento CE 2?

I would like to set 'Total Paid' of order with certain value, which may be slightly higher than the total amount of the order, and create a closed captured transaction (payment) with the paid amount ...
0
votes
0answers
31 views

Sales order report showing orders price with current currency rate in sales order grid?

There are some screenshot regarding to my problem: My old currency rate and sales order report screenshots when I ordered the product given below- And when I updated the currency rate then orders ...
0
votes
1answer
35 views

Magento 2 order shipment tracking details

How to get tracking information from order shipment in magento 2?
0
votes
0answers
19 views

Adding columns to order list page breaks order view tabs

I'm trying to made a custom module (custom collection or plugins both will break the order view's tab) to add a column order list view di.xml <?xml version="1.0"?> <config xmlns:xsi="http://...
1
vote
0answers
45 views

Change order total programmatically in magento 2

I want to change the order total in Magento 2 for pending order programmatically, the change of the total doesn't include the discount and shipment price, for example: +----------+--------+--------+--...
0
votes
2answers
30 views

I'm getting a Error on creating orders inside the Admin panel Magento 2

I'm getting a error on creating the order inside the Admin panel like below Order saving error: Your API key is not valid. I don't known why it is happening.?? Please anyone help me. Thanks in ...
1
vote
1answer
28 views

Problem with smtp configure

I have magento 2.2.4 with a smtp server configured. I can send email test from the tool and i receive it correctly. But when i buy a product I do not receive any email. What can be the error? I have ...
0
votes
1answer
43 views

magento 2 exit without placing order sales_order_place_before event observer

In sales_order_place_before event i am loading all order collection which used po_number as the payment method . From the collection I am getting customer id after loading order data using parent id ...
0
votes
1answer
24 views

How to get Order information from event checkout_onepage_controller_success_action?

I am trying to get order information to do some tasks, after the order is placed. I tried with the events "checkout_submit_all_after" and also with "sales_order_place_after" but the only event I am ...
1
vote
1answer
49 views

How to get order total without discount Magento 2

I load an order model like this: $order = $this->orderFactory->create()->load($orderId); and to get the order total i use : $order->getGrandTotal(); this order total will show the ...
0
votes
0answers
22 views

PayPal standard order status from Canceled to Processing immediately

When an order placed using PayPal standard the status flow like below in some cases. Pending payment -> Canceled (after few seconds) -> Processing (after few seconds) again. Why it occurs ...
0
votes
1answer
39 views

Why order item quantity is not decreased after order placed

I am facing a strange issue in our live site order item quantity is not decreased after order placed from the frontend. (i.e) if a successful order has 5 products, 4 products quantity has been ...
0
votes
1answer
36 views

How to get selected Order Ids in block from Sales Order Grid? Magento2

I want to generate PDF of selected orders, Rest of the functionality is complete just wanted to get selected Ids from sales order grid. For now I am getting full list of Orders on clicking my custom ...
0
votes
1answer
37 views

Send Email to customers automatically

Magento Version: 2.2.5 Enterprise edition I am facing issue in order update. Presently when i create an order We have Email order confirmation checked by default. But similarly for order update/ ...
1
vote
1answer
47 views

Custom link in Account dashboard Magento 2 with order history

I am trying to add custom link in account dashboard of customer account navigation. Used below code to add link on left side in my layout/default.xml <body> <referenceBlock name="...
0
votes
0answers
42 views

How to display Custom Shipping Address form field in Magento 2 Admin under Sales->Order?

I followed this, and created new custom form field in the checkout page. I want to display my newly added Custom Shipping Address Form Field in Admin under Sales-> Order . Can you suggest me how ...
0
votes
2answers
70 views

Override admin block file issue in magento2

I am trying to override block file of adminhtml of sales module. Below is the code of my di.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...