The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [sales-order]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
26 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
20 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
0answers
10 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
2answers
44 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
29 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
18 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
20 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 ...
1
vote
1answer
25 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
0answers
22 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. ...
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.
1
vote
1answer
30 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.
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. ...
0
votes
1answer
37 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 ...
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
4answers
58 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 ...
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
21 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
47 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
52 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
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. ...
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)...
2
votes
2answers
68 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"&...
0
votes
0answers
29 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 ...
2
votes
1answer
43 views

How to add extra column in Item ordered tab in Magento2.3?

How to add an extra column in Item ordered tab in Magento 2? PFA Any ideas?
0
votes
0answers
33 views

Magento 2: Custom Conditions Rule in Custom Module Validation

I have created a custom module contain two sections: The first section contains title(text Field),icon(Uploader) and custom dropdown ,the second section contains conditions rule. In this module was ...
0
votes
2answers
57 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="...
0
votes
0answers
42 views

Magento 2.X : Add custom columns to sales_order_payment

I already inserted columns on table sales_order_payment with db_schema. I created new payment method with custom input field in Form payment template like this : <select id="paiement_echeance" ...
0
votes
0answers
17 views

Magento 2 help validate function to count bundle product child items of an order

I'm trying to write a function that takes an order object, and returns an array of sku => qty (key-value) showing how many of each sku was sold/shipped. The tricky part is, magento formats line items ...
0
votes
1answer
91 views

Magento 2.3: How to print order without invoice

It looks like in the admin, you're only able to print the order via the invoice or shipment -- but orders that are pending that were paid via PO or COD methods, there's no option to print the order. ...
0
votes
1answer
25 views

How to get all transaction_email ,transaction status from sql query Magento 2

I am trying to get all transactions,transactions_id,transaction_email,transaction status by SQL query. I found the table where all transactions are stored sales_payment_transaction, ...
0
votes
1answer
44 views

How to set Custom shipping Amount to an order programmatically magento 2.3

Hi all, actually i am creating an order programmatically now i trying to set custom shipping amount to order. @all i tried Magento1.X link there they have implemented using $order->...
1
vote
1answer
59 views

How to get discount amount for each item from order id / item id

How can I get the discount amount for each item in an order? using its order id/item id. I am not able to retrieve the discount amount from its order id/item id.
0
votes
1answer
39 views

Check if order line/item was backordered

I'm checking each order line. If the line was ordered, I have to do to something. If it was backordered, I will have to do something different. Like this: private function myFunction($order){ $...
0
votes
0answers
15 views

Change Shipping method in quote before magento validation occurs on admin order create

I am creating order from magento admin side but I want my custom method to be set in the quote before the order is submitted I have tried the following code. di.xml <preference for="Magento\...
0
votes
0answers
39 views

Magento 2 view order issue

We are using Magento 2.3.2 version.We are facing issue when we go to Sales --> Order and click on view orders the below error comes up. The error is not coming with pending orders but coming ...
0
votes
0answers
18 views

How to ReOrder automatically in period basis in Magento 2

Is there any way/possible to set to ReOrder the order automatically in period(Day, Weekly, Monthly or Yearly) basis. Please suggest me.
0
votes
2answers
19 views

How to add year in sales order and invoice number

I like to get current year in my order and invoice number. Now i'm getting order id example: "XX-000001" i need to get like "XX-190001" this (19) is current year that need to be change in dynamic. ...
0
votes
0answers
21 views

Getting error while changing status of an order Magento 1.9.4

While changing the status of an order or creating the shipment, I am getting below error: Cannot save shipment. I have checked the exception log and found the below message. exception '...
1
vote
3answers
83 views

Magento 2 - Change order status to 'Complete' using observer

I am using sales_order_save_after event to change order status. It's working fine for all order status except STATE_COMPLETE. when i set the order status STATE_COMPLETE to make order Complete but it ...
0
votes
0answers
36 views

Magento 1.9 order total as zero in sales orders reports

We have multiple websites with single store view and every websites have different currency, time zones. My default website set the AUD currency. I tried with generating the sales order reports based ...
0
votes
1answer
16 views

show product label on sale products

How to show product label sale only on products that are on sale?
0
votes
0answers
33 views

Add product point to quote, order and invoice magento 2

I have a voucher point custom attribute for each of my product. I need to keep track of this point across each quote_item, sales_order_item and sales_invoice_item (Meaning I need a voucher_pts ...
0
votes
0answers
14 views

M2.2.4 - Order comments in backend, make asc order instead of desc

We have some extensions that attach comments to the order comments area of an order, however we also have the customer comment order as well, which we would like to make the primary comment on the ...
3
votes
1answer
68 views

How to display custom checkout field value in Admin Sales Order?

I have creat a custom module that adds a custom field to checkout. It is the input text field. I save this value to quote table and to the sales_order table. But now I want to display this value in ...
0
votes
0answers
20 views

Item (Mage_Sales_Model_Order) with the same id “611” already exist (by change “company” in checkout)

I have to fix mistakes of a former colleague. The customer changes his address in the checkout, everything works fine until the moment he uses the field "company". The order goes through completely ...
1
vote
1answer
341 views

set discount amount while creating order progrmmatically in magento2

I am creating order pro-grammatically. I have referred below code https://www.rakeshjesadiya.com/how-to-create-order-programmatically-in-magento-2/ My requirement is to set discount amount for each ...
1
vote
1answer
48 views

REST API: get order entity_id from order increment_id

How to get order entity_id from order increment_id by REST API?