Author Topic: Order Invoice Payment Method  (Read 1591 times)

Offline Marklawrence

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Order Invoice Payment Method
« on: January 29, 2024, 11:53:56 AM »
A few years ago I made a customization to my order_invoice.tpl which I used for book keeping purposes. At the bottom of the file I added the following:

<?php echo $order['date_added']; ?>#
<?php echo $order['payment_method']; ?>#
<?php echo $total['text']; ?>#
<?php echo $order['payment_address']; ?>#
<?php echo $order['customer_telephone']; ?>#
<?php echo $order['customer_email']; ?>!#
<?php foreach ($order['product'] as $product) { ?><?php echo $product['name']; ?><?php } ?>

This created a text line at the bottom of the invoice with the date, payment method, total price, customer address, phone, email, and what they ordered. It all worked fine.

I recently updated to a newer version of AbanteCart and the payment_method stopped working. I used the following line to see what options I had:

<?php echo '<pre>'; print_r($order); echo '</pre>'; ?>

Much to my dismay, I found that payment_method is no longer in the array order at all. I would like to know how I can reenable payment_method so that my bookkeeping isn't lacking that information.

Offline abolabo

  • core-developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2048
  • Karma: +319/-13
  • web for all, all for web!
    • View Profile
    • AbanteCart
“No one is useless in this world who lightens the burdens of another.”
― Charles Dickens

 

Database Error

Please try again. If you come back to this error screen, report the error to an administrator.