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.

2
votes
1answer
151 views

How to create duplicate new quote from old order quote Magento 1.7?

I want to create a new order programmatically by copying an existing order's quote. Here is what I have tried: <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); ...
0
votes
1answer
508 views

How can i add custom multi option Attribute in sales order grid like select warehouse and able to edit on the grid itself

I need to add custom multi selection option for admin purpose, like the ordered products currently available in which location warehouse. Its display like both inside of the order page and Sales->...
23
votes
4answers
14k views

Magento 2 - Create order using REST API

I need to use the Magento REST API to create an order from a mobile client. In my case, mobile side will implement the payment directly using PayPal SDK. What I need to do is to create an order by ...
9
votes
3answers
11k views

Magento Order Number Issue

I have got a strange issue with Order Number in Magento. Recently when one order was placed on my website the Order number came was 100000350,Ideally it should have been 100000370 as my previous ...
11
votes
1answer
9k views

Magento 2 How to create new order attribute programatically

I've been searching the web on how to create an order attribute (if thats whats called), essentially I just want a new database column to appear in the sales_order database, obviously I could create ...
6
votes
1answer
7k views

What's the best event/way to listen for all order state changes in Magento 2?

I want to observe every order state change and react depending on the old and new status. What is the best way to accomplish this in Magento 2? It looks like there is the event ...
3
votes
5answers
11k views

how to display product image in sales/order/view/ page

i am trying to customize sales order view page and i want show product image in order view page how can we achieve this. and the path of the file is vendor\magento\module-sales\view\frontend\...
3
votes
1answer
412 views

How to find missing orders in Magento

When I check the orders were placed on our site in the Magento admin panel, some of the order numbers are missing or we can say there's no sequence in order number. Example: Magento was at number ...
3
votes
1answer
1k views

How can i get Tracking Number on Sales order grid

I need tracking number on sales order grid,
7
votes
7answers
10k views

How do I add a customer's email to the sales invoice?

Essentially looking to add customer email to our customer's receipts (invoices) and sales order emails that are generated to dispatch/couriers as well etc. With a bit of searching I've established ...
2
votes
1answer
5k views

Adding custom sales order attribute to order grid

