Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Mark questions related to Magento orders

0
votes
2answers
11 views

Entity is not initialized

I'm trying to build a function that gets orders of a customer by id but it gives me an exception: Entity is not initialized that's my code <?php namespace VendorName\Orders\Model\Orders; use ...
0
votes
0answers
13 views

Cannot change the order status from “Pending Payment” to “Processing” in Magento ver. 1.9

I have some orders with "Pending Payment" status and want to change the status to "Processing", however, I am unable to do so. Looking at the answer: how to change status from pending to processing ...
1
vote
1answer
21 views

How to download Invoice without login Magento Admin?

I need to get invoice without login Magento admin, is it possible using any CRM or API Services?
0
votes
1answer
9 views

Version 1.9.01 Orders cancelled but payment showing on payment platform

We are having problems with some orders that are going to cancelled, even when we have payment on our payment system. Can anyone help?
0
votes
0answers
12 views

Magento 2 | How to extend Algolia Search for adding products in Order at admin side?

I am building a functionality for adding products to order with Algolia Search feature. When we go to Sales->Order->Create New Order->Add products here by default products show like this: ...
1
vote
2answers
101 views

How to get order event after placing order using observer in admin side?

i want to get the order event and want to use the order object data , tried this but something is missing, here is what i tried and how can i use this data in my helper/block class or controller ...
3
votes
2answers
43 views

How to get order History of customer in Magento 2 API?

Get list of all previous orders of the customer using Customer token in API.
0
votes
0answers
11 views

before place order checkout stock by remote api

We are using Magento2.2.6 and we need to update stock when remote ERP also call remote ERP API when placing an order, Currently we are using Magento2's observer pattern and update stock when user ...
0
votes
2answers
24 views

Magento 2: Can't get item ids on sales_order_save_after event

I need something to do using order item ids when order is created. I tried sales_order_place_after and sales_order_save_after events, but unfortunately. Items from $observer->getEvent()->...
0
votes
0answers
8 views

Add custom attribute to order API

I am looking for a way to read a field added with success using the order api. I can save any data I want to the sales_order (extension_attribute.xml). But I have no idea how to read it with API. ...
2
votes
1answer
115 views

Get the shipping method on a order

I want to get the shipping cost for a specific order on magento 2 v2.2.4. What is the query I have to do?
0
votes
0answers
8 views

Not able to use ShipperHQ custom shipping method while creating the order using Magento 2 API

We are in Magento enterprise cloud environment and use Magento 2.2.6 version. We have enabled ShipperHQ, but not able to use ShipperHQ custom shipping method while creating the order using Magento 2 ...
0
votes
0answers
10 views

MCOM connector not getting installed Magento2

I am trying to install MCOM connector module from composer, but getting following error. [InvalidArgumentException] ...
0
votes
0answers
27 views

Braintree and mageworx order editor extensions not working together well. Order creation flow is interrupted and can you help us in solving this?

We are in Magento enterprise cloud environment and use Magento 2.2.6 version. We use Braintree extension to process the credit card payments and use mageworx order editor extension to allow us to ...
1
vote
1answer
30 views

How is the order attached to newly created customer after checkout

Hey I hope this question isn't to broad but how is the order attached to a customer that is created after guest checkout? Background to my question: I want to attach a custom field to my customer. ...
0
votes
0answers
22 views

How to set 'Total Paid' and create one closed transaction without creating blank invoice in Magento CE 2?

I would like to set 'Total Paid' of order with certain value, which may be slightly higher than the total amount of the order, and create a closed captured transaction (payment) with the paid amount ...
0
votes
0answers
11 views

New Order Import & Payment Processing

We currently receive orders from a retailer in an xml format that we would like to process through our Magento 2.1.6 installation. Ideally by uploading. The xml includes payment info so would like the ...
0
votes
1answer
39 views

how to create order for guest in magento 1.9

