We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [create-order]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
11
votes
2answers
2k views

Magento create order programmatically with paypal payment method

Currently we have two magento independent websites. One is behaving as storefront and other as back end. User can place the order at front end. So same order I am trying to create programmatically ...
7
votes
4answers
7k views

Magento 2 add custom column in product grid?

How can I add new column in product grid when you create new order from admin panel ? see this screenshot for more information. i need product qty in new column?
4
votes
0answers
170 views

Magento - Create order using REST API

I need to create place order using REST API. I want to help someone to create API. If you have any reference URL for perfect code please let me know.
3
votes
1answer
70 views

_save_after triggered before saving the product data in database

Intro: I'm a Python(Django) developer who is working at a company where we use Magento in the backend to sell products on our website. I'm not really experienced in Magento. We are using Magento ...
3
votes
2answers
2k views

Item has $0.00 price in cart when creating an order programmatically

So, I am trying to create an order programmatically in Magento 1.12 EE. I can load the a product and see that the price property holds the correct value. When I add the item to the cart, the price ...
3
votes
2answers
3k views

Remove an item from admin order quote and add new item programmatically

I am working on a project that needs to tweak admin order creation function of magento. I need to remove an item and then add another item programmatically while creating order. For example, few ...
3
votes
1answer
963 views

Creating Order and Collecting Totals

I'm having a very hard time collecting the right totals when creating an order by code (magento 1.9, php5.4). I'm creating a quote as you noramlly would, added products and shipping/billing address, ...
2
votes
3answers
8k views

How to add Shipping Rate while creating Order programmatically

Shipping Method addition is happening as it should be. But, Shipping Rate as per the Shipping method or, custom Shipping rate is not getting added to the order. $address = $quoteObj->...
2
votes
2answers
4k views

Programatically Create Order in Magento 2.1

Has anyone figured out how to programatically create an order in Magento 2.1 yet ? There are a few tutorials kicking around for 2.0 which work nicely but every since I upgraded it no longer works. ...
2
votes
1answer
1k views

Add products to sales quote in magento admin programmatically

I have customized search product grid as per client need (created new grid and disabled search grid) under sales order create page. I have created new grid successfully after "Items Ordered" block. ...
1
vote
1answer
3k views

Get the available (and Working) Shipping Methods for a quote

I'm working on a mobile application, that is creating an order on Magento programmatically through a custom REST implementation, and everything is working fine, except one thing that i can't find any ...
1
vote
1answer
588 views

Creating Quote and Order programmatically and the issue with ReservedOrderId

I was trying to create orders and quotes programmatically, in an API resource that is consumed by a Mobile Application, and i was successful. However every now and then I got a ...
1
vote
7answers
215 views

Create order programmatically product with customizable options in Magento2

I am trying to create order programmatically product with customizable options, and it's working but it's created order with one product even I passed two products for me for these I tried below code. ...
1
vote
2answers
857 views

How to create guest order programmatically for Guest User

I have followed Create order programmatically in Magento 2 But it is saving the customer. And When I skip customer set data and customer save then It's getting an error report like "Please enter ...
1
vote
1answer
410 views

Create an order from an existing order

I have seen lot of posts, but didn't get proper answer to create new order from an existing orders at magento. Concept is create an order from an existing orders by copying all elements/object from ...
1
vote
1answer
396 views

Create ORDER through REST Api return error 500 (post SUPEE-6788)

I'm working with Magento CE 1.7.0.2. I've deployed SUPEE-6788 security patch and related 3rd party extension compliant patches on my test and preproduction environment. I went successfully across an ...
1
vote
1answer
392 views

Can't create order in back end! Google couldn't help

I was just testing a new extension, and was trying to create an order and when I click on shipping method, nothing comes up. So I assumed it was the problem of the extension so I deactivate it in xml ...
1
vote
0answers
23 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
1answer
177 views

Magento 2.3: How to Create Order Using Braintree Vaulted Card

I'm trying to create an order programmatically using braintree payment method and the customer's saved credit card. // prepare adresses, products in quote, shipping method - skipped $quote->...
1
vote
0answers
292 views

Create custom shipping method for creating order programatically

i've successfully created an order programatically, the problem is i can only use shipping method which already exist like 'flatrate_flatrate' and 'freeshipping_freeshipping' like this: $this->...
1
vote
0answers
287 views

Magento 2 : “Please Wait” Spinner Shows up Between EVERY Field While New Order in Admin

I enter new order in my admin, as I move from field to field (say, customer first name to customer last name) little 'please wait' spinner appears for a second or 2. This slows order creation process ...
1
vote
1answer
1k views

Disable place order button [closed]

I want to disable the place order button when they meets some condition and also it alert the message when the customer click the place order button. Help me to finish my requirement.
0
votes
1answer
2k views

Magento 2 - Add custom block to admin order create form

I need to add new block to admin order create form (in totals section). First I tried to do it by adding sales_order_create_index.xml to my module and adding my block to <referenceBlock ...
0
votes
1answer
4k views

How to extend SOAP v2 API to make Order Attributes Writable

I have Amasty "Order Attributes" installed and working. I need to be able to extend SOAP API v2 to allow me to programmatically create an order and update these custom order attributes. What all needs ...
0
votes
1answer
117 views

Editing 2 orders simultaneously bug

