Questions tagged [sales-order]

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

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

How to export the specific products bought in each individual order?

It is easy to export the basic sales order data; however i want to export the exact products bought in each individual order, and relate it with who made that order. How can i do this? Is there any ...
0
votes
0answers
8 views

Copy order sales grid and modify the underlying collection?

Magento 1.7.0.2 I want to create a copy of the order grid, the underlying collection should be modified without breaking the functionality of the original order grid. I created a new button on the ...
0
votes
0answers
16 views

Get order ID in custom module's email's subject

I've a custom module which sends an Pre-order confirmation email to customer before order confirmation email sent to customer. Once admin reviewed order then only order confirmation triggered. I ...
0
votes
1answer
15 views

Attention: Something went wrong, Error when applying filter

I added an attribute in sales_order, and display it as a column in sales_order_grid, all is set but when I try to apply filter on my custom column it gives me an error with a pop-up like: Attention: ...
1
vote
0answers
21 views

Magento 2 Is there a way to use Cyber Source Fraud Detection for Braintree Payments instead of Kount?

We are using Braintree Payment Gateway and the Kount is out of the box feature of Braintree for Fraud Prevention and Detection. For some reason, we want to move out of Kount and use CyberSource Fraud ...
0
votes
0answers
17 views

Magento 2 Apply Custom Discount to the Quote Programmatically

I want to add custom discount to the quote programmatically but the total not updated and when place the order the discount is not affected. $cartId = 199; $quote = $this->...
0
votes
1answer
26 views

How to add column in sales_order_grid also want to get that attribute from sales_order collection?

I want to a column in sales_order_grid I successfully did that but I also want to get my custom attribute from sales_order collection because I want to set value on some action, my problem is a can't ...
0
votes
0answers
40 views

Exception “Rate was empty inside quote validate method” during reorder

Magento version 1.9.3.8. PHP 7.1.22 I'm trying to create Reorder programmatically. But for some orders I've got exceptions: 2019-11-05T09:16:33+00:00 ERR (3): Exception: Rate was empty inside ...
0
votes
0answers
27 views

Problem saving magento order 1.9.4.3

I have a problem with the order creation on Magento via direct PHP I use Magento version 1.9.4.3 This is the code I made: <?php require_once '../../app/Mage.php'; Mage::app()->...
0
votes
0answers
32 views

Magento Order Status, Order total section not shwoing up on admin order view?

Magento Order Status, Order total section not shwoing up on admin order view page!! Order total Heading title showing but, Order total description not display. Please see Attached below is the ...
0
votes
4answers
56 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 = \...
0
votes
1answer
61 views
+50

Magneto 2 - Email has a wrong format

I recently upgraded from 2.2.3 to 2.2.8 then to 2.3 and onto 2.3.3 and I've come across a strange error. When an order is being created, I get the following error: Failed address validation: Email ...
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
25 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
13 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
47 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
30 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
21 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
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
0answers
28 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
18 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
36 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
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. ...
0
votes
1answer
43 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
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
4answers
62 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
54 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
48 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
59 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
24 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
132 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
78 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
1answer
57 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
66 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
59 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
47 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
20 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
122 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
26 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
73 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
74 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
46 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
18 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
44 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 ...