Questions tagged [sales-order]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
91 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 ...
1
vote
2answers
4k views

In which table Order's comments history information will store?

I'm using paypal express checkout.and In order comments history tab the following type of information is stored. Payflow PNREF: #B1PP7A1A6D7C. Authorized amount of $94.99. Transaction ID: "...
0
votes
4answers
62 views

How to get “product url” for multi website in sales email template

From my magento2 backend i created 2 website. 1st default website xxxx.com 2nd website is yyyy.com. In my sales order email template, added $_order = $_item->getOrder(); $_objectManager = \...
1
vote
1answer
593 views

Admin>Sales>Orders list not showing

I'm using Magento 2.3. How can I fix Admin>Sales>Orders? The list is not showing. I have orders but it's not showing. Please help!!
2
votes
1answer
802 views

Get Sales Data of Current Day

I can get sales revenue with this $orderTotals = Mage::getModel( 'sales/order' )->getCollection() ->addAttributeToFilter( 'created_at', array( 'from' => date( 'Y-m-d' ), 'to' => date( ...
0
votes
1answer
31 views

How do i get the value from addressInformation Magento 2

How do I get the example value which is the date. $billingAddress = $order->getBillingAddress(); $shippingAddress = $order->getShippingAddress(); these two don't have it But it saves in ...
0
votes
1answer
28 views

Magento 2 Order ID missing from both both quote and sales_order tables

A client's site has been running for three years with order IDs being consistent with sales_order table's entity_id. A month ago, three order IDs were skipped all on the same day but hasn't happened ...
0
votes
1answer
36 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 ...
0
votes
1answer
774 views

Sales order view custom tab and grid - Ajax problem

I have added a custom tab using xml layout updates to the order view in Magento. I have then added a custom grid to the new tab and enabled Ajax on the grid. I have set setUseAjax(true) and ...
0
votes
0answers
14 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
731 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
49 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?
1
vote
1answer
26 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
26 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
21 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
846 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
889 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
433 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
34 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
249 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
916 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
19 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.
1
vote
1answer
41 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
69 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
27 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
104 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
123 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
412 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
34 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
141 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....
2
votes
4answers
67 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
10k 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
55 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
151 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 ...
4
votes
0answers
22 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) ...
1
vote
1answer
49 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
15 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
62 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
25 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
111 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
14 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
19 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
647 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
3k 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', '...