How to disable payment method for manually created order - magento

I have magneto store.it is working fine.we are taking payment online when some one placed orders.We are also placing order manually from the admin.We don't want to take payment when place order manually.
So we want to disable payment method for manually placed order.

Related

Magento 2 - Transfer cart items from API to web store

I am creating a complex shopping configurator app that allows a user to customize and visualize a product which consists of multiple store items. Once they confirm their purchase, I iterate and add all of the selected products to a guest cart using the .../rest/V1/guest-carts API endpoint.
I would now like to forward the user to the store checkout to continue the purchasing process from the web store, e.g. https://store.url/checkout/cart. Of course, that basket needs to be populated with the items that were added via the API. I've looked through the documentation but not been able to find
anything relevant but I wonder if I can pass over the store_id or the quote_id and the relevant products be inserted accordingly?
Not sure if this is still relevant for you but, I was also working on a similar problem and came across this plugin for Magento 2. Basically what this plugin does is use a customer's token and a quote_id and creates a temporary session on the Magento2 Store and then redirect the user to the checkout page. This was a starting point for me, as I had to customize this plugin further to suit my requirements.
Hope this helps.

Prestashop wrong payment automatically added to order

I am observing strange behavior:
Every new order has wrong payment in backoffice.
It doesn't matter what type of shipping or what type of payment I choose, every time one particular payment appears. Even if no payment was already made, or order status changed.
Error is shown on image bellow:
Thanks for any suggestions.
Problem was with module "Custom order reference" which wasn't auto - incrementing order reference for some unknown reason. I couldn't remove it from admin, so I had to delete it manually via ftp and remove overridden classes.
Now it is working.

Magento Hooks - Will Magento allow me to do this?

I'm going to be starting a E-Commerce project and the client is interested in using Magento. In this project, when a customer adds something to the cart, I'll need to pull them out of the flow, where they'll proceed through a custom wizard-esque area.
They basically design a document using a drag and drop interface. After they finish, that document will be saved as a PDF, and I want them redirected to checkout
So my questions are
Does Magento have hooks available for after an item is added to the
cart ?
If I pull them away to this other section of the site (Wizard
portion), changes they make will potentially add costs to
their cart. Would I still have access to products, prices, and the
cart so that I can continue to modify their cart until they return
to checkout ?
Magento users Event-Observer pattern, where you can hook into virtually any action which is performed and execute your custom code,
Refer to below links,
http://inchoo.net/category/ecommerce/magento/events-observers/
https://gist.github.com/peterjaap/6973324
http://huztechbuzz.wordpress.com/2014/04/26/complete-list-of-all-events-in-magento/
http://www.nicksays.co.uk/magento-events-cheat-sheet-1-7/
So you have to figure out which event you can use and plugin your custom code.
As long as i remember all the cart info ( products/prices ) is stored in the $_SESSION. So you can get all the information from there you need, modify it via your so-called wizzard and udpate the session information after that!
Cheers! :)

Paypal token null, One step chekout Magento

Hi I'm building a custom checkout page using the one step checkout methods.
$checkout->initCheckout();
$checkout->saveCheckoutMethod('guest');
$checkout->saveBilling($billingAddress, false);
$checkout->saveShipping($billingAddress, false);
$checkout->saveShippingMethod($postData['shipping']['method']);
$checkout->savePayment($postData['payment']);
$checkout->saveOrder();
It works correctly with check/money and after a few adjustments with authorize.net, but with paypal using the express checkout(this the one I need) after checking in the model files I see that the token is null.
app/code/core/Mage/Paypal/Model/Express/Checkout.php
app/code/core/Mage/Paypal/Model/Api/Nvp.php
app/code/core/Mage/Paypal/Model/Express.php
Those are the files I tracked while doing the process.
Using the regular chekout(the one that comes with magento not my custom one) I can made a paypal order without any problem.
Is there another way using the magento build in functionality to make the paypal order? or anyone had this issue before and know what is going on?

Modify an Order via the API prior to Invoicing?

In the default Magento 1.7 install is it possible to modify an order via the API prior to it being invoiced? I know there is no mechanism to do this in the Admin without a module but wasn't sure if the new API connections may allow this to happen.
To clarify, the idea here is someone places an order and then decided that they want to add something else to the order. Ideally I would like to push this change via the API from our other inventory system as our CSRs do not use the Magento interface to handle invoicing or shipment details.
I'm afraid this is not possible with the default Magento API. See the Sales Order API documentation. You may hold or cancel the order but not edit its information.
If you edit an order in the Magento backend and save it, the old order is cancelled and a new order is created. These orders are recognisable by a special number format ("-[versionnumber]" is appended to the order number), see the Managing and Editing Orders documentation.
You may want to mimic this behaviour using the default Magento API.
Get the information from the current order.
Create a new cart, fill it with the corrected information and create a new order for this cart (see the Checkout/Cart API documentation for necessary methods).
Cancel the old order.
It won't be trivial, but it should be possible.

Resources