From: Steve Sutton Date: Wed, 18 Apr 2018 20:04:07 +0000 (-0400) Subject: Add to invoice and billing statements X-Git-Tag: v1.0.0^2~46 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d810afda8635c8872481d275547fa281bae2d548;p=WP-Plugins%2Fglm-member-db-billing.git Add to invoice and billing statements Adding 'Pay Invoice' link to: Member billing statements. Admin Invoice list. --- diff --git a/css/admin.css b/css/admin.css index 391b3cd..6843554 100644 --- a/css/admin.css +++ b/css/admin.css @@ -128,3 +128,12 @@ display: inline; float: right; } + +@media only screen and (max-width: 600px) { + .glm-billing-left-half { + width: 100%; + } + .glm-billing-right-half { + width: 100%; + } +} diff --git a/css/front.css b/css/front.css index 5c16336..30495f1 100644 --- a/css/front.css +++ b/css/front.css @@ -89,3 +89,12 @@ .glm-billing-form input[type=submit] { margin-top: 20px; } + +@media only screen and (max-width: 600px) { + .glm-billing-left-half { + width: 100%; + } + .glm-billing-right-half { + width: 100%; + } +} diff --git a/models/front/billing/becomeMember.php b/models/front/billing/becomeMember.php index 7ebb33c..8456b92 100644 --- a/models/front/billing/becomeMember.php +++ b/models/front/billing/becomeMember.php @@ -142,12 +142,43 @@ class GlmMembersFront_billing_becomeMember // extends GlmDataBilling $error = true; $messages[] = $errors['password'] = "Passwords don't match!"; } - // if ( isset( $passwd ) && preg_match() - // $messages[] = '
$wpUser: ' . print_r( $wpUser, true ) . '
'; - // Password test. - // Verify they match and they aren't weak passwords. - // Process the main form + // 1. Setup the member + $memberData = array( + 'access' => $access, + 'member_type' => $memberType, + 'created' => date( 'Y-m-d' ), + 'member_slug' => $memberSlug, + ); + // 2. Setup the member_info + $memberInfoData = array( + 'member', + 'member_name', + 'status', + 'reference_name', + 'descr', + 'short_descr', + 'addr1', + 'addr2', + 'city', + 'state', + 'country', + 'zip', + 'region', + 'county', + 'phone', + 'toll_free', + 'url', + 'email', + 'mailing_addr1', + 'mailing_addr2', + 'mailing_city', + 'mailing_state', + 'mailing_zip', + 'create_time', + ); + // 3. Setup the contact (and wpUser) + // 4. Setup the custom fields // Process any custom fields break; diff --git a/views/admin/billing/invoices.html b/views/admin/billing/invoices.html index 3c664b0..c84bdde 100644 --- a/views/admin/billing/invoices.html +++ b/views/admin/billing/invoices.html @@ -42,7 +42,8 @@ {/if}
- +
+
@@ -53,6 +54,7 @@ + @@ -76,6 +78,7 @@ + {/foreach} diff --git a/views/admin/billing/statements.html b/views/admin/billing/statements.html index 795c495..5b6416d 100644 --- a/views/admin/billing/statements.html +++ b/views/admin/billing/statements.html @@ -15,7 +15,8 @@ - + + @@ -35,6 +36,7 @@ + {* Payments *} @@ -48,22 +50,12 @@ + {/if} {$alt = $alt + 1} {/foreach} -
Due Date Amount Total BalancePay Invoice View
{$t.due_date.date} {$t.amount_total} {$t.balance} {if $t.paid.value} {else}Pay Invoice{/if} View
Line Items (invoices only) Amount Balance Pay InvoiceView
${$transaction.transaction_data.amount_total} ${$transaction.transaction_data.balance}{if $transaction.transaction_data.paid} {else}Pay Invoice{/if} View
${$transaction.transaction_data.amount}