Q: Payment Method Displayed on Invoice?

Events happening in the community are now at Drupal community events on www.drupal.org.
goldentoque's picture

I am having a little trouble solving a problem and would like to pick the brains of the e-commerce experts ;-)

First off I using Drupal 4.7

Ecommerce version is 2.1

As my clients do not process credit cards online, they use the COD payment type to complete the transaction and then contact the purchaser to finalize payment. They also have a Onfile payment type which I created which is just a clone of the COD Module so purchasers can indicate that they want to use a credit card that the site has on file.

I have had two requests from my clients... display the phone number on the invoice that is created in the store, as well as display the payment method.

I have solved the phone number problem but am having issues with displaying the payment method.

As far as I can tell the invoice is generated in the store.module in the function theme_store_invoice . Adding the output of the payment method would logically occur after the following line on or about line 337

$payment_info .= t('<div><strong>Transaction ID:</strong> %txnid</div>', array('%txnid' => $trial ? t('Trial Invoice - Not Yet Posted') : $txn->txnid));

I have been spending the last couple of days familiarizing myself with the ecommerce modules' code but cant seem to see how to pull in the data contained in the field payment_method in the table ec_transaction

Has anybody done this yet? Should this data be displayed already? Can anyone help?

Thanks,

Darren

e-Commerce Module

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: