Questions tagged [orders]
Mark questions related to Magento orders
2,252
questions
1
vote
1
answer
134
views
Security issue ? User with restricted scope can access ALL orders on a multiwebsite setup
Using Magento Cloud EE here but this issue might be the same on CE I'm not sure.
Create user foo
Create role test
Assign foo to test
Restrict website scope for test to www.website1.com only
Login ...
1
vote
2
answers
68
views
How to set shipping tax on rate
I have a method with create a shipping rate, but I need to add shipping tax on this specific rate, how can i do this?
My class:
$method = $this->rateMethodFactory->create();
$method->...
1
vote
3
answers
2k
views
How to use After order place event in Magento 2
After order place get customer attribute value and set order status in Magento 2.
Thanks.
0
votes
0
answers
29
views
Expected Shipping Date - Is it possible to get from magento 2 ? If yes then which table?
Is it possible to get the expected shipping date to get it from some magento table.
I need to show this information in my invoice. Which table shows this information.
Shipped by: FedEx
Expected by: 2-...
0
votes
0
answers
67
views
Import orders from Magento 1 to Magento 2 live website
I have a Magento 2 shop in live and another shop in Magento 1. I'm preparing the migration of Magento 1 shop to Magento 2 in another website, so I will have 2 websites in Magento 2. How can I migrate ...
1
vote
2
answers
1k
views
Magento 2 error : Registry key "current_creditmemo" already exists
I am getting this error by programmatically creating credit memo.
any thoughts why this error is appearing ?
1
vote
1
answer
1k
views
How to prevent order while placing order?
I want to prevent order on checkout page. With the use of particular condition i need stop placing order.
When i click on place order button , my order should not be place and should redirect to cart ...
0
votes
2
answers
2k
views
How to create new quote programmatically from old order after place the order in magento 2
I want to create a new quote based on the old order. I can create order programmatically but not able to just add to cart product in a new quote.
I don't want to place the order. Need is only add to ...
0
votes
1
answer
4k
views
Magento 2 : No such entity with %fieldName
I am getting this error any thoughts, why this error appearing ?
"message": "No such entity with %fieldName = %fieldValue",
"parameters": {
"fieldName&...
0
votes
1
answer
96
views
Export csv of products sold
Hello I would like to obtain a csv file containing the list of products (Order ID, EAN code and quantity) present in the orders whose status is being processed. How to proceed ?
0
votes
1
answer
462
views
Magento 2: Create a custom order view page
In magento 2 is there any way to create same order view page in custom module?
I want to create a custom order view page where I have to display some more data but not want to display on core (order ...
0
votes
1
answer
80
views
Build Customer View URL on Controller
How can I programmatically build this url: http://127.0.0.1/magento2/sales/order/view/order_id/61/?
Im in a custom controller with the current Order object.
0
votes
1
answer
271
views
Magento 2 - How to display recent order on Homepage?
I know that the "recent orders" section is displayed on customer's dashboard. I am wondering if I can display this "recent orders" on the homepage as well?
My website requires ...
0
votes
3
answers
2k
views
Magento 2 Place Order Programmatically Using Event Observer
Created a custom form where customer and product details filled with status of Active/Not active
So for now I want to create an event and observer to place order programmatically when status is Active ...
0
votes
1
answer
3k
views
Magento 2 API Create Order As guest: {“message”:“\”%fieldName\“ is required. Enter and try again.”,“parameters”:{“fieldName”:“email”}}
0
I'm trying to place an order via Magento 2 API as a guest, following the guidance shown here:
https://devdocs.magento.com/guides/v2.4/rest/tutorials/orders/order-create-order.html
The end point I'm ...
0
votes
2
answers
1k
views
How to get the shipping address by order ID?
How to get the correct shipping address for an order ID? I am using Magento\Sales\Api\OrderRepositoryInterface to get the order information by order ID, but there are no methods for getting the ...
0
votes
1
answer
295
views
Magento 2 how to get info_buyRequest in rest result rest/V1/orders/105"
Hi can any one tell me how to get addition information (info_buyrequest) in rest api result
https://mainwebsite.com/index.php/rest/V1/orders/$order_id.
but here not getting product options getting ...
0
votes
1
answer
415
views
Magento 2: Admin order url
Does anyone know why the order id that appears in the url does not match the one that appears in the product?
0
votes
2
answers
2k
views
Changing & Adding items in checkout_index_index.xml
I'm trying to customize Order Summary in the sidebar.
The module that I'm currently working on will modify the final total price and I need to display the additional price under Shipping.
I've taken ...
1
vote
0
answers
20
views
Magento 2 : How to Process Order Returns to Store Credit Manually?
How to process order returns to Store Credit
using ?
order_number
product_sku
return_qty
Any thoughts how this can be achieved ?
Any thoughts appreciated.
0
votes
1
answer
79
views
Unable to save order in foreach
Here is my code i just want to update order column that are in collection in foreach i have tried model and modelfactory both to save but it sets Queued column but unable to save it anyone kindly help ...
0
votes
0
answers
321
views
Magento2 Avalara Tax plugin issue with EE 2.3.3 version while placing an order
I have used following avalara tax module in Magento 2.3.3 EE version:
https://marketplace.magento.com/avalara-avatax-magento.html
i have configured all settings properly and taxes are also showing ...
0
votes
1
answer
276
views
Add column and button magento 2
Is there any way to add a button and column at the backend order view items renderer?
I have tried multiples solution but did not work.
sales_order_view
<?xml version="1.0"?>
<...
0
votes
3
answers
161
views
Magento 2 : Get ordered products in sales_order_after observer
Is their any way i can get the product names in sales_order_place_after observer ?
I get the order object but not sure how to fetch the products.
Any thoughts ?
1
vote
2
answers
716
views
Magento 2 : Get total spent by customer
Is their any way we can get total amount that has been spend by customer in magento
2 ?
1
vote
1
answer
215
views
How can you calculate the prices with 2 decimals, not with 4 decimals?
How can you set in Magento2 that all the calculations you make on orders, invoices, price rules,…, to be done with 2 decimals not with 4 decimals?
Attention, I mean the calculation of prices and not ...
2
votes
1
answer
288
views
Magento 2.4 How to activate the auto refresh for orders, so when customer place order directly it appear in the orders grid with out manual refresh?
How to activate the auto refresh for orders, so when customer place order directly it appear in the orders grid (Order management - Admin backend) with out manual refresh?
0
votes
1
answer
1k
views
Magento2.3 - Programmatically setting order status to On Hold getting stuck
I have an observer in my module the fires when the order is placed, depending on a condition I use
$order->setState(\Magento\Sales\Model\Order::STATE_HOLDED, true)->save();
$order->setStatus(\...
0
votes
1
answer
45
views
Order is creating Automatically and after purchase also still product is in cart
For few days we are facing a different issue Once we place the Order successfully it is showing the older Order id (Order id 000000960 but our current Order id 1000+) Success page.
For reference ...
0
votes
1
answer
444
views
Magento 2: Customer Account Reorder button not showing
I have activated reorder in my magento 2 website. Now I wanted to build the functionality where if the customer click on the reorder button it will add all the products in the cart except for disabled ...
0
votes
1
answer
42
views
Error whenever trying to create an order in Magento 2.3.3: Type Error occurred when creating object: Magento\\Framework\\Mail\\EmailMessage
The error seems to originate from trying to create an Email when a new order is created, the weird thing however is that Email's is turned off for the store.
From what i know of nothing has changed ...
0
votes
2
answers
1k
views
Magento2 - How to pass any custom static data to order email template?
Is their any way we can pass some static data to order confirmation email template ?
And then use it as variable in email template ?
like {{var order.pickupDate}}
Thank you
0
votes
1
answer
3k
views
Magento 2 API, searchCriteria usage on orders
I'm trying to retrieve recent orders from Magento 2.3.5, via REST API. I use this command:
curl -X GET "https://my_magento_site/index.php/rest/V1/orders/search?searchCriteria[filter_groups][0][...
0
votes
2
answers
815
views
Get order collection past one hour completed orders magento 2
How to add filter last past one-hour completed orders collection in Magento 2?
$searchCriteria = $this->searchCriteriaBuilder
->addFilter('is_process', $isprocess)
->...
0
votes
1
answer
278
views
Magento 2.3.5 - Change Date Format on item options in Sales Order details
UPDATE
I have created a product with custom options like below. One of the fields is a date field. I have modified the date option (date.phtml) to show the time choice on the date-picker. However, ...
0
votes
1
answer
628
views
Magento 2: Skip specific products from adding into cart on reorder?
When I am clicking on reorder from customer account I want to remove specific products from adding into my cart. For this I am using "controller_action_predispatch_sales_order_reorder" event ...
0
votes
1
answer
345
views
magento 2: how to get order details from "controller_action_predispatch_sales_order_reorder" event?
I am using "controller_action_predispatch_sales_order_reorder" event to find out whether an order is reorder or not. Using this event I am able to get original orderId but along with that I ...
0
votes
0
answers
97
views
Magento 2.1 to 2.4 order migration
we have upgraded a very buggy Magento 2.1.9 website to Magento 2.4.1 and are about to launch the new website. It's taken a few months to upgrade and build a new theme. but obviously the orders are now ...
0
votes
2
answers
577
views
How to Create Dropdown columns in Sales > Order Grid in Magento 2
I want to create drop-down column in sales > order grid.So How to Create this column.
<?php
namespace Test\OrderColumns\Ui\Component\Listing\Column;
use \Magento\Sales\Api\...
0
votes
3
answers
672
views
Magento 2: Which event fires when I reorder from admin side?
I have activated reorder on my magento 2 site. Now I want a event which can catch reorder both in frontend and backend (admin). I am using "controller_action_predispatch_sales_order_reorder" ...
0
votes
1
answer
243
views
Getting Error while trying to Retrieve Magento 2 orders using Rest API
I am trying to retrieve the Orders using REST API.
I want to retrieve all the processing orders for that i am using search criteria.
Below is what i have tried , but it is not working
https://auto1....
0
votes
0
answers
47
views
Issue with plugin that migrates orders
We've just upgraded a Magento 2.1.9 live website up to development 2.4.1 site. The new site has been fully redeveloped with new theme, extensions and content, and the only thing stopping us from going ...
0
votes
3
answers
1k
views
Magento 2: How to get ordered item details from order collection?
I have successfully got the order details and below is my code to get the details. Now, I need to get the ordered item details. Please guide
$collection = $this->_orderCollectionFactory->create()...
0
votes
2
answers
756
views
How do I get an order collection in admin order view using the email address of the current order?
I am trying to build an order history table to display previous orders (order number/date/items ordered, etc) from a customer order in the admin order view (Magento\Sales\Block\Adminhtml\Order\View\...
0
votes
0
answers
203
views
Magento 2 How to get Custom Attribute Value Of Order Using Rest API
I have created one attribute for order named "custom_fee" and it is showing okay in magento orders frontend as well as backend but when I tries to access order data
with rest API , I am not ...
0
votes
0
answers
42
views
Prevent new customers (never purchased anything before) from ordering specific products in Magento 2
I am in a situation that requires to prevent new customers (who never purchased before) from placing an order that contains some specific products.
These products should be available for all customers ...
0
votes
3
answers
447
views
Magento 2 getName() of a variation item returns name of parent
I am trying to print the name of an item inside an order in Magento 2.3.3.
The item is a variation, and for some reason $item->getName() doesn't return the full name of the item. Instead it returns ...
0
votes
0
answers
429
views
Magento 2 order grid custom mass action 404 page not found
view/adminhtml/ui_component/sales_order_grid.xml
<?xml version="1.0" encoding="UTF-8"?>
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
0
votes
1
answer
504
views
Magento 2.3: $orderData->getShippingAddress() returns null
I use Magento 2.3
If I want to access in view order page (on my account) shipping address, the result is null.
$orderId = $block->getOrderId();
$orderData = $block->getOrderDetails($orderId);
$...
1
vote
1
answer
48
views
Need a Magento 2 report
I'm looking for a specific report. We need a monthly report of orders that includes the customer's name/address and what they purchased. (Magento 2.3.6) I don't see this in the standard reports. My ...