Guest Posted November 19, 2011 Share Posted November 19, 2011 I've installed the Member Type Control v1.1, but I can't get the admin/customers.php to write everything to the database. There are two simple fields, customers_type (dropdown menu) and customers_membership_no (text box). the customers_membership_no does save and write to the db, but I can't get customers_type to save and write to the db. In the customer's account_edit.php, it always reads: "Membership Type: Basic Member" Can anyone assist with this? Quote Link to comment Share on other sites More sharing options...
Guest Posted November 19, 2011 Share Posted November 19, 2011 Sorry - but I figured it out, at least for me. The instructions say, in a number of places... (I changed the names to Diamond, etc. from Iron, etc.) if ($account['customers_type'] == 'D') { $mem_type=ENTRY_CUSTOMERS_TYPE_DIAMOND; } else if($account['customers_type'] == 'P') { $mem_type=ENTRY_CUSTOMERS_TYPE_PLATINUM; OR.... $type_array = array(array('id' => 'D', 'text' => ENTRY_CUSTOMERS_TYPE_DIAMOND), array('id' => 'P', 'text' => ENTRY_CUSTOMERS_TYPE_PLATINUM), array('id' => 'G', 'text' => ENTRY_CUSTOMERS_TYPE_GOLD), array('id' => 'S', 'text' => ENTRY_CUSTOMERS_TYPE_SILVER), array('id' => 'N', 'text' => ENTRY_CUSTOMERS_TYPE_NONE)); etc......... but it SHOULD say... if ($account['customers_type'] == '5') { $mem_type=ENTRY_CUSTOMERS_TYPE_DIAMOND; } else if($account['customers_type'] == '4') { $mem_type=ENTRY_CUSTOMERS_TYPE_PLATINUM; AND.... $type_array = array(array('id' => '5', 'text' => ENTRY_CUSTOMERS_TYPE_DIAMOND), array('id' => '4', 'text' => ENTRY_CUSTOMERS_TYPE_PLATINUM), array('id' => '3', 'text' => ENTRY_CUSTOMERS_TYPE_GOLD), array('id' => '2', 'text' => ENTRY_CUSTOMERS_TYPE_SILVER), array('id' => '0', 'text' => ENTRY_CUSTOMERS_TYPE_NONE)); etc..................... I replaced the letters D,P,G,S,N with 5,4,3,2,0. And I think there were a couple places where there was only one "=" where it should be "==". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.