Jump to content

nnikolaj

Members
  • Content count

    25
  • Joined

  • Last visited

Profile Information

  • Real Name
    Nikolaj Nielsen
  1. That's because this contribution is made for the old version of oscommerce (MS2.2) and no one have updated it to RC2a yet. There's a lot of diffrences in those two versions and this contrib would only damage your RC2a. I've tried to install it several times on my modded RC2a, but with no luck yet. Hopefully someone will update it soon to match the RC2a version of OSC. /Nikolaj
  2. nnikolaj

    [CONTRIBUTION] Krika News V1.1

    This actualy helped on all the formating issues too. Now red text does'nt appear green and blue text does'nt appear as black size 38 and so on. I thank you alot for this fix!
  3. nnikolaj

    AJAX Attribute Manager support

    Hi there. Great Attribution. I've installed version 1.5 long time ago and it worked great. Today I've upgraded to version 2.3b, by deleting and replacing the AttributeManager folder. But i have a major problem. I found other people in this thread who had the same problem, but I couldn't find the solution anywhere. And it drives me nut! Please help. After installed (Upgraded) to version 2.3b, I'm getting this error: "Session not registered - You cant access this page directly" I run the script on an external server with php5 and apache server.
  4. nnikolaj

    AJAX Attribute Manager support

    Nice Attribution but I have a request: Is it possible to make some sort of sorting on the attributes so you can move each attribute up or down with an arrow for example. Right now there is no logic in the way the attributes is beeing added. We sell clothes in my store. The size for the clothes is "S, M, L, XL, XXL". When I create the Size attribute serie and add "XXL" as the first attribute it creates the category size and adds the attribute "XXL". Afterwards I add the attribute "XL" and it put it over the XXL, exactly as i Wanted. The I add the "L" attribute and it put it under the XXL, which is wrong, since i wanted it over the "XL" attribute. And so on it continues to add over or under the attributes. A sorting option would be appriciated here. Best regards. Nikolaj
  5. nnikolaj

    Member Approval problem !!!

    The problem is "existing email addresses" in the database. This contrib, somehow, disables the check that should return an errormessage to the customer, signing up, that the email address already exist. Instead it continues to the Create_account_success.php, sending emails both to the admin and the customer, but doesn't add the customer to the database so you can approve him in the admin panel. Other threads about this problem::: http://forums.oscommerce.com/index.php?showtopic=194561 http://forums.oscommerce.com/index.php?sho...member+approval Can someone please make an updated version of this contrib? Best regards Nikolaj
  6. This is continued from this thread::: http://forums.oscommerce.com/index.php?sho...member+approval ...But since it is an error in version 1.5 i thought it needed a new topic. Problem described below: ------------------------------------------------------------------------------------- Can someone please help with an update to this great contrib? That would be extremly appriciated! Nikolaj
  7. nnikolaj

    Member Approval v 0.1

    I'm having this problem too. But has nothing to do with state or anything. The problem comes, when i sign up with an already existing emailaddress or adding an existing email address in the addressbook in a new address. The problem is that after this contribution is installed, OSC is no longer looking for existing emails in the database. It just continues to the create_account_success.php, sending the mails as it should, but doesn't add the customer to the "Waiting for approval" sektion in admin. I have tried to figure this out for weeks now how to solve this, so OSC will return the create_account.php telling the customer that the email already exist i the database, but can't find the solution anywhere. I have searched the net every day, but the closest threads about this problem, is the threads listed in this sektion. I have tried to install the contribution on a new clean OSC and also tested if it worked before the contribution was installed and it did. Can someone please help? please tell me where to change things to make this work. I have added the install instructions for version 1.5 below::: Member Approval 1.5 - September 1, 2004 I just added a section on admin\filenames.php because my install did not work until i added some code there. I think i have a newer release or snapshot but either way, i had to make that small addition, so i thought i would pass it along. I take no credit for the original code, but highly reccomend it, its been a wonder for me, thank you to the original author! Member Approval v 0.1 - 12/07/2003 Edited on Nov 28 2003 new version Member Aproval V 1.2 Member Approval V 1.3 Edited all define variables. ( Cleaned up code a little) Released 12 July 2003 Released under the GNU General Public License Member Approval 1.4 4/5/2004 by Paul Boekholt - updated for MS2.2 - error message when member not approved Install: Get member approval 1.3 from http://www.oscommerce.com/community/contributions,1691 and replace the README file with this one. ################################################################## READ CAREFULLY THE README FILE before installing this module ! BACKUP YOUR DATABASE AND MODIFIED FILES BEFORE UPDATING ################################################################## This module will allow administrators to approve members before they have access to the shopping cart facilities. Customers will follow the usual signup routine, whereby on completion the site administrator receives an e-mail notifying that a new customer has signed up. The customer can then be approved or declined through the Administration panel. ################################################################## Database -------- You will have to add an extra field to the customers table of the data base ALTER TABLE `customers` ADD `member_level` INT(5) DEFAULT '0' NOT NULL; ################################################################## Installation ------------ #### [ OPEN ] ################################################################## catalog/create_account.php ################################################################## ## Find ################################ tep_session_register('customer_id'); tep_session_register('customer_first_name'); tep_session_register('customer_default_address_id'); tep_session_register('customer_country_id'); tep_session_register('customer_zone_id'); // restore cart contents $cart->restore_contents(); and delete the whole lot. ## Find this [approx line 233]: ################################ } else { $email_text = sprintf(EMAIL_GREET_NONE, $firstname); } $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); ## Replace with this: ################################ } else { $email_text = sprintf(EMAIL_GREET_NONE, $firstname); } } // customer email notification $email_text .= EMAIL_WELCOME . EMAIL_TEXT . EMAIL_CONTACT . EMAIL_WARNING; tep_mail($name, $email_address, EMAIL_SUBJECT, nl2br($email_text), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); // admin email notification $admin_email_text .= ADMIN_EMAIL_WELCOME . ADMIN_EMAIL_TEXT . EMAIL_WARNING; tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, nl2br($admin_email_text), $name, $email_address, ''); tep_redirect(tep_href_link(FILENAME_CREATE_ACCOUNT_SUCCESS, '', 'SSL')); } #### [ OPEN ] ################################################################## catalog/includes/languages/english/create_account.php ################################################################## ## Add/Replace ################################ ## find this ########################## define('EMAIL_TEXT', 'You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n\n" . '<li><b>Permanent Cart</b> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n" . '<li><b>Address Book</b> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.' . "\n" . '<li><b>Order History</b> - View your history of purchases that you have made with us.' . "\n" . '<li><b>Products Reviews</b> - Share your opinions on products with our other customers.' . "\n\n"); ## replace with ###################### define('ADMIN_EMAIL_WELCOME', 'Application to become a wholesale customer of <b>' . STORE_NAME . '</b>.' . "\n\n"); define('EMAIL_TEXT', 'Your application to become a wholesale customer [which will enable you purchase our products at a discounted rate] is currently being evaluated. We will notify you within 48 hours as to when you can access our eCommerce system. <br><br>You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n\n" . '<li><b>Permanent Cart</b> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n" . '<li><b>Address Book</b> - We can now deliver your products to another address other than yours! This is perfect to send birthday gifts direct to the birthday-person themselves.' . "\n" . '<li><b>Order History</b> - View your history of purchases that you have made with us.' . "\n" . '<li><b>Products Reviews</b> - Share your opinions on products with our other customers.' . "\n\n"); define('ADMIN_EMAIL_TEXT', 'You have received an application to become a wholesale customer from your website. Information regarding this application can be found at your online administration panel.' . "\n\n"); #### [ OPEN ] ################################################################## catalog/login.php ################################################################## ## Find this: [line 28] ################################ $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); ## Replace with this: ################################ $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id, member_level from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'"); ## and after this [approx line 34]: ################################ if (!tep_validate_password($password, $check_customer['customers_password'])) { $error = true; } else { ## insert this: ################################ if ($check_customer['member_level'] == 0 ) { $HTTP_GET_VARS['login'] = 'invalid'; $messageStack->add('login', TEXT_NOT_APPROVED); } else { ## Find this [approx line 67]: ################################ } else { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } } } } if ($error == true) { ## Replace with this: ################################ } else { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } } } } } if ($error == true) { #### [ OPEN ] ################################################################## catalog/includes/languages/english/login.php ################################################################## ## Add/Replace ################################ define('TEXT_VALID_ERROR', '<font color="#ff0000"><b>ERROR:</b></font> This account has not been approved yet, please contact the site Administrator.'); define('TEXT_NEW_CUSTOMER_INTRODUCTION', 'By creating an account at ' . STORE_NAME . ' you will be able to shop faster, be up to date on an orders status, and keep track of the orders you have previously made. Please note that new accounts must first be approved to gain access to the catalog.'); define('TEXT_NOT_APPROVED', 'Your membership has not been approved yet'); #### [ OPEN ] ################################################################## admin/filesnames.php ################################################################## ## Add ################################ define('FILENAME_MEMBERS', 'members.php'); #### [ OPEN ] ################################################################## admin/includes/application_top.php ################################################################## ## Add ################################ define('FILENAME_MEMBERS', 'members.php'); #### [ OPEN ] ################################################################## admin/includes/boxes/customers.php ################################################################## ## After this: ################################ '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' . ## Insert this: ################################ '<a href="' . tep_href_link(FILENAME_MEMBERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_APPROVAL . '</a><br>' . #####then add the following at the end just above ?>############################# define('EMAIL_CONTACT', 'For help with any of our online services, please email us at: ' . STORE_OWNER_EMAIL_ADDRESS); define('EMAIL_TEXT_CONFIRM', 'Your application to become a wholesale customer of (your store) has been approved. You can now access pricing on the (your store) site.<br>You can now take part in the <b>various services</b> we have to offer you. Some of these services include:' . "\n" . '<li><b>Permanent Cart</b> - Any products added to your online cart remain there until you remove them, or check them out.' . "\n" . '<li><b>Address Book</b> - We can now deliver your products to another address other than yours! This is perfect to drop ship direct to your customer.' . "\n" . '<li><b>Order History</b> - View your history of purchases that you have made with us.' . "\n" . '<li><b>Products Reviews</b> - Share your opinions on products with our other customers.' . "\n"); define('EMAIL_WARNING', '<b>Note:</b> This email address was used to request access to our wholesale website. If you did not signup to be a customer, please send an email to ' . STORE_OWNER_EMAIL_ADDRESS . "\n\n"); define('EMAIL_TEXT_SUBJECT', 'Account Approved'); define('EMAIL_SEPARATOR', '----------------------------------------------'); Add or take out the "\n" 's to suit your taste in spacing #### [ OPEN ] ################################################################## admin/includes/languages/english.php ################################################################## ## Add ################################ define('TABLE_HEADING_LASTNAME', 'Lastname'); define('TABLE_HEADING_FIRSTNAME', 'Firstname'); define('TABLE_HEADING_ACCOUNT_CREATED', 'Account Created'); define('TABLE_HEADING_ACTION', 'Action'); define('BOX_CUSTOMERS_APPROVAL', 'Waiting Approval'); define('HEADING_TITLE_SEARCH', 'Search'); define('HEADING_TITLE', 'Member approval'); ################################################################## ################################################################## THANKS TO: Steve 'Snowman' Kemp - who supplied me with the basis of this code. Dootch who supplied the bug fix for he confirmation email ################################################################## I hope you find this useful. David Beck eMedia Worx http://************.com.au TIA. Nikolaj
  8. nnikolaj

    Need Member Approval System for 2.2MS2

    I'm very interested in getting this cont. to work. I have the same problem as above, but my approval-thing works though. The bad thing is, that no error message appears, when i use an email address, allready existing in the database. The script just moves on at tells me that my account is waiting for approval. ... And it is not! Hope someone can make an updated version of this contribution, since it is the only way to control a wholesale site. Regards Nikolaj
  9. nnikolaj

    Customers extra fields

    I'm very interested in finding out too. Anyone know how? please tell! ... And this contribution rocks!!!
  10. nnikolaj

    ADD TAX ID NUMBER TO CREATE_ACCOUNT.PHP

    I need this contribution, since i have worked the hard way to find a contribution like this. But the build has errors. I get this::: 1054 - Unknown column 'entry_ein' in 'field list' insert into address_book (customers_id, entry_firstname, entry_lastname, entry_street_address, entry_postcode, entry_city, entry_country_id, entry_ein, entry_company) values ('33', 'sxdfsdfsd', 'sdfsdfsdf', 'aesfadafdd 6', '2344', 'dsadfasdfasdf', '57', 'dk12345678', 'adadasd') [TEP STOP] ... When I try to sign up. Any help would be nice :thumbsup: Thanks.
×