Questions tagged [sales-order]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
116 views

Magento 2: How can change in the frontend sortOrder of Grand Totals and Tax positions in my account order detail page?

I need to change sort order in order_totals block in the frontend order view page. I want to swap the position of Grand Total & Tax in order_totals child items. Please help to change to order of ...
1
vote
0answers
10 views

Order shipment creation takes around 2 mins in magento 2

While creating shipment for order in magento2 is very slow. It takes around 2 mins for complete the process. How to solve this.
0
votes
1answer
71 views

Magento 2:- How to add order export feature to seller dashboard?

I'm using Marketplace and there is separate dashboard for each seller from where seller can manage their sections e.g-products,stores,orders etc. for now,on order grid seller can't export the order ...
0
votes
1answer
83 views

Set default filter for Customer grid during order creation in Magento2

I added a Customer Group column in Customer grid during order creation for Magento2, Then I filtered this grid base on Customer Group. Customer grid filtered and it is working fine but module ...
0
votes
0answers
33 views

Magento 2 - Sales email template override don't work

I customized store email template on the theme (header, footer, and content by module), however, those related to orders (Magento_Sales) aren’t working and display the LUMA theme email. The other ...
2
votes
1answer
160 views

Add a new column of “Customer Group” in a Customer grid during order creation

I want to add a Customer Group in a Customer grid during order creation For Magento2. I made [vendor]\[module]\view\adminhtml\layout\sales_order_create_customer_block.xml like this: <?xml ...
2
votes
0answers
19 views

$order->getCustomerName() returned ?? for unicode customer name

Under Magento EE 1.14, I have unicode characters in the customer name, the following code does return correct name in unicode for the first time: $order = Mage::getSingleton("sales/order")->...
0
votes
0answers
22 views

Adding textarea to admin product view to show customers who ordered product?

I want to add a textarea to the Magento 2 admin product view which contains the customer ids of the customers who ordered that product. What would be the best approach? Has anybody done something ...
0
votes
0answers
65 views

Magento2 Split Order Functionality

I am using b2b marketplace extension in my website. I need to split orders based on vendor id. I got one split order module https://github.com/magestat/magento2-split-order , which is splitting orders ...
1
vote
0answers
28 views

Magento2.3 SetTemplate is not working first time ajax

I would like to add additional some field info in sales_order_create_index.xml I used setTemplate: <referenceBlock name="data"> <action method="setTemplate"> <...
1
vote
2answers
141 views

Magento 2.3: How to attach a pdf file with new order mail?

I am using magento 2.3.1 I need to send a pdf with new order mail, I have already done that for magento 2.2.6 but that is not working with 2.3. Can any one help me with this?
2
votes
1answer
389 views

Magento 2 - Reverting cancel orders programmatically

For some reason order canceled in bulk through my customly added order cancel mass action. Now I need to uncancel all orders. Change status from cancel to the status that was previously set on order ...
0
votes
0answers
21 views

Magento 1 Authorize.net issue | order created from admin panel is getting redirected to front-end cart page

I am using a Magento 1 of version 1.7.0.2. Recently i update a patch for Authorize.net and right after that i started getting issues. Currently in the site with live Authorize.net credentials if a ...
0
votes
2answers
126 views

How to get value from sales_flat_order_item table using quote_item_id?

Using the sales_order_place_after event in my custom Observer. I have the quote_item_id value (example 324). How to get the corresponding item_id value from the sales_flat_order_item table? I am ...
0
votes
1answer
37 views

Magento 2 - Order Item changes

I want to inform customers with email all the details of their orders and I want to be able to show the difference. For example: Those items shipped: ... Those items cancelled: ... Those items ... ...
1
vote
2answers
164 views

Get order increment id in observer

I have created a module to save order details to a custom mysql table after checkout completion. All works fine but the order id saves in the format "210"(order_id) instead of "1000000210"(...
1
vote
1answer
37 views

Efficient method to load/get and assign multiple custom options/attributes from quote item?

Is there a more efficient way to load and assign quote item custom options/attributes? This is code in my Observer: public function MyFunction(Varien_Event_Observer $observer) { $QuoteObject = Mage::...
0
votes
1answer
44 views

Change Email Template On Specific Order Status:Magento2

I am trying to use different e-mail template for one of my custom order status when the status is changed from the admin. I have used the event sales_order_save_after <observer name="...
0
votes
2answers
34 views

How to get the items orders by the customer in the order collection?

I need to get the collection of orders with the the items ordered by using the customer ID. But I am not getting the items ordered in my collection. Please help. $objectManager = \Magento\Framework\...
0
votes
2answers
2k views

Get order id by order increment id in Magento 2

I want to get order id by order increment id. I have this code but it is returning empty value: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $incrId = 100005363; $collection =...
0
votes
0answers
176 views

admin order shipment not save with tracking number

When I'm using with payment method COD than shipment is working fine, but when I'm using with Authorize.net than getting below error. Fatal error: Uncaught exception 'Exception' with message 'User ...
1
vote
1answer
56 views

External image details getting added in order email template in Magento 2

I am trying to add product image in the sales order email template with overriding in the path /app/design/frontend/vendor/Mytheme/Magento_Sales/templates/email/items/order/default.phtml. Code ...
2
votes
0answers
37 views

Getting an error: No such entity with cartId = 17090. How to resolve it

Magento give me this error when I create order using the backend. When creting the order with frontend, it works fine. I am using multi-website functionality in my project. I have creted custom quote ...
0
votes
0answers
60 views

Magento 2.3.1 Authorize.net: How to redirect to fail page if credit card details are wrong or any error occurs?

I have integrate Authorize.net payment method which is available in Magento 2.3.1 version uses Accept.js method. When customer gives wrong credit card details or any error that authorize.net gives in ...
1
vote
1answer
67 views

Magento 2.3.0 How to get product image from order item collection

I would like to get a product image from order items collection. How can I get a product thumbnail image? Below is my custom order item collection code : public function getEmailLogOrders() { $...
1
vote
0answers
42 views

How to get additional_information on sales/order

This is my code. I would like to get additional_information on API. I'm using getPayment, on this way, I believe that I can define this function there. I don´t know, just looking for some help or ...
1
vote
0answers
50 views

Magento 1.9 set custom field/attribute when order is set to complete

When order change status from "x" to "complete" I need save when order was completed. I am trying to achieve this with sales_order_save_commit_after event. Problem is that I can't save order when the ...
0
votes
0answers
22 views

Accept payment fail when payment status is review in Magento2

There are some orders which are in status "Payment Review" So i try to edit that order and clicked "Accept Payment" from the Magento admin end. I am getting the below error. "Action failed with ...
3
votes
1answer
58 views

Sales email layout not showing proper Magento 2

I am using clue theme for Magento 2.3.There is an issue with my all transactional email. Please check my order email layout. If i switch the theme to luma and check order email then it looks fine. ...
0
votes
1answer
390 views

magento 2 how to display simple product image instead of configurable product image in order detail?

I can successfully display the configurable product image in order detail page with the following code. /** @var $block \Magento\Sales\Block\Order\Item\Renderer\DefaultRenderer */ $_item = $block-&...
2
votes
1answer
487 views

How to get entity id(order id) in success phtml

In my success.phtml , $block->getViewOrderUrl() gives a order url with order id(entity id) . dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Success.php /sales/order/view/...
0
votes
1answer
505 views

Some Payment Method Not Showing in Sales grid after upgrade magento to 2.3.1

I upgraded Magento version 2.2.3 to 2.3.1 by using composer. All Things are working fine, except Sales order grid. In sales grid it's showing only payment method check, rest other payment methods are ...
1
vote
1answer
52 views

Magento 1.9.x: How to change the system so that new orders start from a specific number going up?

Magento 1.9.4 We just created a brand new Magento store and are going to switch our existing domain to that but we would like to change the order numbers in such a way that the new orders placed ...
1
vote
1answer
155 views

How to remove secondary UI component in Magento 2?

I want to remove export component from order toolbar page in Magento 2 admin. I have already created an custom export component in my module but I want to remove default one. See screenshot. Here ...
1
vote
0answers
12 views

Magento2 Invoice and delivery the same checked by default

I can't figure out how to check the "Invoice and delivery address are the same" checkbox by default. Is this a setting that I'm missing or is this something which should be handled from within a theme?...
0
votes
0answers
33 views

Get Tax amount only of Items in an order

I have enable Tax for shipping in an order. By default the products are taxable. I have written an observer which will run after order being placed. Inside the observer i am storing the Tax of Items ...
0
votes
0answers
397 views

How to get the extension attributes in shipping info and order/{id} APi magento2?

I have created a sales attribute "port" in sale_order table. I want to POST this post attribute in shipping information API payload and get it in response as extension attribute. I also want to save ...
0
votes
1answer
25 views

Adding new block in admin order section

I have added a new block in admin sales order page. The strange thing is it doesn't appear when i open order create page. But when i reload it appears. Can anyone tell what i am missing.
1
vote
1answer
135 views

How to override definition.xml file in Magento 2?

I am developing an extension to add another export format option in order toolbar in export button dropdown. What I found yet is that there are two options here (Sales Order Toolbar) right now: a) ...
0
votes
0answers
14 views

Coupon code being applied only to the first product in cart insead of whole cart

A coupon code is generated programmatically on a particular day. The coupon code when applied shows the correct discount amount and even the checkout shows the correct discount amount, but when the ...
0
votes
0answers
29 views

How to get the custom quote field in quote Api?

I have added a custom attribute in my quote table and sales_order table. How can I get this custom attribute in my quote Api so that I get the custom attribute with quote_id in response. After ...
0
votes
0answers
11 views

How to get total salesrule that has been used for today by customer using salesrule id

How to get total promo has been used for current date (today) by customer using salesrule id and customer id?
0
votes
0answers
20 views

what is difference between magento1 and magento2 sales order table list

what is difference between magento1 and magento2 sales order table related data to be stored and which table to be affected. Magento1 Sales related table Magento2 Sales related table Thank you, ...
0
votes
1answer
126 views

checkout success page events magento

I have just created one module after checkout success event in Magento. etc/config.xml <?xml version="1.0"?> <config> <modules> <Tech_Paymentinfo> &...
1
vote
1answer
436 views

Magento 2 invoice email not sending

My customer complaint they do not receive the email order. So I have to manually send them the invoice from the admin account. What cloud be the issue?
1
vote
1answer
93 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 ...
2
votes
1answer
496 views

How to create duplicate new quote from old order quote Magento 1.7?

I want to create a new order programmatically by copying an existing order's quote. Here is what I have tried: <?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); ...
1
vote
0answers
134 views

Sales orders not showing for new Admin user in magento2

I have created new User here System -> Permission Assigned User Role as Administrator But when logged in with the new user which i created now, I can't see the orders for the newly created admin ...
1
vote
0answers
50 views

cancel an order customer did not receive an email

I like to send an email to customer if admin cancel an order. Please help to solve the solution. Thank you.
2
votes
1answer
27 views

How to hide item with qty 0 after shipment created

I just very curiously how magento can process this . Default when create shipment with set item qty to zero. It's will not visible in shipment But i can't find file to process this Can anyone show me ...