I have created a custom sales order attribute using the installer of my custom mage module like this: $installer = new Mage_Sales_Model_Mysql4_Setup; try { $installer->addAttribute('order', '...
1
vote
3answers
4k views

add new column with custom attribute in sales > order grid in Magento ver. 1.9.3.3

Magento ver. 1.9.3.3 I am trying to add columns with **custom product attribute **(like publisher which was created by me) in Admin > sales >order. Copied app/code/core/Mage/Adminhtml/Block/...
0
votes
2answers
5k views

Is it possible to update order item price and order total after order is place

Hi want to update order item price and grand total and order details after order is placed. suppose,I have place an order with item Item A - order item price $10 Item b - order item price $20 ...
9
votes
5answers
16k views

Magento 2: How to update order status programmatically in custom module?

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

Magento 1.9.2.0: table “sales_flat_order_grid” contains extra space in customer's name value

In admin panel, when I want to search the orders based on customers name, I have to add 2 spaces between the first name and last name. When I looked at the value in Inspect element window, I noticed ...
7
votes
2answers
6k views

Magento 2: How to override Adminhtml “Shipping & Handling Information” Information

I'm following https://ranasohel.me/2015/10/02/how-to-overwrite-sales-view-order-phtml-file-in-magento2/ I would like to override magento\vendor\magento\module-shipping\view\adminhtml\templates\order\...
4
votes
3answers
4k views

Magento 2 - sales_order_place_after not returning Order ID

I have created an event for sales_order_place_after event. This doesn't return Order Id. However, it returns Increment ID public function execute(Observer $observer) { $order = $...
3
votes
2answers
1k views

Sales : Orders :How to add custom order status programmatically

I need to add custom status for an order programatically I have below controller file to save order status. I need to add custom status as cancel initiated.Provide me a solution... Controller file ...
3
votes
1answer
7k views

Magento: add button on order view page with custom module

I want to add a button on the Order View page of the Admin. I created a custom module in app\code\community\CPT\TCS and added subfolders Block, controllers, etc, Helper, Model, sql This is my ...
1
vote
1answer
3k views

Magento 2 - sales_order_shipment_save_after

I need to call some API on ship item from magento but nothing is working. Following things I already tried: 1) Use event/observer: sales_order_shipment_save_after (As I thought It will work in ...
10
votes
2answers
17k views

How to overwrite core template files from a custom module?

I want to overwrite two files. Namely the view.phtml and print.phtml of sales orders. (path: app/design/frontend/base/default/template/sales/order/) I am creating a module in which I want to create a ...
3
votes
1answer
590 views

Magento2 Add Quote ID in Sales Order Grid

I am trying to display quote id of an order in the sales order grid. New field is getting displayed in the grid. However the value of the quote id is not getting populated in the grid against each ...
6
votes
2answers
432 views

Hide completed orders from sales/orders

In sales/orders is it possible to hide completed orders ? using something like filters. or can I filter the status column with more than one status ?
1
vote
2answers
2k views

Magento change Ship order status

In Magento order status ship button while clicking it automatically change complete. So i want to change some custom order status like shipment How to change it?
2
votes
1answer
1k views

Add Customer Group attribute to Sales Order

I have created a new attribute for Customer Groups called course_id but I need to get the value of this attribute to then become the value for a new attribute for a Sales Order. Any ideas how I could ...
2
votes
1answer
3k views

How to update sales_flat_order table status column by checking the payment method choose by the customer?

I created a new status on admin panel for orders. System -> order status -> create new status I created the status for cash on delivery payment option. While the order processing, how can i ...
2
votes
4answers
3k views

sales_order_place_after not triggering in magento 2

I have created etc/events.xml as: <?xml version="1.0"?> <!-- /** * Copyright © 2016 Magento. All rights reserved. * See COPYING.txt for license details. */ --> <config xmlns:xsi="...
0
votes
1answer
217 views

Order Details are not displaying in admin Panel of magento 1.9

The Order Menu Displays a Blank white screen. I can't see any order detail. please tell me suitable solution. Thanks.
0
votes
3answers
4k views

Magento add new Button on Sales order view

I want to add new Button on Sales order view page. I created below mention code observer file <?php class Ar_Orderstatus_Model_Observer { public function addOrderstatusAction($observer) ...
7
votes
3answers
5k views

Add More Mass action in Order grid in magento2

I want to create delete order functionality in magento2, but i am not able to add mass action in order grid. please help me how to create delete order functionality in magento2. Please help me if any ...
3
votes
5answers
10k views

Add content to Order View Magento 2

I'm trying to add content to Magento 2 Admin page; specifically the "Order and Account" section of the Information page in "Order View". I've done the following but my content is not rendering ...
3
votes
1answer
681 views

Tax values are displaying Differently in Order view page & Invoice view page

In System > Configuration > Sales > Tax > Orders, Invoices, Credit Memos Display Settings , if we set Display Full Tax Summary to Yes , than its Display Tax summary correctly in Invoice Page, but not ...
6
votes
2answers
690 views

How to capture creditcard payment using sales order REST API magento 2?

How to create sales order with payflow pro payment using REST api magento 2. Order placed successfully with sales order api but payment doesn't not set using order api. I want to pass test credit ...
5
votes
1answer
8k views

How to Get order increment id using order id in Magento 2

Can anyone please tell me How to Get order increment id using order id in Magento 2? Thanks.
4
votes
1answer
400 views

How to get invoice key

I'd like to use the Magento's print feature in my module to have the invoice pdf of a programmatically created order. For that I'd like to get the url that Magento back end uses to print the invoice. ...
4
votes
3answers
734 views

How to set order increment id iterator in magento 1?

Is there possible for magento 1 to increase order id each time plus 4. Ex. My current order is 10001 and when we placed next time order from store next id would be 10005, after another next time it ...
4
votes
3answers
2k views

Magento column grid default filter value

I want to have a default value in a column on sales grid, the value will be the actual day. $this->addColumn('created_at', array( 'header' => Mage::helper('sales')->__('Purchased On')...
4
votes
2answers
4k views

Not able to create shipment programmatically

Below is a snippet from my code. I get the following error when I try and create a shipment and track info for the order. Uncaught exception 'Mage_Core_Exception' with message 'Cannot create an empty ...
2
votes
1answer
3k views

How to get tax name

I can get tax amount by $order->getTaxAmount(); But how can I get tax name applied to order. I used this $taxClassId = $order->getTaxClassId(); $taxClassName = Mage::getModel('tax/class')-&...
2
votes
4answers
8k views

How to get invoice from order item

Is it possible to get the invoice from an order item? To be more specific: I'm iterating the order ItemsCollection and if the order-item has been invoiced $item->getStatusId() == ...
1
vote
2answers
3k views

Get Category Name, from which product was ordered

Currently my product belong to many Categories, I want to get Category Name, from which product was ordered.
1
vote
2answers
4k views

Magento2 - Copy quote fields to order fields

In Magento2, i want to copy the quote custo fields into order custom fields, i.e. say, i have created a manufacturer column in quote_item which needs to be copied into sales_order_item table, ...
0
votes
2answers
670 views

How to get custom customer attribute value in sales order grid?

I have made customer attribute 'sales_executive' which shows proper value in customer grid. Now i want to show the same value in sales order grid by adding column. How to add this column and get value ...
7
votes
4answers
10k views

Get Customer information from order Magento 2

I want to retrieve customer information from sales order view observer in adminhtml section, currently i only know how to retrieve order in that observer like this: namespace Namespace\Module\Block\...
6
votes
3answers
3k views

Magento2: frontend event is not working (sales_order_place_after)

I am catching sales_order_place_after event in etc/adminhtml/events.xml everything working fine.. But same is not working while trying to catch in etc/frontend/events.xml. also tried to catch the ...
4
votes
2answers
4k views

How to create quote and order programmatically in Magento2

I try to create an order programmatically in magento2 using this code snippet found on webkul.com this is the order that i want to create: $tempOrder=[      'currency_id'=> 'USD',      'email'=&...
4
votes
1answer
1k views

Magento 2 get shipped items in sales_order_shipment_save_after event

I want the items that are shipped in the "sales_order_shipment_save_after" event(Not all the ordered items,only the currently shipped items). How can I do it. Here is my code. This code gives shipment ...
3
votes
2answers
145 views

How can I add a Tab in sales_order, but not be selected by default?

I use the code below to add after order_info tab, but I want when I display the order details the active tab to be order_info. <referenceBlock name="sales_order_tabs"> <action method="...
3
votes
1answer
5k views

Magento 2 - Save additional data to order

I am trying to build an extension that will check if a specific cookie exists at the time an order is being placed. If the cookie does exist, I would like to save its value to the order in the ...
3
votes
1answer
822 views

Hide or remove column from sales order grid

I want to hide or remove Purchase Point column from sales order grid in backend using custom module, how do i do this?