Questions tagged [sales-order]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
27 views

Magento 2 How to get simple product name of a configurable product in sales_order_item table

Using the SKU as a guide (sales_order_item.sku), how can I get the simple product name of the configurable product? This code gets the configurable product name (should be simple) public function ...
0
votes
0answers
18 views

Magento 1.9 Sales Order grand total showing value 0

Magento 1.9 Sales Order grand total showing value 0 Does my table affect?
0
votes
3answers
41 views

Convert M1 code to M2 code

Here this is the Magento 1 code would like to convert to M2 code. $customerId = 1; $orderCollection = Mage::getResourceModel('sales/order_collection') ->addFieldToSelect('*') ->...
0
votes
1answer
30 views

Update item custom quantity and salable quantity value after place order in Magento 2

I need to decrease purchased item saleable quantity with custom value (x* ordered_qty) after place order in Magento 2.Right now I'm using the following observer and class to update the quantity of ...
1
vote
0answers
11 views

Magento 2 Order print showing href links with content!

I have social links in footer in the website, and configured url in admin configuration for social icons. But when I am printing order PDF from customer account order view page then all links on the ...
0
votes
1answer
11 views

Magento 2.2.10 change cancelled order to pending

Is it possible to put orders which been clicked in cancel from admin and do a check if the check fails keep it as pending
1
vote
1answer
40 views

Custom field in checkout saved in quote_address and sales_order_address not shown in order summary

I have added a custom field to shipping and billing data in the checkout form. It's value is correctly stored in an extra column in tables quote_address and sales_order_address. Now the goal is to ...
1
vote
1answer
30 views

Magento 2 Admin sales/order_create/index/ - there is header and footer loading

Developer, Magento 2.3 Click Create New Order then redirect to sales/order_create/index/ - there are header and footer loading Looking for the help
0
votes
1answer
19 views

Magento 1.7 : How to use sales_order_payment_capture event?

In Magento 1.7, I want to do like after credit memo create product quantity should be deduct. How to do that? Any help would be appreciated. Thanks.
1
vote
0answers
28 views

Plugin for after add product in admin order creation for Magento 2.3

When adding products to a new order in the admin is there a function I can hook into for a Plugin for when the product is added to the order? For certain products, I need to do additional logic to ...
0
votes
0answers
8 views

Magento 2 how to get all the orders with pending as status and manually update the status to cancel

Magento 2.2.10 that’s the version I am using. Is it possible to get all the orders where the status is pending and manually update the order to cancel if that’s possible
1
vote
2answers
32 views

Add column to order grid get error in customer page

I tried to add 2 new columns (shipping's company and billing's company) to orders page using a plugin, but i got an error when trying to view customer's orders in customer page. This is my plugin ...
0
votes
0answers
24 views

The store that was requested wasn't found. Verify the store and try again in orders grid Magento 2

When I navigating to Admin dashboard -> Sales -> Orders. I am having this issue "The store that was requested wasn't found. Verify the store and try again." I cannot able to see my orders list, I can ...
2
votes
2answers
84 views

Magento 2 How to override sales.order.items.renderers block in sales_order_view page?

I am trying to override sales_order_view.xml file sales.order.items.renderers block, I have followed below mentioned code but not worked: overriding sales_order_view.xml in custom module : Method 1 :...
0
votes
0answers
13 views

Product thumbnail and color attributes in sales order rest api

I am using sales order rest api /V1/orders/ I am getting a response in postman but I want the product item image and color attributes also in response. How can i do this. any help?
2
votes
0answers
26 views

Magento 2 show custom table data on the admin order detail tab

I am building a custom module to store multiple rows of custom data while user placing the order. Following fields are in my custom table, “entity_id”, “order_id”, “sku”, “some_customvalue”, “...
0
votes
2answers
41 views

Add custom row to Order View on Frontend Magento 2

I have my own custom discount, and on checkout I can use it. When I place the order, I see that grand total is changed, but me need to show discount. I want to paste it between subtotal and shipping.
0
votes
1answer
23 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
9 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
19 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
20 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
26 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
19 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
42 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
35 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
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 = \...
2
votes
2answers
217 views

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
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
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
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?
0
votes
1answer
38 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
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 ...
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
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. ...
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.
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
71 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
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 ...
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
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
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 ...