We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [sales-order]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
15 views

Scheduled Grid Updates

Recently I studied the Magento user guide. I have seen Scheduled Grid Updates from the following link. http://docs.magento.com/m2/ce/user_guide/sales/order-grid-updates-schedule.html But I ...
1
vote
2answers
1k views

Magento 1.9 : sales_flat_order and sales_flat_order_grid tables are not updating

I used many update methods for update values in sales_flat_order and sales_flat_order_grid tables, but no method didn't work. I don't know why the update is not done. Method 1:- $coreResource = ...
3
votes
1answer
792 views

sorting not working magento 2

I created a custom column "product_name" in sales/order grid, When I am sorting this column grid showing error: Item (Magento\Framework\View\Element\UiComponent\DataProvider\Document) with ...
0
votes
2answers
28 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
1answer
613 views

Magento 2, extending sales module's Model, getting error Required type: \Magento\Framework\ObjectManagerInterface

I'm trying to override \Magento\Sales\Model\AdminOrder\Create, during the compilation I'm getting below, but I'm not making any changes, simply extending it! Incompatible argument type: Required type:...
0
votes
1answer
159 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
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
1answer
646 views

How to add a custom block on sales order's create page inside admin panel?

I want to add a custom block on sales order's create page under admin section. Here is my code: <adminhtml_sales_order_create_index> <reference name="sidebar"> <block ...
4
votes
1answer
725 views

Magento-2 : How to display custom field just after payment method list and save on place order

I want to display one text area, just after payment method list, on checkout page. Text area value should be saved on place order. Saved value also need to be displayed in Admin >> sales >> order >> ...
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
1answer
16 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: ...
0
votes
0answers
17 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 ...
1
vote
0answers
23 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
0answers
41 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
29 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
3answers
727 views

Billing name order in billing_name column in sales_flat_order_grid table

Can someone please tell me when a record is pushed into the "sales_flat_order_grid" table? How can I switch first name and last name in "billing_name" column of this table?
1
vote
1answer
1k views

Magento 2 An error occurred on the server. Please try to place the order again

I know my question are like this But in my case when I check errors I see this Magento\Customer\Model\Customer\Interceptor::_getResource","trace":"#0 /backup/html/toph/vendor/magento/framework/...
1
vote
1answer
703 views

Get order id after Paypal Express Checkout

I want an order Id (not Increment Id) and quote after redirecting back from PayPal to my store. For this purpose I am using sales_order_place_after event. But this event does not return order Id ...
0
votes
1answer
61 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
58 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
544 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
795 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
26 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
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
770 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
1answer
936 views

Magento 2 Add Column To Sales Order Grid Issue

I am facing layout issue when I added new column in sales order Grid. For some reason filter and options are displaying below grid. Please Refer Screenshot My Code How I added the column. etc/...
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
1answer
730 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
48 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
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 ...
0
votes
1answer
842 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
884 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
422 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
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. ...
2
votes
2answers
168 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
908 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
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.
0
votes
1answer
50 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
84 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
121 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
400 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 =...