Questions tagged [sales-order]
Denotes questions related to Magento Sales module's order functionality.
1,375
questions
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
31
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
1
answer
36
views
I want to place magento order using custom script using order Management interface but it's give error of invalid email format
I want to place magento order using custom script using order Management interface but it's give error of invalid email format.
`<?php
use Magento\Framework\App\Bootstrap;
use Magento\Sales\Api\...
1
vote
1
answer
61
views
Add a row count to the order sales view items table - Magento 2.4
We want to add a row count in the order sales view items table.
So that we can see and define the rows, to make it more easy to manage the order.
We already tried $block->getItem()->getId() for ...
0
votes
0
answers
21
views
Update product quantity after place an order with my own Observer event
I have created a new Observer event where I check sibling products. Sibling product are products with same pid.
After placing the order, I would like to reduce the quantity of siblings of the product ...
0
votes
0
answers
17
views
How to add ext_order_id using increment_id
What is a correct way to implement dependency injection for adding ext_order_id in existing order using its increment_id?
I need to include it in existing php script of 3rd party module…
0
votes
2
answers
393
views
Add Custom Field for creating new order from admin in Magento 2.4
I want to add new field while we create new order from the Magento admin. So, any one has any reference for this ?
0
votes
0
answers
37
views
Why are my PayPal payments in Magento 2 showing as "pending"?
We are facing Paypal pending payment issues. These issues are not occurring for all the orders. 50% of orders are going pending and 50% of orders are going to successful payment by Paypal.
0
votes
0
answers
11
views
Error on Reorder time create invoice automatically from backend in Magento 2?
I have my custom module in that I generate invoice automatically but when I reorder order from backend side that getting this kind of error
"Order saving error: Rolled back transaction has not ...
0
votes
1
answer
403
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
1
answer
31
views
In sales order grid shipping addess in i getting error can i know how solve this error magento 2?
like this in shipping address First Name
{{if this.getTemplateFilter().filter(dummy)}}{{/if}}
0
votes
1
answer
115
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
0
answers
33
views
How to apply cart price rules for new customers in a customer group immediately after they are added?
When a customer is added to customer group, the customer group's cart price rules for new customer are only applied after the customer has completed their first order. How can I override this ...
2
votes
0
answers
77
views
How to add a custom order field to checkout?
I'm looking for the best (i.e. recommended) way to add a custom order field in the billing step of the checkout page.
Requirements
In particular, I'd like to add a fast delivery option. If the ...
0
votes
1
answer
28
views
Magento 2: How we can hide duplicate coupon details (label and amount) from order invoice pdf?
I want to hide cart price rule applied coupon code details (Label and amount) from order invoice pdf:
I tried to hide this by applying condition on label wise but It's not working and it's failing ...
0
votes
1
answer
387
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
1
answer
40
views
How to send the separate orderconfirmation mail for admin and customer
I created a custom module to send the separate mail for admin and customer but its not working.could you please suggest me regarding this so i can proceed forward.
0
votes
1
answer
187
views
magento 2 - list sales order status all events
I search for all events used for sales order status.
sales_order status events
magento 2.4.4
0
votes
1
answer
123
views
Add Custom Link to Sales Order View Admin Panel
How can I add a custom link to 'sales/order/view/order_id/123456' adding an slash after the order_id with route name "download" so it becomes
sales/order/view/order_id/6710/download
My ...
0
votes
0
answers
59
views
magento 2.4 set canShip to false makes the order virtual
On my magento I have two different types of orders:
regular orders which follow magento standard flow
custom order which have to be in a custom status before they can be shipped, eg:
-- order is ...
0
votes
0
answers
411
views
Magento 2 Mysql message queue not consuming the request
I am using Magento 2.4 cloud. I've created a mysql asynchronous queue for order processing by following the link below.
https://erfanimani.com/using-magento-2-mysql-queue-for-order-post-processing
...
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
1
answer
462
views
Adding an Extension Attribute to Sales Order Items - Magento 2
I have created some custom attributes for products and using these attributes in order view in customer account orders section. I have deleted few products. When I view the customer orders, it gives ...
0
votes
1
answer
103
views
Admin can’t create order/reorder magento 2.4.5
Magento 2.4.5 issue where an Admin user can’t create orders nor reorders for customers.
report.CRITICAL: Error: Call to a member function getMethodInstance() on null in /app/vendor/paypal/module-...
0
votes
2
answers
124
views
Order Email test php file
How can I test order emails specifying order ID without sending me the email but with a .php file that I call up in the browser?
0
votes
2
answers
26
views
Original Price of child product in order Email
I want the original child price in the below file.
app\design\frontend\MyVendor\MyTheme\Magento_Sales\templates\email\items\order\default.phtml
I try $block->getBasePrice($_item) or only $block-&...
2
votes
0
answers
35
views
What information is needed for this JustUno embed code?
I am completely new to Magento 2 and programming in general. I am trying to integrate JustUno with Magento 2 and there is a script I can embed on the success page to track conversions. Below is the ...
0
votes
0
answers
31
views
How I can Change Order status like: Order accepted, order out for delivery, Order delivered? frontend(seller)
I can Change a form submit in frontend .For Example ->
<form method="post" action="#">
<select>
<option value="pending">Pending</option>
...
0
votes
4
answers
147
views
Different Order ID Prefix Based on Customer Group
Is there a way to update the Order ID prefix based on the user's customer group? E.G. wholesale customer starts with 2 while retail starts with 1.
0
votes
1
answer
27
views
Code changed on Emails templates
I'm working on a website that is upgraded to Magento2.4.4, now getting errors on emails (missing customer and shipping details, etc). After testing found that changing variables like customer_name=$...
0
votes
0
answers
33
views
How to order by recent order item in admin panel?
I am trying to order by recent order items in sales->order pages.
now it show like this.
But I need to show like that when I click orders in admin/sales.
How can I set it?
0
votes
0
answers
68
views
How to show custom field/attribute in Shipping/Billing address in sales order view Magento 2
I'm trying to save and show custom field value in Shipping/Billing addresses in the Sales > Order View in the admin.
The data is being written to
quote_address
sales_order_address
sales_order_grid
...
0
votes
1
answer
34
views
Is there any extension in magento2 that can help me to find specific orders in the grid easily?
I am looking for an extension that can help me in order management. It takes a lot of time to search for specific orders and fulfill them especially during festive seasons when are completely booked ...
0
votes
0
answers
21
views
Admin Sales View order Address issue
There is no spacing between First and Last name.
Also there is no country name, just the country code.
I have already checked address template option in Customer configuration. Everything is fine ...
0
votes
3
answers
225
views
How to get order count month wise?
I need to get order collection of this year where I have to display month wise order count. I am working on phtml file. I have to display how many orders in every month are placed.
Like for example ...
0
votes
1
answer
38
views
I am new in magento! :: I have task to add a custom field('is_vip') in order columns. please help me?
Programatically, add a custom field('is_vip') in order. If a customer order value over $150 , the field value will be 1 and in order grid it will show yes.
0
votes
0
answers
96
views
How to sort order items in Order PDF template
I'm trying to sort order's items according to a custom product attribute (localisation) in Order Print PDF,
I tried this in vendor/magento/module-sales/Model/Order/Pdf/Invoice.php
public function ...
0
votes
0
answers
53
views
Get Automate Payment Update from PayPal
Actually, I want to get the Payment Update from Paypal automatically twice a day for my order in the status column. That Order has been in the Payment Review, declined/Failed, etc.
The Things I do I ...
1
vote
1
answer
39
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.
1
vote
1
answer
207
views
Prevent duplicate Billing address creation in cutsomer_address_entity after customer checkout
I have noticed one thing. When placing an order from customer side, each time, the default billing address is duplicating in the customer_address_entity table.
I couldn't figure out where exactly the ...
0
votes
1
answer
173
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" ...
0
votes
1
answer
65
views
Custom order Status on Magento 2 programmatically
I have built a Payment Module and I want to add some custom status on table sales_order_status using etc/db_schema.xml.
Is this possible?
Thank you.
0
votes
0
answers
162
views
Third party extension js file does not added showing error
I install magento2 sales grid custom module but not support the js file in localhost.
Uncaught Error: Script error for: magentoGrid
http://requirejs.org/docs/errors.html#scripterror
at makeError (...
0
votes
1
answer
172
views
Magento 2: How To Add Extension Attribute To order item only Order API
How To Add Extension Attribute To order item Order API
Place order: [POST] /rest/V1/carts/mine/payment-information
0
votes
1
answer
372
views
Magento 2 How to Change or add custom order status in magento 2.4.4
I have created one extension for custom order status. In that, I want to add new statuses for orders. That is working fine in Magento 2.3.7.
But in Magento 2.4.4 order status is updated as per the ...
1
vote
1
answer
194
views
Magento 2: How to show Customer Attribute in Sales Order Grid
I have created a custom customer attribute.
It is visible in customer registration page and customer dashboard
But it is not visible in sales_order_grid.
I want to display it how can I achieve it
Help ...
1
vote
0
answers
272
views
how to magento 2 rest api change date formatted created at field
I have created a new module.
app\code\Sale\Paymentext\etc\webapi_rest\di.xml
<?xml version="1.0" ?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1
answer
299
views
Magento2.4 Order shipping address is not in well format
Shipping address showing some code and some data.
0
votes
1
answer
198
views
how to set the weekday in order email template magento 2.4
how to set the weekday Monday, Tuesday, Wednesday, Thursday etc in created_at_formatted in order email
example: Placed on 23.06.2022, 12:00:19
to set
Placed on: Friday, 24.06.2022
{{trans 'Placed on ...
0
votes
2
answers
965
views
Send Custom Data to quote table
I am new to magento 2. I have created a custom checkout step where user can select delivery day and time via dropdown. Dropdown options are coming from system.xml via customConfigProvider after seller ...