Questions tagged [orders]
Mark questions related to Magento orders
2,238
questions
0
votes
1
answer
25
views
REST API - probe error
how to get orders that are older than 1 hour from the current time. When I type NOW() -60, I get an internal error, log file never existed.
0
votes
1
answer
19
views
How to get ordered product CGST, SGST & IGST from order in magento 2
how to get this amount?
I try -
foreach ($_order->getAllVisibleItems() as $item) {
$productId = $item->getProductId();
$productName = $item->getName();
$productSku = $item->getSku();
$...
0
votes
0
answers
60
views
Magento 2 How to update quote totals information from admin
Magento 2.4.5-p1 version using.
We want to give custom discount via our custom module
Using this code -
<?php
namespace Namespce\Modulename\Controller\Adminhtml\Quote;
use Magento\Backend\App\...
0
votes
1
answer
33
views
Get customer orders excluding ones with a specific order item
I want to retrieve all customer orders' except the ones that have a specific item (walle product)
Currently, I get all orders that have the item and then filter them from orderCollection
$...
0
votes
1
answer
37
views
Upload file (invoice) to existing order
Is it possible to add an externally generated invoice to an existing order record?
The scenario is as follows:
A company receives orders via a Magento 2.4 online shop.
The orders are further processed ...
0
votes
0
answers
32
views
Magento 2: How to check if order is not created but payment is deducted
I have a situation on which sometimes deadlock occurs during order place.
But the order is not getting placed and order payment is done successfully.
So to overcome that issue, I am using ...
0
votes
0
answers
9
views
Magento 2.3 set up an order in the admin panel that generates an order based on partial quantity & backorder on the amount not in stock
In Magento 2.3 admin panel, can I set up an order that generates an order based on partial quantity & backorder on the amount not in-stock for the same item?
It should include an item that can be ...
0
votes
1
answer
51
views
How to move orders from Magento 1.9.4 to Magento 2.4.5-p1?
How on Earth am I meant to move orders from Magento 1.9.4 to Magento 2.4.5-p1?
Someone suggested the 'Improved Import & Export for Magento 2':
https://firebearstudio.com/the-improved-import.html
I'...
0
votes
0
answers
33
views
Update increment pad length in orders to remove leading zero's
I'm looking for the most up to date and most recommended way to update increment_pad_length I've seen many posts about direct with sql statements and other with di.xml eg:
<?xml version="1.0&...
0
votes
0
answers
66
views
Magento 2 - prevent the 1205 Lock wait timeout exceeded issue?
Does any have any idea to prevent the 1205 Lock wait timeout exceeded issue?
main.CRITICAL: Saving order 0002347423 failed: SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded;
try ...
0
votes
1
answer
426
views
Magento 2 add custom fields to order create in admin area
How to add custom input and drop-downs order create in admin sales order creation.
I want to add custom field hopefully a new section where when we create a custom order through admin only we can pass ...
0
votes
2
answers
48
views
Rewrite Reorder controller in Magento 2.3
I want to rewrite Reorder controller from \Magento\Sales\Controller\AbstractController\Reorder. In di.xml I put
<preference for = "Magento\Sales\Controller\AbstractController\Reorder" ...
0
votes
1
answer
54
views
add custom order status to orders grid bulk actions in Magento 2.4.5
How to add more order statuses to orders grid bulk actions drop down to update one or more orders status at a time by selecting the check box of orders.
0
votes
1
answer
119
views
magento 2 credit memo set "quantity to refund" column value as 0 by default
i want to set "Qty to refund" column value as 0 by default and then i will update qty for only those product which i want to refund.
i tried to set value as 0 but after that the "Update ...
0
votes
1
answer
136
views
Magento 2 admin order creation error is "Pickup Location Address does not match Shipping Address for In-Store Pickup Quote"
When I try to create an "in-store pickup order" for a customer from magento 2.4.5 admin I am getting this error "Pickup Location Address does not match Shipping Address for In-Store ...
0
votes
2
answers
38
views
Error trying to GET all orders
I am getting the error below trying to get all orders using get('rest/V1/orders?searchCriteria');
I am using Access Token and my integration has access to ALL API.
{
"messages": {
...
0
votes
0
answers
23
views
How to get the reward points in Order success page?
I am using Magento 2.4 EE, In that, I am placing an order and I am getting the reward points based on the order total.
A specific message with "Reward points going to get for this order" is ...
0
votes
1
answer
404
views
Laminas\Mail\Protocol\Exception\RuntimeException "Authentication Failed"
I'm order the product and proceed to checkout then show the error. I'm use the "zoho credentials" after that i remove the "zoho credentials". and use the gmail Own smtp but still ...
0
votes
0
answers
116
views
Creating an Order with configurable Product via REST API
I have been able to create an Order with simple Products via REST API and then had no issue creating its invoice and shipment. Now I want to create an Order with configurable Products, and although I ...
0
votes
1
answer
262
views
How can I validate the custom rule condition on custom module in Magento 2
Here I Create custom rule condition for custom module in magento 2
now i need to check that all rule at order place time
I create event "sales_order_place_after"
in that the rule condition ...
0
votes
0
answers
73
views
Malicious code in Order Address
I got many orders in which I found malicious code in the order address section. My website's Magento version is 2.4.5-p1. I am afraid it is some kind of malware attack and if it is so please suggest ...
0
votes
0
answers
26
views
Row total mismatch on credit memo page (magento version 2.4.3)
See this image it's the order page.
The highlighted product's calculations are correct.
See this image it's the credit memo page.
The highlighted product's calculations are incorrect.
Can you kindly ...
0
votes
0
answers
72
views
Magento 2.4.5 after place order success page with customization
Hello I have created one observer after the order is placed (sales_model_service_quote_submit_success) order data need to synch with some third-party system it is working fine order is synched to the ...
0
votes
0
answers
426
views
Magento 2 - Add custom form to admin sales order create
I'm trying to add a form to the admin sales order create page.
When I create a new order i cannot see my form but if i refresh the page the form is available.
i added code to sales_order_create_index....
0
votes
1
answer
68
views
Magento2 product_options field into the sales_order_itmes table
Does anyone know why, sometimes, into the table sales_order_itmes, I see rows that has product_options fields like this:
{
"info_buyRequest": {
"uenc": "...
0
votes
0
answers
30
views
How i export customer order data in csv file using controller
How i write the code for this button for exporting order data csv particular order
I fetch the following details
Reference Number
Ship Carrier
Ship Service
Ship Billing
Ship To Company
Ship To ...
0
votes
0
answers
6
views
No Option to Ship
We have been experiencing situations where we ship part of an order and then go back to ship the balance of the order and there is no SHIP option in the header. Image listed below.
Has anyone else ...
0
votes
1
answer
1k
views
Magento 2 Get order from quote id
How would I get a order's info from a quote id?
if I have quote id of 253 and once I load that quote using..
$quote = $this->quoteFactory->create()->load("253");
How do i get the ...
0
votes
1
answer
35
views
How to get get entity_id from order increment_id using REST?
I want to have my entity_id of my order, so I can make a deeplink directly to it, from another application. According to this question: REST API: get order entity_id from order increment_id that ...
0
votes
1
answer
40
views
Updating Magento Order Status using API but order goes back to processing
We are updating order statuses using the Magento API.
It shows that the status has been updated in the order status history but the order status still says processing.
Any ideas on this or how to ...
0
votes
1
answer
16
views
Admin sale order create edit text box
Im trying to move the "City" box up and I cant find the template for it for the admin
can someone tell me where I can find it and change it
0
votes
0
answers
51
views
How to add Customer name and Order id on each page of Invoice pdf in magento 2
Is there any way that i can add customer name and Order number at the top of each page of invoice pdf generated from backend in magento 2?https://prnt.sc/mNPhsrQpDCy6
1
vote
2
answers
558
views
Order Items in New Order Email not showing after upgrade
I upgraded our Magento version from 2.3.4 to 2.4.3. After the upgrade the items in the order aren't showing in the email. The email template shows the items using:
{{layout handle="...
0
votes
0
answers
23
views
Customer order details in English
We are managing a 7 x multi-language multi-store site.
The product descriptions are in their native language (i.e. Japanese store has Japanese menu and product descriptions), however due to the admin ...
1
vote
1
answer
111
views
creating cronjob that cancel orders that are older than 24 hours
I want to execute cronjob if the orders are 24 hours old and and turning pending payment status to cancel. how to do that?
I have this code script but doesn't want to work the way it suppose to, what ...
1
vote
1
answer
40
views
How to get products for each order from admin Panel?
I wanna get the CSV of all the invoices along with the items ordered in each invoice. Is there a way to get it from admin panel. I dont have access to the code.
0
votes
0
answers
13
views
Request Order Status Change
Is there a way to change status from Shipped to Processing? I accidentally click the Ship status. Please help
1
vote
0
answers
35
views
Magento 2.4.3 - Showing "out of stock" on order confirmation
Is there a way to get the "out of stock" status on the order confirmation?
This is a store that has allow backorders.
1
vote
0
answers
148
views
Order filter and search issue in admin order grid magento 2?
I have two types of order numbers( order Increment Id ) in my order table. Based on a condition i am updating the order increment id like below.
EX - 000000767 To HTO-000000767
I have other orders ...
0
votes
1
answer
324
views
Magento 2.4.4: How to get Gift Message from Order object in my Observer class subscribed to checkout_onepage_controller_success_action?
With upgrade to Magento 2.4.4, I'm using checkout_onepage_controller_success_action to get order information that I insert into a custom table that I created in Magento. We're allowing customers to ...
1
vote
0
answers
64
views
Magento 2 | Prevent saving the completed state on the order
In Magento2, when the payment of the order is made by credit card, the invoice is immediately generated. This involves saving the order with a completed state as soon as the shipment is created.
Is it ...
0
votes
1
answer
180
views
File upload from order view page from admin
<div class="admin__field-control">
<input type="file" name="upload_custom_file" id="upload_custom_file" title="Upload Custom File" ...
1
vote
2
answers
14
views
Adding FilterGroupBuilder to customs template creates error message
im trying to add and OR Filter to my template. So i added filtergroupbuilder to the construct. As soons as i add the lines im getting the following error message
__construct(): Argument #8 ($...
0
votes
1
answer
417
views
Online refund payment using Invoice Rest API in Magento 2
There are some orders on the website that is done by the Paypal online method. Now I want to a partial refund of an order item using the invoice API.
E.g:: /rest/default/V1/invoice/xxxx/refund
{
&...
0
votes
1
answer
348
views
How to have common order sequence for multiple stores (under the same website)?
Magento 2 uses table sales_sequence_meta and sales_sequence_profile for defining the entity prefix for stores.
If 2 and 3 are the store_id of two store views of the same website, the table data may ...
1
vote
0
answers
100
views
Magento 2 | Add tracking number in the shipment already created
On the Magento2 backend in the shipment tab I noticed that it is possible to add a second tracking number even when the shipment is already created.
The problem is that when you click "add" ...
2
votes
1
answer
679
views
How to add a custom email variable to magento 2 credit memo email?
I need to add a custom variable based on payment method to credit memo email.
I captured the event email_creditmemo_set_template_vars_before in my custom module, Which was dispatched on Magento\Sales\...
1
vote
1
answer
30
views
Event Observer on the orders grid if someone selects an order and uses one of the actions in the drop down menu items
If someone selects and order by checking the box and then using one of the action items in the dropdown. I would like to add the user and timestamp and the action item they selected to the comments ...
3
votes
12
answers
6k
views
Magento 2: Fake customer order came through with weird code instead of customer name
Just had a fake order come through on my Magento 2 website. The address is nonsense and instead of a customer name it had this code:
{{
var this.getTemplateFilter().filter($order.shipping_address....
0
votes
1
answer
142
views
How to clone an order from one customer to another in magento 2
I need to create a button ("Clone Order") in the admin > orders section to clone a customer's order to other customers.
By clicking this button, a new page will open where I need to put ...