Questions tagged [sales-order]

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

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

Upgrade Magento 2.1 to Magento 2.3 on a new server import new orders from production

what is the list of data i need to manually export from my production site? after upgrading to magento 2.3 on new server and changing DNS info to go live on new server- the easiest solution i see is ...
0
votes
0answers
15 views

When creating extension attribute i got this Uncaugth type error - Magento 2.3

When creating extension attribute i got this Uncaugth type error check :- "Fatal Error: 'Uncaught TypeError: Argument 1 passed to Magento\\Sales\\Api\\Data\\OrderExtension::setCustomerFeedback() ...
0
votes
1answer
15 views

Magento 2 - Order ID always ZERO

When I click "Place Order" the order ID is always 0 and therefore fails after the first order as the order id already exists. TABLE SEQUENCE_ORDER_1 gets 0 appended to it I have no idea why and I've ...
0
votes
1answer
18 views

Magento 2 Order history with configurable Product get product id and attributes

below is code to get product id from order id, I did order configurable product but in below case it show 2 product ids where as I did purchased only one product (configurable products). output of ...
0
votes
0answers
11 views

Unable to place order for wallet products

We are using wallet and GST modules in our website. When wallet is recharged it is giving an error like "No shipping region" and unable to place an order. I traced the problem bcz in GST module ...
0
votes
0answers
18 views

Magento 2: transactional e-mails not translated when triggered by code

I have created a custom module that automatically generates orders based on certain conditions. It is a subscription module. When the orders get created via cronjob or command line (both point to the ...
0
votes
0answers
29 views

Magento 2 : Create order programmatically with payment

I want to create order programmatically with payment by token. I checked many tutorials but not getting success. Can anyone please help me to create script for that? Thanks.
0
votes
0answers
13 views

How to remove/customise magento 2 extended sales order grid

I have extended the sales order grid on my custom module, I am trying to remove create a new order, go to archive, default view, columns, export and search box. Any help, appreciated.
0
votes
1answer
13 views

Plugin to change order status after payment capture

Currently Magento2 sets the order status to the default status of the state STATE_PROCESSING when a credit card payment is captured. This is done in vendor/magento/module-sales/Model/Order/Payment/...
0
votes
1answer
38 views

Fatal error: Uncaught Error: Call to a member function getTypeId() Magento 2.3.0

Show Error after click ship only one product Fatal error: Uncaught Error: Call to a member function getTypeId() on null in /var/www/vhosts/xyz.com/httpdocs/vendor/magento/module-inventory-shipping-...
0
votes
0answers
9 views

Apply Cart Promo Rules on backoffice created order

I'm having trouble with backend created orders. As the shopping cart price rules such a gift item are not applying .. Is there a workaround in order to call their execution in such context ? Thanks ...
0
votes
1answer
49 views

Magento 2 items orders and invoice not show in customer account orders list

Hello Guys Please help me Magento ver. 2.3.0 Date 2/20/20 place orders display only, not display 2019 orders in live site I checked it is working right on local server I run all these commands ...
2
votes
1answer
73 views

Magento 2 Can we split order with same order number

Suppose, there are 2 types of products on my website Product A & Product B. Here, are 3 cases - Case 1 - When customer order Product A(any quantity) type product then from Magento we will get ...
0
votes
0answers
24 views

Searching order using sku of a product

How can i retrieve all the orders where the purchased item have a specific sku? Thanks in advance
0
votes
1answer
50 views

Magento2 - You have placed no orders

After placing an order the Customer's Account shows You have placed no orders. and shopping carts and wish lists. it gone? Please Help Backend Thanks
0
votes
0answers
23 views

Magento 2 Override ordered items

I am trying to override the items ordered section in Order view page. I want to add an extra column against each item. For example "Manufacturer" column. I added the column via sales_order_view.xml, ...
2
votes
1answer
25 views

Remove Payment Due for Sales order

How do we remove additional payment due on Magento if the customer paid outside of Magento? The case is the customer bought a product online and paid but changed his order and sent an additional ...
0
votes
0answers
24 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
27 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
54 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
29 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
17 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
17 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
21 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
19 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
10 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
28 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
23 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
17 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
28 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
38 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
10 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
53 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
30 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
73 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
123 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
43 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
9 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
23 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
21 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
18 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
2 3 4 5
25