Jump to content
Sign in to follow this  
The Munch

osc 2.3.1 - Member Type Control v1.1 (MOD)

Recommended Posts

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?


Thank You!!

----------

Using: OSC 2.3.1, Algozone Template, Jcow 5 Pro, CometChat 4 Premium.

 

Contributions for OSC-2.3.1: QT Pro 4.6.1, Easy Populate EPv2.77a, Admin Notes, Contribution Tracker, Multi-Product Manager, myQBi Quickbooks Sync, Order Editor 5.0.9, Dynamic Sitemap, Tax ID in Order Editor, Separate Pricing Per Customer v4.2.2 ... etc ...

 

Contributions for OSC-2.2 I've Modified for OSC-2.3.1: Admin Level Account with Categories 2.3.4, File Logging or Email for Failed Admin Login Attempts, Autologon v1.09, Admin Specials by Categories, CCGV 6.0_1, Hide Categories, How Did You Hear About Us, MSRP Listing, Multiple Sales Per Product, osc as info site, OSC Checkout Security Boost v1.1, Points and Rewards Module, Quick Stock Updater, Quick Updates 292, RMA Returns System 2.6, Show Unit Price, Store Mode, Supplier Admin v1.3, Tell A Friend, Required Customer Details v22rc2a, Admin Change Customers Password v3.3, PDF Invoice & PackingSlip 1.6, Quick Price Updates for SPPC v1.5, Country-State Selector v1.5.5 + Limit Countries v2.2, Contact Us Popup Business Card, No Right Click, Delete Customer Account v1.2, Control Login v2.2, Member Type Control v1.1, .... etc...

Share this post


Link to post
Share on other sites

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 "==".


Thank You!!

----------

Using: OSC 2.3.1, Algozone Template, Jcow 5 Pro, CometChat 4 Premium.

 

Contributions for OSC-2.3.1: QT Pro 4.6.1, Easy Populate EPv2.77a, Admin Notes, Contribution Tracker, Multi-Product Manager, myQBi Quickbooks Sync, Order Editor 5.0.9, Dynamic Sitemap, Tax ID in Order Editor, Separate Pricing Per Customer v4.2.2 ... etc ...

 

Contributions for OSC-2.2 I've Modified for OSC-2.3.1: Admin Level Account with Categories 2.3.4, File Logging or Email for Failed Admin Login Attempts, Autologon v1.09, Admin Specials by Categories, CCGV 6.0_1, Hide Categories, How Did You Hear About Us, MSRP Listing, Multiple Sales Per Product, osc as info site, OSC Checkout Security Boost v1.1, Points and Rewards Module, Quick Stock Updater, Quick Updates 292, RMA Returns System 2.6, Show Unit Price, Store Mode, Supplier Admin v1.3, Tell A Friend, Required Customer Details v22rc2a, Admin Change Customers Password v3.3, PDF Invoice & PackingSlip 1.6, Quick Price Updates for SPPC v1.5, Country-State Selector v1.5.5 + Limit Countries v2.2, Contact Us Popup Business Card, No Right Click, Delete Customer Account v1.2, Control Login v2.2, Member Type Control v1.1, .... etc...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×