Skip to main content

Questions tagged [orders]

Mark questions related to Magento orders

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

How to send email to Admin in Magento 2.4 when order status change ( Cancel and Hold )

I want to send Email in Magento 2 when order status change in ( Cancel and Hold ) My current code is : <?php namespace Hlemail\Customemail\Observer; use Magento\Framework\Event\ObserverInterface; ...
Prits's user avatar
  • 625
0 votes
1 answer
285 views

REST API > Create Product = 400 error "Please select a product type"

I'm trying to create a Product with a call to the REST API POST https://mymagentodomain.com/V1/products { "product":{ "price":8, "sku":"123456789", ...
HarryDev's user avatar
0 votes
1 answer
811 views

Magento2 How to refresh Admin Order Create Order Total Section

I am creating new order from backend and i have to refresh order total section after my custom ajax request. does any one know how i can achive this ?
Sanjay Shiyal's user avatar
-1 votes
1 answer
80 views

Is there any extension Order Exchange with same product option or different products in Magento 2?

Is there any Magento 2 extension available for Customer order exchange with same item different Size/color And also Order Exchange with different Products. reference link Myntra
Ranjeet Kumar's user avatar
0 votes
1 answer
522 views

How to find WHICH user account changed Order Status in Magento 2

I have a Magento2 store with multiple logistics staff members working on the same Orders list and Verifying, Cancelling, or Processing orders by changing their status I want to find which user account ...
Namanyay Goel's user avatar
0 votes
1 answer
89 views

Magento 2 REST APIs fetch results by store code

When i am trying to fetch the orders, & customers & products collection by using store code I am getting another store results aswell. Did any one facing the issue in the magento 2.4 version? ...
Nagaraju Kasa's user avatar
0 votes
1 answer
982 views

Magento 2: How to show multiple discount coupon code separately in backend while creating order (order totals)

I using Magento 2.4.2. In the front end, After applying the multiple discount coupon, It will show you both coupon code separately which is fine, as shown in the below screenshot, In the backend, ...
Mohit Rane's user avatar
  • 1,965
0 votes
1 answer
126 views

How to exclude certain SKU to be calculated in Minimum Order Amount

I'm currently using the native M2 Minimum Order Amount module. I want to add to my store some products, but I don't want them to be consider during minimum order amount calculation. ...
bkam's user avatar
  • 1
2 votes
2 answers
2k views

New Order Send custom email template in Magento 2.4

I have two condition :- First if customer is not approve send custom email template. Second if customer is approve send magento default email template. How can i achieve this. THANKS.
Mohit Patel's user avatar
  • 3,888
0 votes
1 answer
644 views

magento2 add simple product to order

I want add surprise functionality so when custom try to place an order, one simple product will get automatically added to their cart. I want to add that item after customer click on place order ...
Jackson Wyss's user avatar
0 votes
1 answer
265 views

Get order product item count in order success page - Magento 2

I want get number of product order in order success page. This found solution magento 1.9 visit Get ordered product count in magento <?php $_order = $this->getOrder() ?> <?php echo $_order-...
tech clouds's user avatar
0 votes
1 answer
167 views

gift-message attribute not appearing in REST API Orders response after setting it on Cart

I am developing a headless Magento backend using REST/Graphql on the frontend. After enabling the Gift Message module in admin, I set correctly set the Cart gift-message like so: http://localhost/...
Adam Wright's user avatar
1 vote
1 answer
135 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 ...
Sorcy's user avatar
  • 128
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->...
Hudson Alves Triunfante's user avatar
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.
Mohit Patel's user avatar
  • 3,888
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-...
Vibhore Jain's user avatar
0 votes
0 answers
69 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 ...
Mikel's user avatar
  • 1
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 ?
devhs's user avatar
  • 507
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 ...
ZealousWeb's user avatar
  • 2,098
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 ...
Mital Shah's user avatar
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&...
developerphp's user avatar
0 votes
1 answer
98 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 ?
user95530's user avatar
0 votes
1 answer
474 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 ...
Arun Sharma's user avatar
  • 1,325
0 votes
1 answer
81 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.
Sergio Vargas's user avatar
0 votes
1 answer
279 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 ...
Magento_learner's user avatar
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 ...
Arun Sharma's user avatar
  • 1,325
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 ...
freestate's user avatar
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 ...
audio-engineer's user avatar
0 votes
1 answer
304 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 ...
Pawankumar's user avatar
0 votes
1 answer
422 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?
Miguel's user avatar
  • 569
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 ...
xSimas's user avatar
  • 1
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.
devhs's user avatar
  • 507
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 ...
Asad Ullah's user avatar
  • 1,461
0 votes
0 answers
335 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 ...
bhargav shastri's user avatar
0 votes
1 answer
285 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"?> <...
sudo55's user avatar
  • 1,004
0 votes
3 answers
163 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 ?
dev php's user avatar
  • 45
1 vote
2 answers
758 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 ?
devhs's user avatar
  • 507
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 ...
St3phan's user avatar
  • 2,907
2 votes
1 answer
292 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?
Ali Jaafar's user avatar
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(\...
Greg's user avatar
  • 2,729
0 votes
1 answer
46 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 ...
somutesting's user avatar
0 votes
1 answer
460 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 ...
Shivani Singh's user avatar
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 ...
wvkni's user avatar
  • 1
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
dev php's user avatar
  • 45
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][...
Massimo's user avatar
0 votes
2 answers
850 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) ->...
Devidas's user avatar
  • 3,358
0 votes
1 answer
283 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, ...
Nick M.'s user avatar
0 votes
1 answer
650 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 ...
Shivani Singh's user avatar
0 votes
1 answer
360 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 ...
Shivani Singh's user avatar
0 votes
0 answers
99 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 ...
Daly Design's user avatar

1 2 3
4
5
46