Hi!

I would like to display the payment method the customer chose on the Orders view, but so far I couldn't figure out how to add that field. I have 3 payment methods. An off-site credit card payment method (custom module), a bank transfer method and another one which means you'll pay for your order in the store personally.

Can someone help me how to do this?

Thanks!

Comments

rszrama’s picture

Title: Displaying payment method on the Orders screen » Add an "extra field" to displaying payment information on Order view pages
Version: 7.x-1.2 » 7.x-1.x-dev
Component: Order » Payment
Category: support » feature

Right now the only way to do it would be through a theme template unfortunately. It's a good feature request for the Payment module, though.

rszrama’s picture

Title: Add an "extra field" to displaying payment information on Order view pages » Add an "extra field" to display payment information on Order view pages
gomino’s picture

Any help to do it through themes?

Thanks

leex’s picture

It's possible to do this using another module: http://drupal.org/project/views_field_view

Firstly, make a new block on the 'commerce_payment_order' view and remove all fields but the 'Payment method' (remember to override, don't remove the fields from the master display). The contextual filter should already be setup to accept the Order ID. Name this display appropriately.

Now go back to your display and add the views field, selecting the view you just made. Also if you haven't done so already, add the order ID field and arrange it above the views field so that the order ID is available to pass to the views field as the contextual filter.

Edit the views field and set the order id raw as the contextual filter, then you should be good to go!

leex’s picture

Issue summary: View changes

grammar