Questions tagged [sales-order]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

Magento 2 - How to create custom order email template for admin and customer?

I want to create a email template for admin and customer and i want to attach a dynamic image in that. I know there is a option in config but it is too confusing and it does not provide variables ...
0
votes
0answers
22 views

Magento 2.3.2 - Last 5 orders on Dashboard showing empty on total column after migrating database from osCommerce

I am facing issues on the dashboard at the Last Orders section, as the total column is showing empty. The same code is running on my local server without any issue, but not working on the live server ...
0
votes
2answers
30 views

Magento 1.9- Order not placed using SagePay

I am getting an error while try to place order using Sagepay payment method. When I click Order Place button, an alert message is showing. Like: Can't load serializer adapter "Phpserialize".
0
votes
0answers
20 views

Getting error after backend user role assigned to Sales order in Magento 2.3.2

I am facing error in sales order view screen after backend user role assign -> sales I have disallowed only Sales shipment for user role. Something went wrong with processing the default view and ...
0
votes
0answers
21 views

Magento 2 error with order view page, customers and orders data displayed crypted

I get the following error while going to the order view page on my local magento installation: Order View Information Changes have been made to this section that have not been saved. This tab ...
0
votes
0answers
14 views

SagePay transaction(s) have no order associated

In my magento2.3.3 when customer pay with sagpay payment, Order Id is not generating it's with "error" and i can't able to see in sales->order page in backend.
0
votes
1answer
16 views

Random products added to order after checkout

As stated in the title, after completing checkout on a test order and checking the order within the admin panel, the test order has random products added to it. What really confuses me is that the ...
0
votes
0answers
19 views

magento , how to correctly change order status to CLOSED

i try to change order status to CLOSED, but code which I use does not work for me i have this code $model = Mage::getModel("inventorylog/inventorylog")->load($id); $order = Mage::...
1
vote
1answer
18 views

Magento 2.3.0: Error when trying to generate shipment more than 3 products

When trying to make shipment of order having more than 3 products then it showing below error - Anybody face this type of issue , please suggest.
0
votes
0answers
9 views

Confirm order once customer pays via paypal

I have a question related about Magento 1.Like below "As there should be no need to confirm order once customer pays via paypal or sage, after payment page, customer should directly see order success ...
0
votes
0answers
27 views

Magento2 Order Date is Wrong in Admin Grid

We created an order in magento2 with API calls. It is working fine as expected . We have created_at field date as 23-01-2020 12:12:12 in database where as in admin magento2 order grid it is ...
0
votes
0answers
21 views

How can i get customer order using customer token?

In Magento2 we have rest api to get customer orders.[Route: "/rest/V1/orders"]. It can used only by admin token. I want to get customer purchased order list using customer token. I couldn't find any ...
0
votes
0answers
17 views

How add the removed item to the order again?

I need to remove products from the order, after which, removed products can be added to the order $backOrdersIds = array(); $this->getQuote()->getItemsCount(); foreach (...
0
votes
0answers
15 views

How to remove the product from the order?

I'm trying to remove a product from an order, but my code is not working $backOrdersIds = array(); foreach ($this->getQuote()->getAllVisibleItems() as $item) { $oldQty = (...
0
votes
1answer
21 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
10 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://...
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
24 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
0answers
23 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
0answers
29 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 -> ...
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
49 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
28 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 = ...
2
votes
1answer
54 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
2answers
73 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-&...
0
votes
1answer
30 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.
0
votes
0answers
8 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: $...
1
vote
0answers
19 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
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
0
votes
0answers
19 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
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
1answer
15 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 ...
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,...
1
vote
1answer
40 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 ...
2
votes
1answer
54 views

How can I get order details of specific product in Magento 2.x?

I want the detail of orders for a specific product and get the customers detail that which customer had purchased that specified product. How can I know that in Magento 2? For example: I am having ...
1
vote
1answer
25 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 ...
1
vote
0answers
40 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
27 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?
1
vote
3answers
53 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('*') ->...
1
vote
2answers
87 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
15 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
20 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
52 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
63 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
33 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
31 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
34 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
50 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 ...
1
vote
2answers
194 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 :...

1 2 3 4 5 24