Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

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


Guest

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?

Link to comment
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 "==".

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...