Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sales-order]

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

7
votes
0answers
119 views

Replicate order summary block Magento 2

I want to add order summary at checkout success page, I want to replicate the existing order summary block and template file whether its from backend or frontend. Which block and template file to ...
5
votes
0answers
575 views

customers cancel return products in my account page- Magento 2

My requirement is adding cancel and return option in customer account page. add cancel option after place order. add return option after delivered. I am wondering it is a very essential option but ...
4
votes
0answers
135 views

Magento 2.1.5 - Sales Order reports show missing data

I am having 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 displays same dates order Magento: 2.1.5 ...
3
votes
0answers
28 views

How to hold an order right after the payment was received

We have orders that have to be approved by another party after ordering and receiving the payment. So I want to set it onHold after payment and unHold it via an API call I have to implement as well. ...
3
votes
0answers
285 views

Order duplication on magento2

On March 22nd, 2018 we went for a Sale on our Magento 2.1.5 live site deployed on an AWS server m4.4xlarge. On 12am sale started with 1500 online visitors and in the next 3 peak hours, there are some ...
3
votes
0answers
443 views

Add custom attribute to sales order address

I have a custom attribute for customer address which I setup using EAV, I load the custom attribute for customer address using order like this: // Magento\Customer\Api\AddressRepositoryInterface $...
3
votes
0answers
265 views

Random integrity constraint errors saving orders in Magento 2.1 after payment

I have a system that generates quotes, then submits the quotes, which processes a payment. The system is pretty standard: nothing really complicated is going on. The quotes have a single product in ...
3
votes
0answers
279 views

Company Column on Sales Grids (Order, Invoice, Shipment, Credit Memo)

This is a continuation from my previous question: Billing and Shipping Company Column on Sales Order Grid I was able to place the Ship-to and Bill-to Company Columns on the 4 Sales Grids, but I am ...
3
votes
0answers
176 views

Prevent place order using observer in magento 2

Hi I'm trying to prevent placing order with the help of observer i have already trigger the event "sales_order_place_before" with this i got all the details of the order like products in cart ,...
3
votes
0answers
342 views

Custom Option type file data not showing in Sales/Order Admin

I created a simple product with custom option type file like this : when i try to order this product at front end, there is input type file and i insert the file and click add to cart button, and ...
3
votes
0answers
348 views

Join sales/order and ordered items in grid column render Magento 2

I created a custom column in sales/order grid named Product name, They are coming fine on first time, When I am doing sorting Found : Column not found: 1054 Unknown column 'product_name' in 'order ...
3
votes
0answers
730 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 ...
3
votes
0answers
868 views

Checkout Order Total summary went on refresh of checkout page Magento 2.0

I have rearrange the checkout summary block after the cart items and whenever i tried to refresh the page or i add a new address or switch between multiple addresses Order Total Summary block removed ...
3
votes
0answers
422 views

Shopping cart price rule not applying when creating order by REST Api

I'm working with Magento CE 1.7.0.2. I create order by sending REST Api request (working fine) but when I'm adding coupon code to my XML (or JSON) request, the discount is not applying and the amounts ...
3
votes
0answers
602 views

Custom Options of Configurable product do not display in email

I have an extension that do not offer any support so i am trying to fix by my own. So far what i did is locate the file that is responsible to render the custom options as this is my issue, it is ...
2
votes
0answers
16 views

$order->getCustomerName() returned ?? for unicode customer name

Under Magento EE 1.14, I have unicode characters in the customer name, the following code does return correct name in unicode for the first time: $order = Mage::getSingleton("sales/order")->...
2
votes
0answers
31 views

Getting an error: No such entity with cartId = 17090. How to resolve it

Magento give me this error when I create order using the backend. When creting the order with frontend, it works fine. I am using multi-website functionality in my project. I have creted custom quote ...
2
votes
0answers
105 views

How can I display product attribute in order summary in Magento2?

I am trying to display weight of the products in the order summary like I have shown in the below screenshot. Anyone who knows help me out.
2
votes
0answers
57 views

Create order programatically without billing and shipping address

I have a couple of virtual products in my Magento 2 website, i'd like to create the order programatically without inputing shipping and billing address, is that even possible?
2
votes
0answers
301 views

Magento 2: Sales Order report show wrong data

Orders Report gives wrong results when compared with the actual orders. For example, in Dec 22,2017, there are total 5 orders having "complete" status. But when I view orders report after applying ...
2
votes
0answers
528 views

Magento 2 Rest API get Quote Item Custom Option values

Hi I have tried with the magento 2 rest apis 1) V1/orders/:order-id 2) V1/orders/items with serach filter order id 3) /V1/carts/:quoteid/items The above apis are not returning the Order item ...
2
votes
0answers
619 views

magento 2 override Magento\Sales\Model\Order.php get method for REST api

magento 2 override Magento\Sales\Model\Order.php get method for REST api to add some details. i am getting an error in di compile Fatal Error: 'Uncaught TypeError: Argument 1 passed to Custom\\Sales\...
2
votes
0answers
165 views

Using numeric only increment_id for orders? READ THIS! Magento 1

There's a bug in MySQL which disabled searching by index if two columns are compared which are of a different type. Magento stores increment_id as VARCHAR in sales_flat_order but Magento does not cast ...
2
votes
0answers
330 views

How, where and when does Magento 2 save customer Tax/Vat number to the order?

I can not understand why the customer_taxvat field in sales_order table is empty for customers who have Tax/VAT number. Please advice
2
votes
0answers
24 views

Redirecting admin user before creating an order in adminpanel issue M1

I have a custom condition for customers . If that condition is satisfied I would like make a redirect with a message that 'the order cannot be created'. I used the sales_order_place_before event to ...
2
votes
0answers
457 views

Magento2 - Create A Custom Report Displaying Order Items

I'm trying to create a report that displays all order items along with some additional columns displaying things like customer name, customer billing address, order ID, payment method, etc. Can ...
2
votes
0answers
122 views

How add image to sales_order_grid in magento 2

I need to add custom image into sales_order_grid for each order. when checkout, I need to get custom image and stored to sales_order_grid for each order. I know add custom column to sales_order_grid ...
2
votes
0answers
105 views

Sales order collection error

I want to add custom product attribute to sales order grid, and here is my code below, $collection = Mage::getResourceModel($this->_getCollectionClass()) $vendor1_total = Mage::getResourceModel('...
2
votes
0answers
483 views

Magento2 SOMETIME The order confirmation email is not sent

When an order is placed and payed, usually all emails are sent (confirmation to the customer and bcc to addresses specified in configuration.. 'Send Order Email Copy To' ) but I have two cases in wich ...
2
votes
0answers
177 views

Cash on delivery instruction field not showing in order details and order transactional emails

I've typed in some text into instructions field of cash on delivery payment method. The issue is that the content of this text area is not showing in order details, on the payment information section. ...
2
votes
0answers
182 views

Getting error while placing order in Magento 2

I'm getting intermittent error while placing order. I'm trying to add a Configurable product along with bundle product and a simple product. While adding the above same product around 10 times and ...
2
votes
0answers
503 views

how to save the custom time in order comment history in magento 2?

$orderId = $orderId; $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $order = $objectManager->create('\Magento\Sales\Model\Order')->load($orderId); $order->setState(\...
2
votes
0answers
678 views

Magento how to create partial invoice programmatically

With the ref https://stackoverflow.com/questions/20799498/magento-create-partial-invoice-programmatically I have tried but it's occurred only for shipping cost or single sku of multiple sku. I want to ...
2
votes
0answers
259 views

Magento 2 : Sales Order Report Adding Text Field

How do I add custom text field under sales -> orders -> filters? If you look under filters there is a field called "Ship to name" you can type query here. But instead, I wanted a field called "...
2
votes
0answers
150 views

How can I split order based on the vendor?

I want to split the order based on the vendor selling the item. I have created a custom attribute sold_by in the the product details page. The order should be split on the basis of the said attribute....
2
votes
0answers
202 views

How to add parent_item_id to Magento Soap API response?

I need to pull the parent_item_id for order items when calling salesOrderInfo() in soap. I made below changes to wsdl.xml and wsi.xml under salesOrderItemEntity in Mage/Sales/etc/. Wsdl.xml <...
2
votes
0answers
121 views

Changing the selected order status in the order comments section

When commenting on an order, you can also change the order status at the same time. For some orders, the drop-down does not have the current order status selected by default, so it's easy(due to ...
2
votes
0answers
347 views

Magento 2 Customer Attribute in REST Order API

I have added a new custom attribute for order in sales_order table. It contains a value for the order. I have added extension_attributes.xml <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-...
2
votes
0answers
160 views

Sell products by weight (kgs) in magento 1.9

I want to create a custom module in magento from where we can select product to be ordered based on weight (kgs.) not units. For e.g If I want to sell apples, we will sell based on kgs. not units.
2
votes
0answers
150 views

Dashboard last 5 order details missing

My store was working fine earlier today, but I don't know why and how my dashboard just stopped showing the details of last 5 orders now.Here it is http://s32.postimg.org/7i1hvcmgl/dash.jpg
1
vote
0answers
17 views

Magento2.3 SetTemplate is not working first time ajax

I would like to add additional some field info in sales_order_create_index.xml I used setTemplate: <referenceBlock name="data"> <action method="setTemplate"> <...
1
vote
0answers
27 views

How to get additional_information on sales/order

This is my code. I would like to get additional_information on API. I'm using getPayment, on this way, I believe that I can define this function there. I don´t know, just looking for some help or ...
1
vote
0answers
20 views

Magento 1.9 set custom field/attribute when order is set to complete

When order change status from "x" to "complete" I need save when order was completed. I am trying to achieve this with sales_order_save_commit_after event. Problem is that I can't save order when the ...
1
vote
0answers
10 views

Magento2 Invoice and delivery the same checked by default

I can't figure out how to check the "Invoice and delivery address are the same" checkbox by default. Is this a setting that I'm missing or is this something which should be handled from within a theme?...
1
vote
0answers
37 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) ...
1
vote
0answers
45 views

Sales orders not showing for new Admin user in magento2

I have created new User here System -> Permission Assigned User Role as Administrator But when logged in with the new user which i created now, I can't see the orders for the newly created admin ...
1
vote
0answers
43 views

cancel an order customer did not receive an email

I like to send an email to customer if admin cancel an order. Please help to solve the solution. Thank you.
1
vote
0answers
46 views

Magento 2.2.5 Override sales order item block not working

We are working on Magento 2.2.5, override the \Magento\Sales\Block\Order\Items class method _prepareLayout but it is not working showing error. File : etc\module.xml <?xml version="1.0" ?> <...
1
vote
0answers
34 views

Missing Rows In Sales Order Grid

I have an interesting issue. Admin sales order grid does not show all records in sales_order_grid table. I tried several solutions. For example, I activated async grid generation on admin panel, ...
1
vote
0answers
54 views

Magento 2 admin panel throw error

Order saving error: Public hash should be defined I am go to magento 2 admin panel and sales and go throw places order this error is coming how to slove it?