Questions tagged [sales-order]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

magento , sales order save after how correctly update order data

How correctly update status for order? i have this code, but it's not working for me public function salesOrderSaveAfter($event){ //check for fires twice if(!Mage::registry('...
0
votes
0answers
9 views

Salse order not open adminside in magento 1.9?

Guy's, The Salse order view page can't show on the admin side. I have installed the security patch 10975, 11155, 11219. then i will check my admin side so i can not see order view page. - https://...
1
vote
2answers
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/...
0
votes
0answers
11 views

How to unset tax for backend order in magento 2.3.2?

I want unset tax rate for backend order while create new order from admin in magento 2.3.2 i have successfully unset tax rate for frontend order using plugin on mapItems method. could you ...
0
votes
0answers
21 views

Add Expected delivery date in order

I need to add expected delivery date on each order.Currently there is no any module or plugin to show estimated delivery date.It needs to customer to know when our product will be arrive.
0
votes
1answer
2k views

How to add column in admin sales order grid magento 2

I want to add SKU column, customer first name and last name in admin sales order grid. Please guide me how can I achieve this?
2
votes
2answers
1k views

Magento 2 How can I remove tabs in order view?

It is able to remove the block by using But how can I remove the tab which is added by using argument? Thanks. <block class="Magento\Sales\Block\Adminhtml\Order\View\Tab\Creditmemos" name="...
0
votes
0answers
19 views

Magento 2 Get Returned Items in an Event

I am trying to get the returned items of an order during sales_order_save_after event. But this event has not been triggered while creating returns for an order. Is there an event or way to get the ...
0
votes
1answer
59 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
1answer
389 views

Information Changes have been made to this section that have not been saved. This tab contains invalid data. Please resolve this before saving

I am getting below error on order view page in magento 2, what is the reason for this error. Information Changes have been made to this section that have not been saved. This tab contains invalid ...
0
votes
0answers
20 views

Order confirmation mail not sending in magento 2.3.2

I have set Under Mail Sending Settings make sure Disable Email Communications is set to No. Also verify your Host and Port fields if you are using any external mailing server. Got to Stores -> ...
1
vote
2answers
609 views

Get all the details of sales order via order id in my controller?

I want to get all the details of a sale order in my controller and then update the status of that order. Plus how can I pass order ID in URL string and then get it as Magento 1.9 doesn't allow $_GET[]...
2
votes
1answer
890 views

Get an order's products in /sales/order/history.phtml

In Magento 1.9, the "dashboard" and "order history" pages contain table of orders with summary info (date, order #, total) but not some helpful details (product image, product name, line price, ...
0
votes
0answers
9 views

Magento 2 how to add new payment method for admin orders?

I want to create new payment method just for admin. My aim is when I can place order through admin area I want to show a new payment method which lets me to type a text. Example if you click ...
0
votes
2answers
39 views

Magento2: How can I modify custom order number?

I want to modify order number 000000001 to 202000001. Please help me in this.
0
votes
1answer
808 views

How to add custom data in order payment extension attribute rest api in magento2

I want to add custom data in order payment extension attribute like below :- "payment": { "account_status": null, "additional_information": [ "...
1
vote
1answer
2k views

Please specify product's required option(s) magento 2

I am adding product into my cart through productid and qty but when i load into cart it's displaying this message. Please specify product's required option(s). <?php namespace Racom\Chatbotapi\...
0
votes
1answer
663 views

Magento 2 Get simple product image URL instead of parent image

the below code getting parent configurable parent image even if simple, So how to get the simple url also? $_item = $block->getItem(); $objectManager = \Magento\Framework\App\ObjectManager::...
0
votes
1answer
25 views

Invoice VAT - Non VAT

Placed an order with an incorrect VAT number, which then allowed me to submit my order as a Non-Vat customer. Is there any way to now change that order to a VAT customer and submit a new invoice ...
0
votes
1answer
24 views

Get correct configurable product image on my order page

i am want to show correct product image on my order details page: I am using it as: $_item = $block->getItem(); $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $_product = ...
0
votes
2answers
52 views

Magento 1.9 - How to get Order Comments History?

My code : <?php require_once('app/Mage.php'); umask(0); Mage::app(); // try{ $orders = Mage::getModel('sales/order')->load('10'); foreach ($orders as $order) { $orderComments = $order-&...
2
votes
1answer
47 views

Magento 2 - Is it possible update payment method of order programmatically?

Is there a way to update payment method of order in magento 2 via dependency Injector or Object factory without using raw sql query?
0
votes
1answer
26 views

How to export orders by date via SQL?

I'm using a Magento 2.3 instance, how could I export my orders in a CSV file by date range via SQL? I want to have the shippingId, orderId and paymentId included in it.
2
votes
4answers
4k views

Consumer is not authorized to access %resources Magento_Sales::sales

I have this basic API script: <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(-1); $usr = [ 'username' => 'username', '...
0
votes
0answers
6 views

Distribution of order discount does not take conditions of discount into equation

Everything I have read indicates the formulat for distributing the cart discount among the items of the order is: To calculate the discount amount for each item, Magento uses the following equation: $...
0
votes
1answer
631 views

Show only Specific Order Status by user in magento 2

I need to show only pending order by users I follow this link They used sales_order_grid_collection_load_before in magento 1, what exact event in magento 2 and How to Collect only pending Orders ...
4
votes
1answer
874 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 ...
1
vote
0answers
18 views

Magento 2 get order qty items is null

I'm trying to get the total weight of the items in checkout_submit_all_after With this code: $orderItems = $order->getAllItems(); $weight = 0.0; $length = 0.0; $width =...
0
votes
0answers
27 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
0answers
8 views

Order got placed but no warehouse selected

Some orders in Magento 2.0, do not shows any Warehouse name in Warehouse/Vendor column, however orders got successfully placed. This is happening from when we upgraded to Magento 2.0
1
vote
1answer
2k views

I need to add custom Order Item attribute and Quote Item attribute

I need to add custom order item attribute and quote item attribute at when product add to cart. Attribute value store in quote item table but not in order item table. config.xml <?xml version="1....
4
votes
1answer
2k views

Magento - Show custom data on Order Information page (Customer Account)

I need to display points earned by customer on Order Information page under customer account. module.xml <sales_order_view> <reference name="order_items"> <action method="...
0
votes
0answers
17 views

Magento 2 add customer custom attribute into sales order api

I am using Magento 2.3.2 I have created one custom attribute for a customer using the setup file. After that I was able to add that attribute into customer rest API same attribute I want to add in to ...
0
votes
2answers
2k views

Magento 2 : How to Customise Admin Sales Order Grid Collection

I am trying to customise admin sale order grid collection. I have created an custom sale_order attribute store_manager. These store managers are admin users eg: 'manager1', 'manager2'. 1) Orders are ...
0
votes
2answers
407 views

Magento2 Reorder using REST Api

Can anyone let me know if we can Reorder in Magento2 using REST webapi? Actually i have made one api and used same code as magento default reorder does, here is my code in API function using order_id ...
1
vote
0answers
97 views

Magento 2 Particular order assign to sub-admin [closed]

Right now I am working with Magento 2 package, there has one out-of-scope Magento task. => Requirement: Customer Place order Admin create sub-admins The super-admin assign the order to sub-admin( ...
1
vote
1answer
1k views

set discount amount while creating order progrmmatically in magento2

I am creating order pro-grammatically. I have referred below code https://www.rakeshjesadiya.com/how-to-create-order-programmatically-in-magento-2/ My requirement is to set discount amount for each ...
1
vote
1answer
24 views

How does one get the order prefix programmatically?

We use separate order prefixes for our production and lower environments. For each environment we run a sequel statement to update so each environment is unique. update `sales_sequence_profile` set ...
0
votes
5answers
921 views

Magento 2.3: Add Attachment with email (Magento 2.3 use zendframework 2)

I am working on a module in which I need to attach an attachment with sales email. However, Magento 2.3 use zendframework2 so email attachment is not the same as zendframework1 (in Magento 2.2). Can ...
0
votes
0answers
4 views

Get selected customer on admin order creation

I like to get selected customer in the admin order creation page, in my custom module block In my block module i tried this: namespace Vendor\Module\Block\Adminhtml\Order\View; use Magento\...
0
votes
0answers
16 views

Print order for guest customers in Magento2

I am looking for the code how can we print order for the guest customers. I have print order url like below, yoursite.com/sales/order/print/order_id/25/ This will print if the customer is logged in,...
0
votes
1answer
10 views

Magento 2 order is shipped twice on sales_order_save_commit_after event

I'm trying to ship an order automatically everytime an order is placed, just with event sales_order_save_commit_after works, I tried sales_order_place_after and it throws me the error of "No such ...
4
votes
1answer
300 views

How to use store credit for a cart in magento 2 api

Magento version: EE 2.2.5 I have a customer with store credit. I created cart using rest/default/V1/customers/:customerId/carts And I added items to that cart using rest/default/V1/carts/:cartId/...
1
vote
1answer
27 views

Magento 1: Add Customer Group in Order Grid

I want to add a column in Sales > Order Grid for "Customer Group" after the "Ship to name" column. I know i need to modify app/code/core/Mage/Adminhtml/Block/Sales/Order/Grid.php Could someone ...
1
vote
2answers
845 views

How to add prefix in order code in magento by payment methods

I need to add prefix in order number in magento. Like If Order is Cash On Delivery Based then order no should to be like... cod12332434343.... if order is prepaid..then it should be pre12323233223 .......
1
vote
1answer
95 views

Where is the original price set in sales order item table?

In quote_item table we don't have a column original_price. So when and how sales_order_item table get the original_price value. Post order we are seeing original_price as 0 in admin sales order view ...
0
votes
1answer
655 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
2answers
1k views

How to create custom grid like sales order in magento2?

How to create custom grid like sales order gird with new,edit,save,delete,status,massdelete..etc in magento2.?
0
votes
1answer
918 views

Magento 1.9 Order Rest API Order Data

Using magento rest API i can see the data of product, category etc using https://magentohost/api/rest/products, Here is can see list of products but when i access https://magentohost/api/rest/orders ...
0
votes
1answer
2k views

Extending Order Email template in Magento 2

I am trying to extend the Order Confirmation Email Template to add the custom attribute. When I am trying to add code to core class it's printing the value in the email template. When enabling to my ...