Questions tagged [orders]

Mark questions related to Magento orders

Filter by
Sorted by
Tagged with
0
votes
0answers
11 views

Sync/Export orders to google spreadsheet

Can anyone help with a solution through script or extension to automatically export/sync data to google spreadsheets such that whenever an order is placed, it instantly adds the data to the sheets on ...
0
votes
0answers
20 views

Adding two virtual products with different option in orders

I'm creating order programmatically. I'm creating two different orders. The first one is sended to an external API and the second one is saved in Magento. I have this problem : If I'm having twice ...
0
votes
1answer
28 views

Magento 2: Change quote base currency programmatically?

I am creating orders programmatically in Magento 2 and want to change the order base currency as well as current currency to my custom currency, irrespective to currency available in Store as I don't ...
0
votes
0answers
22 views

Magento2: MailChimp order email issue

How to send order emails to customer using mailchimp? Subscriber email is sending successfully. But order notification email is not sending. Customer and Orders are not sync with mailchimp account. ...
0
votes
1answer
21 views

Magento Observer to block spam orders not working

I'm facing some issues with orders placed by bots. I noticed that all orders are made by a specific phone number and also by a specific street. So I looked for a way to block orders that are made ...
0
votes
0answers
11 views

Add dynamic mass action in sales grid order magento 2 [duplicate]

I wrote this system.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file....
0
votes
1answer
26 views

Magento 2: How to filter orders by order items

In magento 1, I was able to filter orders by the following: $orderitem = Mage::getModel('sales/order_item')->getCollection(); $orderitem->addFieldToFilter('name',array('like'=>'%'.$value.'%')...
2
votes
1answer
31 views

How to assign an order to an email after account create?

I need a help with magento 2. I noticed that when I place an order as a guest, after checkout i can create an account, when i do this, the order is assigned to this email and this order shows in my ...
0
votes
0answers
12 views

Set discount amount for each quote item during place order in Magento 2

I have a requirement like below. Create order progrmmatically. Order is getting created successfully I used below code. //$orderData = $this->getOrderDetails($customerServiceProductDetails); // ...
0
votes
1answer
15 views

How to get order ID after placing order with rest API

How can we get the increment_id when you finish a order as a login customer? I try to get the increment_id to show in a succes page but the only ID I'm receving is the order_id after I've made the /...
0
votes
0answers
12 views

Magento Reorder Data used by customer

Can anyone help me how to find out frequently the "reorder" button/function is used by customers in Magento 1.9? Thanks
0
votes
1answer
32 views

set discount amount while creating order progrmmatically in magento2

I am creating order pro-grammatically. I have referred below code https://www.rakeshjesadiya.com/how-to-create-order-programmatically-in-magento-2/ My requirement is to set discount amount for each ...
0
votes
0answers
12 views

How to set custom tax and custom discount while placing order programmatically magento 2

hi all, we are placing order programmatically at this momemnt we are trying to add custom tax and custom discount. If you guys have any idea please guide me thanks in Advance.
0
votes
1answer
26 views

Magento2 : Show First placed order first in order history

In My order tab in customer account show last order first i want there first placed order first.
0
votes
1answer
34 views

Magento 2 “No Payment Methods” in Admin New Order

In a Magento 2.3.1 site, I have two third-party payment methods and PayPal Express Checkout enabled. On the frontend, the three works perfectly. But, when I am trying to create a new order on admin ...
0
votes
2answers
30 views

How to create backorder programatically magento 2?

I am using the following code to add products to Quote object which throws an error if the product is out of stock. /** @var \Magento\Catalog\Model\Product $product */ $product->setTaxClassId($...
0
votes
1answer
71 views

Magento 2 message: “The authenticity of the gateway response could not be verified.” Error Authorize.net

I am facing below error while doing payment by Authorize.net Sandbox Account "The authenticity of the gateway response could not be verified." I tried to resolve this by creating new Transaction ...
1
vote
1answer
31 views

How to get all orders items by product_id?

I want to get all order items by product_id not by order_id. So Please read carefully and give me a solution. Thanks in Advance.
0
votes
0answers
12 views

What is the correct way to join 2 tables in DataProvider for Admin Grid?

I want to join my order table with the Magento order table to display data on my custom grid. The correct way to add fields to a DataProvider is by using addFieldStrategies and addFilterStrategies via ...
0
votes
0answers
13 views

Magento2 : How to load Javascript url with order ID at checkout page?

How can I get the order and use it to load the javascript at checkout page (javascript url include order information)?
0
votes
1answer
20 views

How to get orders items data from particular order?

I want to get details of custom options which selected whenever customer choose at order time. Thanks
1
vote
1answer
27 views

afterPlaceOrder function is not redirecting to external link for custom payment gateway

I added the code for afterPlaceOrder function in sample payment .js file,but it is not been redirected to external link.When I click on Place Order button,success page is been displayed(default ...
0
votes
1answer
49 views

Export Orders from Magento 2 database to another Magento 2 database

Is it possible to move orders from one Magento 2 database to another? Or can I manually add the information in the database table (if so what is the table(s) called? I only have 10 orders to move ...
0
votes
0answers
17 views

Pending Payment Order Lifetime doesn't expire or cancel orders

Preconditions: Magento Open Source version 2.2.8 PHP 7.1.29, MySQL 5.6, Apache 2.4. Clean install. No extensions or themes installed. Steps to reproduce 1) Go to Stores -> Configuration -> Sales -> ...
0
votes
0answers
12 views

Magento2 Add Extension attribute to Order Items

I want to add Extension attribute to order items. Magento\Sales\Api\Data\OrderItemInterface I want to add field in order items that current item has custom options or not? How can i do it in order ...
0
votes
1answer
20 views

Where is set shipping_description value in sales_flat_order table?

I need to set a new value for the shipping_description column of the sales_flat_order table. I would like to know in which file I can define this value before the order is created in the database ? ...
0
votes
0answers
22 views

M2 - Configurable product stock is 10, max to order is 6

I have multiple configurable products on my webshop and the quantity is set to 10, but if I want to order 7 items, I get a message "The specified number is not available". And if I order 6 items, it's ...
0
votes
0answers
13 views

How to set default order status is complete when the order is created in Magento 1.x

I have a problem, my shop allows users to buy products with "Manage Stock = No and Qty = 0". It's work fine, but when the order is created, if the customer buys the product with qty > 0 then order ...
0
votes
1answer
19 views

Saving custom data against a sales order item

I am programatically saving orders. I need to be able to set a custom data for order items in sales_order_item table. What is the best way to do this? I notice there is an additional_data column ...
1
vote
0answers
20 views

Setting Billing and Shipping address for Quote

I am trying to set the Billing and Shipping address for the Quote extracted from the Order like this, $quote->setBillingAddress($order->getBillingAddress()); $quote->setShippingAddress($...
1
vote
1answer
27 views

I Can't views orders magento 2.3

Hi, I try to view the order in backend and show me this error, I need help to fix it
2
votes
0answers
22 views

How to apply order status by payment method in Magento 2?

I have a custom Offline Payment Method, with a option to apply the new order Status. Its similar to Zero Subtotal Checkout. <?php /** * Copyright © Magento, Inc. All rights reserved. * See ...
1
vote
1answer
49 views

Magento 2 Order creates Shipment twice that causes an error

If I click the ship button in the order, sometimes I got 404 Error. I only encountered this error if I use Microsoft Edge. In my Network Monitor, the POST request sometimes sending twice. Is there ...
2
votes
0answers
16 views

How come the order number comes up wrong in ShipWorks?

I followed this QA's method to customize the order number on my recent Magento 2.3.1 migration. But when ShipWorks downloads the orders, they still start at 1. ShipWorks' support team called back and ...
1
vote
0answers
17 views

How to transform a quote into an order from CALLBACK HOOKS, MAGENTO 2.3

I'm trying to integrate a payment gateway. And they provide a callback hooks i've set for them to return me the CartID (Quote's entity_id). But from here on, it feels like it isnt right for me to ...
2
votes
2answers
149 views

Magento2 - New order e-mail for us

we have an extension that sends out a new order e-mail to our own private mailbox. Which is different from the ones that customers get. We print these mails automatically on a receipt printer. We use ...
3
votes
0answers
23 views

Magento 2 - Order status update observer

I am looking for order status update observer In many post I have found this one: sales_order_save_after But, it is not working, I have checked it myself. It is not even listed in these articles: ...
1
vote
1answer
33 views

Magento 2 - Cancel order incrementing 2 quantity of product

In Magento 2.2.5 EE Before placing order: Product quantity = 1 stock status = 1 After placing order: product quantity = 0 stock status = 0 After cancel order: product quantity = 2 stock status = 1 ...
1
vote
0answers
68 views

How to do selected single product should be purchase alone?

I have one restricted product, here how to do selected single product should be purchased alone? No other products are eligible to add add-to-cart if this product available in the add-to-cart, same if ...
2
votes
0answers
23 views

Magento 2 - Card decline status not reverting quantity

Just like cancel order, I have created a new status card_decline I have set canceled state to this new status. Now when I am updating any order to card_decline status programmatically then it is not ...
2
votes
1answer
40 views

Magento 2 - After invoice delete programatically can't create new invoice properly

I have used the code if ($order->getInvoiceCollection()->count()) { $_invoices = $order->getInvoiceCollection(); if ($_invoices) { foreach ($_invoices as $invoice) { ...
0
votes
1answer
29 views

How to delay/stop order emails

I would like to stop order emails when order placed in Magento store. Actually, the whole idea is to send an email when order placed with "We've received an order and will let you know asap." ...
0
votes
1answer
25 views

Extension attribute on order make a column error

I'm trying to add an extension attribute to my order entity. I've follewed this link : https://www.rakeshjesadiya.com/extension-attribute-in-order-data-magento-2/ But I can see my extension ...
0
votes
0answers
19 views

Magento 2 and MCOM : syncronize return

My Magento 2 is link to the MCOM (Magento Commerce Order Management). Currently, I can syncronize orders status between both. Now, I would like to syncronize return : If a user want to make a return,...
0
votes
0answers
12 views

Object DOMDocument should be created. with order custom attribute

I've followed this link : https://www.yereone.com/blog/magento-2-how-to-add-new-order-attribute/ to add a custom attribute to my orders. But when I check at the step before the event I've got this ...
0
votes
0answers
11 views

Magento 2.2 option products of bundle are considered as simple product in pagination My Order

With reference to the question Magento 2 option products of bundle are not showing in my orders magento core I have removed the following line to get Bundle products option list my order grid. ...
2
votes
1answer
33 views

New orders are not showing in the orders grid but payement received?

I upgraded from Magento 2.5.0 to 2.3.1 I am using only PayPal as a payement method. new orders are not showing in the orders grid in Admin > Sales > Orders and emails are not sent !! when I check ...
0
votes
1answer
7 views

SetBillingAdress not working (prog) on quote

I'm creating orders programmaticaly but my billings address are not updating. I can set the shipping address that I want (another from the connected user) but the billing is still the one from the ...
-1
votes
1answer
45 views

when user click on placed order, order pdf will generate and attached it to user's order email

I want the following actions. When any user clicks on "Place Order" on the checkout page, A pdf of this order will be automatically generated. And this pdf is automatically attached to email "Your ...
0
votes
1answer
43 views

new orders are not showing in orders grid

I upgraded from Magento 2.5.0 to 2.3.1 I am using only PayPal as a payement method. new orders are not showing in the orders grid in Admin > Sales > Orders when I check PayPal summary I can find ...