From: Steve Sutton Date: Fri, 26 Jul 2019 00:20:07 +0000 (-0400) Subject: Updating the payment page so payment method is shown. X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b88381a50aeddd4ba61036e1f6226dfaf7669fcc;p=WP-Plugins%2Fglm-member-db-billing.git Updating the payment page so payment method is shown. Using billing_settings payment methods to show proper payment method name. --- diff --git a/models/admin/billing/payments.php b/models/admin/billing/payments.php index 43560f1..fdcf44f 100644 --- a/models/admin/billing/payments.php +++ b/models/admin/billing/payments.php @@ -339,6 +339,7 @@ class GlmMembersAdmin_billing_payments extends GlmDataPayments 'toDate' => $toDate, 'filterAccounts' => $filterAccounts, 'searchName' => $searchName, + 'payment_methods' => $this->config['billing_payment_method'], ); // Return status, any suggested view, and any data to controller diff --git a/views/admin/billing/payments.html b/views/admin/billing/payments.html index f667aa8..3cfa561 100644 --- a/views/admin/billing/payments.html +++ b/views/admin/billing/payments.html @@ -83,7 +83,7 @@ {$t.member_name} {$t.transaction_time.datetime} {$t.amount|string_format:"%.2f"} - {$t.payment_method} + {if $t.payment_method}{$payment_methods[$t.payment_method]}{/if} {$t.payment_data}