I am trying to create an order for guest checkout programmatically. I have gone through a lot of articles. Finally, I got one stackExchange link for creating order. But In that code, they are not ...
2
votes
2answers
64 views

Magento2 : Remove shipping charge and credit cart type and number from order invoice

I want to remove shipping charge and credit card type and credit card number from order invoice. please check image: I have overridden this core file vendor/magento/module-sales/Model/Order/...
2
votes
0answers
9 views

Fooman EmailAttachment = 'Payment Methods' is blank on the emailed PDF but not on the manually created PDF for Magento 1

I have recently installed Fooman EmailAttachment module and my order email PDF doesn't display Payment Method information. Only payment method information is missing from Order PDF. Can anyone help ...
0
votes
2answers
26 views

Magento 2 - Change order status when Credit memo created

Below code to create credit memo programmatically public __construct( \Magento\Sales\Model\Order $order, \Magento\Sales\Model\Order\CreditmemoFactory $creditmemoFactory, \Magento\Sales\...
0
votes
2answers
21 views

In Magento 2 how do i get the order number from the invoice collection factory

I manage to get the order id but not the order number $invoicesCollection = $this->_invoiceCollectionFactory->create()->addFieldToSelect(array('*')); $invoices = $invoicesCollection->...
0
votes
1answer
41 views

How can Save API respond (For each order request - PDF file) with order id in database?

I create event with observer and execute it . In execute function I get API respond (PDF file) for each order request . How can save this pdf link with order id in table I create it (Install schema) ?
0
votes
2answers
16 views

We had to do a restore from a month-old backup, now there is a conflict with order numbers. How to set Order numbers to be issued higher?

Magento 1.9.1 Porto theme We had to do a complete restore from a month old backup. Now there is a problem with Paypal versus the Order numbers because Magento is assigning the Order numbers that we ...
0
votes
1answer
58 views

How to cancel Magento order programmatically

I want to change the order status to 'canceled' when payment failed. I've tried the code below but the order status gets saved as processing: $orderId = $number8; //order id $order = ...
0
votes
2answers
27 views

I'm getting a Error on creating orders inside the Admin panel Magento 2

I'm getting a error on creating the order inside the Admin panel like below Order saving error: Your API key is not valid. I don't known why it is happening.?? Please anyone help me. Thanks in ...
0
votes
0answers
13 views

Magento 2.2.0 : Wrong Download Items and Download Link in order Invoice Email and customer account

I am facing an issue, My site have downloadable products when I place order and invoice is auto generate her as we are using paypal. So the Emails and in customer account and admin orders all are ...
0
votes
1answer
16 views

How to get Order information from event checkout_onepage_controller_success_action?

I am trying to get order information to do some tasks, after the order is placed. I tried with the events "checkout_submit_all_after" and also with "sales_order_place_after" but the only event I am ...
0
votes
0answers
16 views

exception 'Exception' with message 'Quote totals must be collected before this operation.'

I am using Magento 1.9.2 and I have am receiving the below error in the exception-log file when a placing an order 2018-10-16T07:40:00+00:00 ERR (3): exception 'Exception' with message 'Quote totals ...
0
votes
0answers
25 views

How to auto-generate order XML - Magento 2

What is the best way to generate an order XML automatically whenever a new order is created in magento 2? I'm going to import these datas to ERP using a webservice, so it needs to be in XML. ...
0
votes
1answer
70 views

Override Sales order history issue in magento2

I am trying to override sales order history block into custom module. Below code i used in di.xml file. <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...
0
votes
0answers
31 views

Magento2 order is not created after payment (paypal)

I have a weird problem. Order seem not properly created after payment successfully. Order is expected to show in Sales -> Orders but it's not. I can find that missing order from customer account in ...
1
vote
1answer
15 views

how to get Product id from order id

i want to get products ids in Order by using order id, i tried few methdods for it but none of them seems working $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $...
0
votes
1answer
35 views

Order Status Pending

I have created shipping programmatically in magento2, it created shipment but order status didn't not change if ($_order->canShip()) { $this->_helper->debug('creating order shipment'...
3
votes
1answer
64 views

What Database Tables Contain Credit Card Information?

I have a Magento 1 database that I want to remove sensitive data from before I allow a consultant to connect to. What tables/rows would I need to fill with dummy data? I have looked at my tables ...
3
votes
2answers
41 views

Magento2 Mass Action to Sales Order Grid

I am trying to apply a mass action to sales_order_grid but there is nothing happening. I have done so for is: vendor_name/module_name/view/adminhtml/ui_component/sales_order_grid.xml <?xml ...
0
votes
0answers
32 views

Magento2: Create a new order from Admin panel for particular customer

Create a new order from Admin panel for a particular customer. Magento default functionality is not working When I add a new product and update to the shopping cart option then page refresh but the ...
0
votes
2answers
31 views

Url of last order of current user

I need to implement a link which redirects to the url of the last order of the current user How do I do that ? I have a code that load the last order, but I need to get the URL $orders = $...
1
vote
1answer
30 views

Remove order in customer dashboard

How to remove "recently order" in customer dashboard ? I tried this : <referenceBlock name="sale.reorder.sidebar" remove="true"/> but nothing happened
0
votes
0answers
19 views

order status not changing on magento 2 admin

order status not changing on the orders list page on changing the status from order view page (from the dropdown) This issue came after reimporting the database (means first we exported the database ...
1
vote
2answers
77 views

How to change the order number's prefix of a specific store, Magento2

Magento2.2.4, php7; I have multiple stores where I want each one of them to have a different order number's prefix. Is there anyway to realize that? Thanks! Edit: I'm trying to avoid using raw ...
0
votes
1answer
43 views

Onepage checkout order successful page is blank no errors Magento 2.2.6

I have problem with one page checkout ordering page after placing an order and prossesing to checkout Success Page is blank... I tryed to change magento mode from production to developer but then ...
0
votes
0answers
9 views

Add Shipping Information to Order Information page in backend

Really new here, hopefully my question will make sense and be asked in the right place. :) In Magento 2 when you click on an order it would be really nice to see the Shipping Method that was selected....
0
votes
0answers
30 views

Save extension attribute on sales_order

I have created an extension attribute, it's a field created in the checkout but when I want to save it sales_order, it still empty. My column exist in my table sales_order. Please find my code : ...
1
vote
1answer
19 views

Cant open pending orders

Hello i have problem with loading pending orders from backend Im pressing view button and it trying to load the page but after a while i get 500 internal server error any suggest??
1
vote
1answer
18 views

How can I add a button in “My downloadable products” in customer dashboard that can only be enabled after an hour of order creation in Magento 2?

This screenshot is for "My downloadable products" section in customer dashboard: According to above screenshots I have added "Test" button and right now I am keeping this button disabled I am using ...
1
vote
0answers
32 views

client order detail page total due issue magento 1.9

i am using magento 1.9 i have created a rule for if order price is less then $5000 add shipping charges $10. its working fine but what i need is when the rule is applied than plus $10 into total due ...
3
votes
2answers
211 views

Magento 2 stock inventory is not being updated

when I placed order in front-end or back-end, quantities of product is not getting reduced or decremented When i have checked in admin panel... Please help me out.. Thanks in advance...
2
votes
0answers
15 views

Magento 2 Cart Price Rule Coupon Specific Coupon Does not Apply for some porducts in Admin Order

There is an issue which I am not sure if it's a bug and I hope someone can tell me, the bellow screen shoot were taken from an order: As you can see the product in red circled didn't apply the ...
1
vote
0answers
29 views

Magento 2: Logged-in customer can't place order with new shipping module

The logged-in customer can't place an order with the custom shipping module gives warning msg and can't process due to Please specify a shipping method But the guest user can place an order without ...