osCmax v2.5 User Manual
Results 1 to 2 of 2

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

This is a discussion on osc 2.3.1 - Member Type Control v1.1 (MOD) within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Okay, so I can't find a forum section for osc 2.3.1, so it's going in here. I've installed the Member ...

      
  1. #1
    Lurker
    Join Date
    Nov 2011
    Location
    Iowa, USA
    Posts
    2
    Rep Power
    0


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

    Okay, so I can't find a forum section for osc 2.3.1, so it's going in here.

    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?

  2. #2
    Lurker
    Join Date
    Nov 2011
    Location
    Iowa, USA
    Posts
    2
    Rep Power
    0


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

    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.)

    Code:
          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...

    Code:
          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 (because the field is actually and integer). And I think there were a couple places where there was only one "=" where it should be "==".
    Last edited by Munch; 11-19-2011 at 05:28 AM.

Similar Threads

  1. Control Login
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-24-2010, 09:01 PM
  2. member type control from admin
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 05-28-2009, 07:12 PM
  3. member type control from admin
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-23-2008, 02:00 AM
  4. Control Login
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-08-2007, 08:31 PM
  5. what pages does the static.tpl.php control?
    By Kristine in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-26-2004, 05:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •