Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jun 2004
    Posts
    113
    Plugin Contributions
    0

    Default Display credit card type on admin invoice?

    How can I make the credit card type (Visa, MC, etc) display in the admin section:
    1) On the Orders page: in the order summary in the right column
    2) On the Order Invoice itself

    Currently it only says "Payment method: credit card". Maybe while I'm at it I'd also like it to have the number (XXXXXXXXXXXX1234) display there too.

    Ver 1.3.8a, credit card and Check/MO modules installed

    Thanks!

  2. #2
    Join Date
    Jun 2004
    Posts
    113
    Plugin Contributions
    0

    Default Re: Display credit card type on admin invoice?

    Aha, I have made some progress. I have it going for admin/invoice.php, with this code at line 150:
    <td class="main"><?php echo $order->info['payment_method'] . " (" . $order->info['cc_type'] . " " . $order->info['cc_number'] . ")"; ?></td>
    Look OK?

    However, making a similar change to admin/orders.php seems deeper... I'm not sure where to make the change so the info shows up in the right-hand column summary of an order.

    Pointers appreciated!

  3. #3
    Join Date
    Jun 2004
    Posts
    113
    Plugin Contributions
    0

    Default Re: Display credit card type on admin invoice?

    I tried editing orders.php at line 412 with the added fields, but that's not the right place... that shows when I click on the 'e' for edit and that screen already has the cc_type and cc_number info.

    I would really like them to display in the right-hand-column that is the order summary, on the main Orders page.

  4. #4
    Join Date
    Jun 2004
    Posts
    113
    Plugin Contributions
    0

    Default Re: Display credit card type on admin invoice?

    I've gotten even closer but have not been able to figure this out.

    First of all, I have added this at line 861 of admin/orders.php:
    $contents[] = array('text' => "I WANT cc_type TO GO HERE");
    and that works.

    Unfortunately, it seems that $oInfo->cc_type doesn't exist or is NULL at this point in the code. Over in includes/classes/order.php I found this at line 340:
    // 'cc_type' => (isset($GLOBALS['cc_type']) ? $GLOBALS['cc_type'] : ''),
    but un-commenting that line doesn't help.

    Pointers appreciated for getting this info into $oInfo.

    Thanks!

    P.S. Am I asking this in the right forum? I haven't had any replies yet.

 

 

Similar Threads

  1. Replies: 5
    Last Post: 29 Nov 2010, 06:28 AM
  2. Replies: 1
    Last Post: 26 Oct 2009, 03:30 AM
  3. credit card type
    By chabates in forum PayPal Website Payments Pro support
    Replies: 12
    Last Post: 10 Jun 2008, 03:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg