Magento – Payment method for administrator / Order by phone

Who has a shop, If the customer can also call, for purchase, has probably also the problem, that there are many payment methods, but few, which are useful in the detection of orders in the backend.

There are of course delivery (usually provided with fees) and advance. But if the customer e.g.. wants to pay with PayPal or by credit card, then it is more difficult. One can say, of course, the customer “On the order confirmation is then available in advance, but it is PayPal”….but is unprofessioniell.

Therefore, a payment type is best, ONLY be seen in the backend and not the frontend. And best yet, which can be used for various payments such as credit cards AND PayPal, but still makes a good impression.

How do we proceed?

We have the payment method “Purchase Order” or “Retrieval from job” select, we do not need otherwise. So in the first step, we provide a, that these are only in the backend but not in the frontend = for the customers appear.

Dazu die Purchaseorder.php aus dem Ordner appcodecoreMagePaymentModelMethod in den Ordner appcodelocalMagePaymentModelMethod kopieren (if not available, Create) and there add two lines.

    protected $_canUseInternal = true;
    protected $_canUseCheckout = false;

So then would the “new” Look version:

class Mage_Payment_Model_Method_Purchaseorder extends Mage_Payment_Model_Method_Abstract
{
    protected $_code  = 'purchaseorder';
    protected $_formBlockType = 'payment/form_purchaseorder';
    protected $_infoBlockType = 'payment/info_purchaseorder';
/** Share only to use Admin */
    protected $_canUseInternal = true;
    protected $_canUseCheckout = false;

    /**
     * Assign data to info model instance
     *
     * @param   mixed $data
     * @return  Mage_Payment_Model_Method_Purchaseorder
     */
    public function assignData($data)
    {
        if (!($instanceof date Varien_Object)) {
            $date = new Varien_Object($data);
        }

        $this->getInfoInstance()->setPoNumber($data->getPoNumber());
        return $this;
    }
}

PictureThen in the Backend under almost any system > Configuration > Sales > Number of species, the payment type enabled. You should not show up in the frontend then.

The title could then e.g.: on “Such. Order:” be changed.

PictureThen it looks at the backend order entry like this.

It would be nice now but, if we “Order number” e.g.. against “Payment with” would exchange. For this we take the simplest (Attention, not update-safe. So if one of the following files to be renewed, also need changes to be made again!) from the folder app / locale / en_US the three files

Mage_Payment.csv
Mage_Sales.csv
Mage_XmlConnect.csv

and looking for “Purchase Order Number”. The translation we replace by “Order number” or. “Order number:” to “Payment with” or “Payment with:”. And if we are ever here, we translate the same still “Purchase Order”,”Retrieval from job” newly namely e.g.. to “Purchase Order”,”Order by phone (Administration)”.

Picture

At the latest after a cache reload it should order system then look in the backend so.

PictureIn the order confirmation email, it looks like this

And in the order itself so

Picture

 

The viewer is inclined probably noticed, that here there is a little sloppiness. I was then but for “Order by phone” chosen instead of “Such. Order” and omitted the colon.

Used in Magento Version 1.7. Ask, Comments, Proposals? Us directly or as a comment.

Published by Covos

Since 2009 I have been working intensively with Magento. I started with the creation and operation of B2C stores. This was extended through my work in the logistics sector. This resulted first specialized B2E systems. Today I work day-a day with exciting B2C, B2B- and B2E projects and reports in this blog about challenges and give insider tips.

2 comments on “Magento – Payment method for administrator / Order by phone”

  1. Thanks for this Workarround, who helped us.
    However, I contend a little in the bill presentment, there is then
    “Payment: Order by phone” better it would be this here “Payment Order by phone: (Beahlungsmethode)” or just (Payment method” would stand.
    Do you know at what point you have to adapt the?

    1. I think, that for this case “Order by phone” should replace or can just go away – this will be the easiest. Then you can enter into the appropriate field what you want.

Leave a Reply

Your email address will not be published. Required fields are marked *