Updating the new member and mark wp-user when paid
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 12 Sep 2018 20:34:48 +0000 (16:34 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 12 Sep 2018 20:34:48 +0000 (16:34 -0400)
New member form should set business fields for contact address.
Setup the wp-user when marking an invoice as paid.

classes/billingSupport.php
models/front/billing/becomeMember.php

index 6321361..0bcd233 100644 (file)
@@ -1539,6 +1539,8 @@ class GlmBillingSupport
             array( '%s' ),
             array( '%d' )
         );
+        // After setting the new renewal date also update the member to active
+        $this->setMemberAccountActive( $account );
     }
 
     /**
index 45eae39..2aab802 100644 (file)
@@ -303,10 +303,10 @@ class GlmMembersFront_billing_becomeMember // extends GlmDataBilling
                     'create_time'     => date('Y-m-d H:i:s', time()),
                     'ref_type'        => $this->config['ref_type_numb']['Member'],
                     'ref_dest'        => $member_id,
-                    'addr1'           => $billing_addr1,
-                    'city'            => $billing_city_id,
-                    'state'           => $billing_state,
-                    'zip'             => $billing_zip,
+                    'business_addr1'  => $billing_addr1,
+                    'business_city'   => $billing_city_id,
+                    'business_state'  => $billing_state,
+                    'business_zip'    => $billing_zip,
                 ),
                 array(
                     '%d', // active