Questions tagged [sales-order]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Remove Status Histories Get All Order API Magento 2

How can I remove status histories from Order Fetch Rest API? Any help would be appreciated. Thanks
0
votes
1answer
728 views

Custom filter in the sales order admin grid giving Invalid block t

I've been able to filter custom added column like 'seller name ' its get from seller id of product. other filters are working. $this->addColumn('seller_id', array( 'header' => Mage::...
0
votes
2answers
35 views

Magento 2.3 - REST API - Fetch first n order

I need to fetch the first n order with status processing or any other. Does anyone know the API string?
0
votes
1answer
19 views

How to get Gift Message data on Invoice PDF in Backend Sales Order Grid Magento 2?

I am trying to display Gift Message for individual Item on Invoice PDF Admin Backend Sales Order Grid. Below same code is working for me if you open an order from Sales Order Grid for Individual ...
1
vote
1answer
24 views

Customer required attribute fails order creation for new Customer

I have added a required field in customer attribute named as reference_number. If I create a new customer and save the attribute I am able to create the order for customer . But if i create a order ...
0
votes
1answer
16 views

Magento2 : Grand total changes to zero after placing the order

I am facing the issue of grand total becoming zero after placing the order in magento2. Some 3rd party module changes that. I want to know how to recollect the grand total again and set it as while ...
0
votes
0answers
19 views

Append My shipping address country in my order Id as prefix

I want to append the shipping address country code as a prefix in my Order Id. For example, my order Id is 20191107 and My shipping country is the United state. So, my order id will be US20191107. I ...
0
votes
1answer
835 views

Recalculate Total after Order place

I m trying to recalculate magento total using magento event observer after placing order.I m use below code to calculate total. Observer Functon public function recalculateTotal($observer) { //...
0
votes
1answer
877 views

Order View missing buttons

I have my first orders (all sold with PayPal) but in the order view there are no buttons for invoice, ship or reorder. I cant figure out what's wrong. /app/core/ hasn't been changed. Do you have an ...
0
votes
1answer
407 views

Magento Sales Guest form

I'm trying to find out where the /sales/guest/form/ submits to. Is it an email address that this goes to or does it search for a particular order?
0
votes
0answers
18 views

Information Changes have been made to this section that have not been saved. This tab contains invalid data in Magento 2

I am facing this error in the admin side when viewing the orders. It showing Order View Information Changes have been made to this section that have not been saved. This tab contains invalid data. ...
2
votes
2answers
115 views

New orders are not showing in the orders grid but payement received?

I upgraded from Magento 2.5.0 to 2.3.1 I am using only PayPal as a payement method. new orders are not showing in the orders grid in Admin > Sales > Orders and emails are not sent !! when I check ...
0
votes
1answer
886 views

which phtml file is use for New Order Confirmation Template for Guest/Seller?

i have created and implemented the code to call product thumbnail and product url for "New Order Confirmation Template" thats is use for customers.my code is below $objectManager = \Magento\Framework\...
0
votes
0answers
17 views

How To Change Street Address Validation Upto 35 Character In Magento 2 Backend

Here, I'm Trying to add validation in street address upto 35 character i'm almost done this in frontend but i want this into the Backend when admin create order from the admin panel of magento 2.
0
votes
1answer
27 views

Magento 2 - Create partial Credit Memo programmatically

I can create Credit Memo for invoice as given in this link. Can anyone please help me to create Credit Memo with partial products and not returning all the products in invoice.
0
votes
1answer
33 views

How to add custom column in the product grid while creating the order in the admin in Magento 2?

I am using Magento 2.3.0 You can see above grid when you try to add products while order creation in the admin. I want to add a new column called "Stock" in the above grid and I want to display the ...
1
vote
0answers
26 views

How to add additional options in order admin side in Magento 2.3?

I am sending additional custom options in the cart when add to cart a product. I have used this link . Using this link I have added custom options in the cart as well on checkout page and minicart. ...
2
votes
2answers
64 views

Magento 2: Change quote currency code before place order with Observer

I am trying to change the quote currency before placing any order. I have used below event for that. Vendor\Module\etc\frontend\events.xml <event name="sales_model_service_quote_submit_before"&...
2
votes
0answers
115 views

What's wrong with my event observer?

I have done below code in my event observer to add custom column to my sales order grid and still do not display the column to my website's admin panel? Here is my code: app/code/community/Mjsi/...
2
votes
0answers
384 views

Magento2 : sales_payment_transaction table not updating

I'm creating a custom payment module in magento2 and create success controller, I want to update order status and transaction. My code as below : // create invoice : this is working $invoiceService =...
0
votes
2answers
1k views

Displaying columns in Sales Order Grid

I have the following code to show some extra columns in the sales order grid. It correctly shows the columns and data, but when I try to click an order it says "No order exists". I wondered if anyone ...
2
votes
0answers
30 views

Grand total is storing as 0 while ordering the products in magento 2

Before placing the order it shows correctly the order total but after placing the order, it stores the grand total as 0 in the database table. How to fix this problem?
-2
votes
3answers
126 views

Custom Sales Order attribute not saving in Magento 2.3.1

I've set up a custom sales order attribute so I can mark orders as 'sent' when they've been exported via a custom module. My issue is it's not saving the attribute on the $_order->save() function. ...
1
vote
1answer
1k views

How to save order comment programmatically in magento2?

1)I'm creating custom order comment text box in sales->order->create new order . 2) Created order_comment column in sales_ order grid/quote. 3) I need to save order comment text box value into db....
1
vote
4answers
53 views

Magento 2: Call to a member function setState() on array

I want to change the order Status programmatically but when I run the function realTest() as I mentioned below then it gives me an error Call to a member function setState() on array in the below ...
6
votes
2answers
9k views

How to Get order increment id using order id in Magento 2

Can anyone please tell me How to Get order increment id using order id in Magento 2? Thanks.
0
votes
3answers
52 views

How can I change the Order Status in Controller. Magento 2

I'm trying to change the specific order Order Status. for that I tried. <?php namespace Vendor\Module\Controller\Index; use Magento\Framework\App\Action\Action; use Magento\Framework\App\Action\...
4
votes
0answers
149 views

Magento 2.1.5 - Sales Order reports show missing data

I am facing issue with order sales report its skipping some data from monthly order report, Some order dates are missing in reports but in order gird it display with same dates order Magento: 2.1.5 ...
3
votes
0answers
17 views

Magento 2 : How to change in order status and order id for display purpose in custom POS

We have Custom POS system enabled on the website. Like to append some labels in the order id and order current status for the display purpose only in the POS system not for the website(frontend) ...
0
votes
1answer
46 views

Magento 2: How to change Custom order number

I'm trying to change sales_order entity_id, but can't. In my client system having 65451 orders, they want to change order number like 95651 for some reason. We can change sales_order increment_id, but ...
0
votes
0answers
14 views

If you purchase a simple product that is associated with a configurable product, you cannot create invoices and shipping invoices at the same time

Does anyone have the same problem? Is this a Magento 2.2 x core file problem? Nobody is talking about this problem. How does it operate? Prerequisites Originally Magento CE 2.2.6 I have ...
0
votes
1answer
1k views

How to add column in admin sales order grid magento 2

I want to add SKU column, customer first name and last name in admin sales order grid. Please guide me how can I achieve this?
2
votes
3answers
3k views

Customers multiple email addresses

I've been searching high and low but I can't seem to find any information on this. My client would like the ability of multiple email addresses to a customer, so that all sales emails would be sent ...
0
votes
1answer
49 views

Restore quote in magento2

I have canceled the current order like use Magento\Sales\Model\OrderFactory; $order = $this->orderFactory->create()->loadByIncrementId($order->getIncrementId()); $order->cancel()->...
0
votes
0answers
23 views

Purchasing a Simple Product tied to a Configurable Product causes problems

Prerequisites Originally Magento CE 2.2.6 I have upgraded from Magento CE 2.2.6 to Magento CE 2.2.9 Procedure to reproduce this error Buy Simple Product that is tied to Configurable ...
2
votes
2answers
1k views

Magento 2 How can I remove tabs in order view?

It is able to remove the block by using But how can I remove the tab which is added by using argument? Thanks. <block class="Magento\Sales\Block\Adminhtml\Order\View\Tab\Creditmemos" name="...
1
vote
1answer
86 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
11 views

Magento 2.X: Showing wrong order address country in sales order view

We are using Magento version 2.1.8. We have set UAE as the default country and allowed countries as UAE and SA. On placing an order using SA address, the sales order view shows UAE as the country. ...
0
votes
1answer
15 views

Magento 2: How to differentiate the app and web based orders?

How to identify whether the order is placed from an app or website? I want to add one custom column in admin sales order grid. And the column displays the values for order source(app or website order)...
1
vote
0answers
21 views

how we can write wsdl.xml or wsi.xml in Magento 2.2.5?

In magento 1.9.3.9, we have added the new fields in wsdl.xml and wsi.xml. then that is looking like below image. How can I write the above code in magento 2.2.5?
0
votes
1answer
628 views

Magento 2 Get simple product image URL instead of parent image

the below code getting parent configurable parent image even if simple, So how to get the simple url also? $_item = $block->getItem(); $objectManager = \Magento\Framework\App\ObjectManager::...
2
votes
3answers
2k views

Consumer is not authorized to access %resources Magento_Sales::sales

I have this basic API script: <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); $usr = [ 'username' => 'username', '...
0
votes
4answers
509 views

Magento 2.3: Add Attachment with email (Magento 2.3 use zendframework 2)

I am working on a module in which I need to attach an attachment with sales email. However, Magento 2.3 use zendframework2 so email attachment is not the same as zendframework1 (in Magento 2.2). Can ...
0
votes
1answer
285 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
2answers
56 views

Hide payment method if customer has more than one processing order

I'm trying to hide a payment method if a customer has more than one processing order, so I created a module call KgPayMethod and in this module, I added this line on events.xml <event name="...
4
votes
5answers
10k views

Magento 2: Get quantity item from the order

I'm trying to build a custom payment module for magento 2 and i have a function in my payment module that is called on the success page. The problem is that i can't get the items quantity. I can get ...
3
votes
1answer
676 views

How to find missing orders in Magento

When I check the orders were placed on our site in the Magento admin panel, some of the order numbers are missing or we can say there's no sequence in order number. Example: Magento was at number ...
0
votes
2answers
220 views

How to adding Custom Attributes to Magento 2 Quotes and Orders

I have followed this: https://www.siphor.com/adding-custom-attributes-to-magento-2-quotes-and-orders/ It works well when creating custom attributes and adding data quote but after checkout, quote ...
0
votes
2answers
2k views

Magento 2 : How to Customise Admin Sales Order Grid Collection

I am trying to customise admin sale order grid collection. I have created an custom sale_order attribute store_manager. These store managers are admin users eg: 'manager1', 'manager2'. 1) Orders are ...
0
votes
0answers
28 views

Magento 2.3.2 Inventory Reservation, adding entries for open order before inventory upgrade

My salable quantity is off. I figured out why it's off and how salable quantity is calculated. Example proper order: User: New order with product sku SKU-AAA x 1 System: Create a Reservation for ...