2022 Developer Survey is open! Take survey.

Questions tagged [create-order]

The tag has no usage guidance.

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

Magento 1.9 Skrill create order before payment success

we have Magento 1.9 and want to use Skrill as a payment method. Our problem now is that the order was saved in Magento before the payment was processed. When the payment is completed, the order entry ...
user avatar
1 vote
1 answer
67 views

Place order programatically & redirect to thankyou/success page. (Magento 2)

I am working on creating a functionality where I have added a "buy now" button on the product page, when the user clicks that button then a popup form appears, entering all necessary details ...
user avatar
0 votes
0 answers
20 views

How to set the custom price of product while add selected products for the order int he backend

When I place the order from backend I want to set the custom price of the product while loading the product collection. And that custom price should pass further while click on the add selected ...
user avatar
  • 12
0 votes
1 answer
56 views

How to create an order programmatically with bundle items in Magento 2?

This is my script: $quote = $this->quote->create(); $quote->setStore($store); $quote->setCurrency(); $quote->assignCustomer($customer); $product = $this->...
user avatar
  • 3,535
1 vote
0 answers
28 views

Error 400 while trying to POST to orders

When I try to create an order, I get the error 400, can someone help me? Things that may help you guys help me I'm using NodeJS with Express Data that I'm trying to post { "entity&...
user avatar
  • 21
0 votes
1 answer
72 views

How to remove the visibility for customer address attribute field while creating order in magento backend

I wish to delete customer address attribute in create order section in Magento backend I have tried to override the following file to unset the attribute before rendering. For testing purpose, I ...
user avatar
  • 2,376
0 votes
1 answer
121 views

How to know which Admin create the order in Magento 2 backend?

I want to know who create the order.I have 5 Salesman and they have diffrence Admin ID. When customer order from other sale chanels(Facebook chat,...) and our salesman create the order on magento ...
user avatar
0 votes
0 answers
408 views

How to import orders programmatically

Hi am currently looking for a way on how to import orders from magento 1 to 2 i have already extracted orders data from magento 1 using standalone script but now the challenge is how to import that ...
user avatar
  • 1,664
1 vote
0 answers
169 views

Magento 2 How to charge extra fee

I create order programmatically and i want to charge extra fee during the order, please don't offer extensions. I use the code bellow for the created order and i need charge extra fee in that code ...
user avatar
  • 738
0 votes
1 answer
450 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" =>...
user avatar
0 votes
2 answers
2k 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 ...
user avatar
0 votes
0 answers
247 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 $...
user avatar
  • 1,521
0 votes
1 answer
1k 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', '...
user avatar
  • 650
1 vote
7 answers
882 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. ...
user avatar
  • 3,896
0 votes
2 answers
527 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. ...
user avatar
  • 738
1 vote
0 answers
78 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"> <...
user avatar
  • 660
1 vote
1 answer
1k 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 ...
user avatar
0 votes
1 answer
291 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 - ...
user avatar
1 vote
1 answer
1k 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->...
user avatar
  • 650
1 vote
2 answers
3k 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 ...
user avatar
  • 891
0 votes
1 answer
278 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
0 votes
1 answer
507 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 /...
user avatar
0 votes
0 answers
67 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 ...
user avatar
0 votes
0 answers
828 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?
user avatar
0 votes
3 answers
836 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()->...
user avatar
  • 672
1 vote
1 answer
6k 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 ...
user avatar
1 vote
0 answers
301 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->...
user avatar
  • 1,682
0 votes
1 answer
994 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?
user avatar
  • 1,682
0 votes
1 answer
997 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() ...
user avatar
0 votes
1 answer
3k 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/...
user avatar
0 votes
1 answer
238 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 ...
user avatar
3 votes
1 answer
2k 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, ...
user avatar
4 votes
0 answers
175 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.
user avatar
7 votes
4 answers
12k 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?
user avatar
  • 831
1 vote
0 answers
321 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 ...
user avatar
  • 93
3 votes
1 answer
83 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 ...
user avatar
1 vote
1 answer
451 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 ...
user avatar
  • 75.5k
2 votes
3 answers
5k 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. ...
user avatar
  • 1,094
1 vote
1 answer
3k 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 ...
user avatar
  • 1,595
0 votes
1 answer
2k 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::...
user avatar
  • 1,018
0 votes
1 answer
5k 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 ...
user avatar
  • 63
1 vote
1 answer
550 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 ...
user avatar
0 votes
1 answer
469 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 ...
user avatar
1 vote
1 answer
2k 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.
user avatar
3 votes
2 answers
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 ...
user avatar
  • 33
11 votes
2 answers
3k 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 ...
user avatar
  • 453
3 votes
2 answers
4k 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 ...
user avatar
2 votes
3 answers
11k 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->...
user avatar
0 votes
2 answers
589 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. ...
user avatar