Steps to reproduce: Click Edit on first order, i.e 000000001 Click Edit on second order, i.e 000000002 Click Add Products on first order edit screen Select any product and click Add Selected Product(...
0
votes
2answers
636 views

Get all the orders created by admin username(s)

I want to get and filter orders based on who created it in admin (Orders grid or Reports). We have few admin users who creates orders from backend, I want to know whether we can get all the orders ...
0
votes
1answer
61 views

Magento 2.3: Error Creating Order Programmatically

I'm trying to create an order programmatically using the following code in a cron script: $order = [ 'currency_id' => 'USD', 'email' => 'test@test.com', '...
0
votes
2answers
354 views

Create Order programmatically with tablerates

I'm trying to place an order programmatically with tablerates. Here is my code $quote->getShippingAddress()->addData($postData['shipping_address']); $quote->getBillingAddress()->...
0
votes
1answer
909 views

Create order programatically without customer

i need to create an order programatically without using customer or ordering as guest, is there a way to do this?
0
votes
1answer
2k views

Magento 1.9 - Create order using REST API

I want to create order in magento 1.9 using rest api, but i am unable to find any method to create order using rest api. I can't find any help from the below link : http://devdocs.magento.com/guides/...
0
votes
1answer
1k views

Fatal error: Call to a member function isVirtual() on null in Quote.php

I am trying to create an order programatically. This is my code so far: <?php // Init magento base class require_once 'app/Mage.php'; Mage::app()->setCurrentStore(Mage_Core_Model_App::...
0
votes
1answer
444 views

Getting Fatal Error while creating order from admin

I am getting below error on Select customer step after clicking on Create Order button. Call to a member function getStore() on a non-object in /app/code /core/Mage/Sales/Model/Quote/Payment.php ...
0
votes
2answers
413 views

Magento validation and jQuery reload

i got this weird issue on happening only on IE8, 9, 10 and 11. I wrote some jQuery validation code for telephone field on "admin/sales_order_create/index". This code worked as expected on Firefox. ...
0
votes
2answers
1k views

get - admin create order link and specify customer (for manual orders)

I want to generate a link to the sales create order page (manual order page) in the admin and submit a customer id so that it opens automatically with the customers details filled out in the address ...
0
votes
1answer
39 views

Magento 2 Create order from admin user using rest API

I want to create orders from admin on behalf of a customer by using REST API. I have created cart and added items by using the below code. $userData = array("username" => "admin", "password" =>...
0
votes
2answers
39 views

Magento 2: Create order from quote without quote submit

I want to create order from quote programmatically without submit quote. Because if customer redirect to failure page then we have one button like Make payment which redirect to customer on checkout ...
0
votes
0answers
80 views

Error in creating Order Programmatically, Magento 2

I am creating order at controller action, just to test if its working or not as: class Save extends \Magento\Framework\App\Action\Action { /** * @param Magento\Framework\App\Helper\Context $...
0
votes
2answers
113 views

How to create order for bundle product with rest api Magento2?

How to create order for bundle product with rest api Magento2 ? I create an order using Rest Api for a simple product, but for a bundle product it does not work, any example can help me, thanks. ...
0
votes
1answer
132 views

How to add customer details for guest user using Magento rest API - create order

I am creating an order for a guest user using Magento rest API. Approach: Create a quote Add items to the cart Prepare checkout - Adding billing and shipping information for the order Create an ...
0
votes
1answer
97 views

Inventory management after order created via rest API in Magento 2.x version ( without cart)

I have created Magento rest API for the third party integrations and I have used a couple of API's for listing products, fetching product detail and created order. I used [PUT] - /V1/orders/create - ...
0
votes
0answers
35 views

CREATING CUSTOM FIELDS USING MAGENTO 2 UI COMPONENTS on chekcout page

I have one issue like i need to add custom fields for specific shipping method i fallowed reference link enter link description here I was able to add in front end checkout page in same i need admin ...
0
votes
1answer
120 views

Create order programmatically with UPS shipping method

I'm trying to get available shipping methods and create an order in model. I have Flatrate and UPS enabled, and see these options in checkout on frontend. Particularly, list of available methods is ...
0
votes
1answer
156 views

Magento ver. 2.2.3 can't create order from backend

From the backend when I try to place a new order and when I try to add new products, I'm getting following error PHP Fatal error: Uncaught Error: Call to a member function checkData() on null in /...
0
votes
0answers
64 views

magento 2.2.4 : Create orders programmaticaly

I want to know how to create orders programmatically. I want to create an order in the same time, add cart product when I click on by "confirm my order". I want my customer to add product to his ...
0
votes
0answers
530 views

Magento2.2.3 - Create order from admin panel with credit card payment method

I want to create order with credit card payment method from Magento2 admin panel. Magento2 can't display payment method in the backend. How can I solve this?
0
votes
1answer
664 views

Error when trying to create order Programmatically Magento 2.1

I am trying to create a new Order programatically. But i keep getting following fatal error when ever i try to create an order Fatal error: Uncaught Error: Call to a member function setFinalPrice() ...
0
votes
1answer
151 views

Some Issue while creating order with bundle product

I Find this script to create order in Magento programmatically, it works for a sample product and not for a bundle product . when i launch this script the order has created, but with out price ...