Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 9 of 9

Thread: problems installing "how did you hear about us" mo

  1. #1
    Dumb_Question
    Guest


    Default problems installing "how did you hear about us" mo

    I have ms2max 1.7 installed and was trying to install "how did you hear about us"

    I am having problems on both admin and frontend side.

    On admin side, I dont see the anything under customers except " referrals" when i update code on admin/includes/boxes/customer.php

    Here is the code

    <?php
    /*
    $Id: customers.php,v 1.16 2003/07/09 01:18:53 hpdl Exp $

    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com

    Copyright (c) 2002 osCommerce

    Released under the GNU General Public License
    */
    ?>
    <!-- customers //-->
    <tr>
    <td>
    <?php
    $heading = array();
    $contents = array();

    $heading[] = array('text' => BOX_HEADING_CUSTOMERS,
    'link' => tep_href_link(FILENAME_CUSTOMERS, 'selected_box=customers'));

    if ($selected_box == 'customers') {
    $contents[] = array('text' =>
    //Admin begin
    // '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' .
    // '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>');
    '<a href="' . tep_href_link(FILENAME_REFERRALS, '', 'NONSSL') . '"
    class="menuBoxContentLink">' . BOX_CUSTOMERS_REFERRALS . '</a>'); //rmh referrals
    tep_admin_files_boxes(FILENAME_CUSTOMERS, BOX_CUSTOMERS_CUSTOMERS) .
    tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS) .
    tep_admin_files_boxes(FILENAME_REFERRALS, BOX_CUSTOMERS_REFERRALS).
    tep_admin_files_boxes(FILENAME_PAYPAL_IPN, BOX_CUSTOMERS_PAYPAL_IPN);
    //Admin end
    }

    $box = new box;
    echo $box->menuBox($heading, $contents);
    ?>
    </td>
    </tr>
    <!-- customers_eof //-->

    and on the frontend side I get parse error when i update the create_account .php

    This is the portion of the code that causes the error parse error

    <!-- //rmh referral start -->
    <tr>
    <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
    </tr>
    <tr>
    <td class="main"><b><?php echo CATEGORY_SOURCE; ?></b></td>
    </tr>
    <tr>
    <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
    <tr class="infoBoxContents">
    <td><table border="0" cellspacing="2" cellpadding="2">
    <tr>
    <td class="main"><?php echo ENTRY_SOURCE; ?></td>
    <td class="main"><?php echo tep_get_source_list('source', (DISPLAY_REFERRAL_OTHER == 'true' ? true : false)) . ' ' . (tep_not_null(ENTRY_SOURCE_TEXT) ? '<span class="inputRequirement">' . ENTRY_SOURCE_TEXT . '</span>': ''); ?></td>
    </tr>
    <?php
    if (DISPLAY_REFERRAL_OTHER == 'true') {
    ?>
    <tr>
    <td class="main"><?php echo ENTRY_SOURCE_OTHER; ?></td>
    <td class="main"><?php echo tep_draw_input_field('source_other') . ' ' . (tep_not_null(ENTRY_SOURCE_OTHER_TEXT) ? '<span class="inputRequirement">' . ENTRY_SOURCE_OTHER_TEXT . '</span>': ''); ?></td>
    </tr>
    <?php
    }
    ?>
    </table></td>
    </tr>
    </table></td>
    </tr>
    <!-- //rmh referral end -->.

    any ideas what is going on?

    Thanks

  2. #2
    modMan7
    Guest


    Default RE: problems installing "how did you hear about us"

    Did you update the Mysql changes as well as the php side?

  3. #3
    Dumb_Question
    Guest


    Default RE: problems installing "how did you hear about us"

    I re installed it. Now evrything looks fine on the catlog side but in admin when i click on the referrals I get this
    'The requested URL ------/admin/FILENAME_REFERRALS was not found on this serve"

  4. #4
    Dumb_Question
    Guest


    Default

    And I did check, that file is present on the server!

  5. #5
    osCMax Developer


    problems installing "how did you hear about us" mo


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    598


    Default

    FILENAME_REFERRALS means you have not added the define for FILENAME_REFERRALS in /admin/includes/filenames.php

  6. #6
    Dumb_Question
    Guest


    Default

    Thanks msasek...

    Now when I click on it I get this error,

    1146 - Table 'database_name.TABLE_SOURCES' doesn't exist

    select count(*) as total from TABLE_SOURCES

    I have already uploaded the sql table

  7. #7
    osCMax Developer


    problems installing "how did you hear about us" mo


    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,134
    Contribute If you enjoy reading the
    content here, click the below
    image to support our site.
    Click Here To Contribute To Our Site

    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    598


    Default

    Let me be more clear. Whenever you see an ALL_CAPS text like TABLE_SOURCES or FILENAME_REFERRALS it means that you have not defined it properly. You need to tell osC what exactly TABLE_SOURCES is. You need to add that define to your database_tables.php file.

    Come on now, use that gray matter!

  8. #8
    Dumb_Question
    Guest


    Default

    Thanks...msasek...that worked like charm.

    You are a true savior.

  9. #9
    seandon01
    Guest


    Default Permission Denied error in admin section

    I installed the contribution "How did you hear about us" to my max 1.7 store. (im 99% positive i did it correctly)-

    in the admin panel - customers - referrals, and reports - refferal sources i get a "Access Denied
    No Right Permission Access
    Please contact your Web Administrator to request
    more access or if you found any problem."

    Please help.. thank you in advance

Similar Threads

  1. Remove "QTPRO" for "Option Type Feature"
    By adam71o in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 01-10-2007, 10:32 AM
  2. "Price" and "Add to Cart" button inside
    By midwestwebsites in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 11-14-2005, 05:13 AM
  3. Installing "Call for Price!" on osCMax v2.0
    By rgsat in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 09-26-2005, 09:07 PM
  4. "Edit Category" problems
    By bushman in forum osCmax v1.7 Discussion
    Replies: 14
    Last Post: 08-31-2003, 03:28 AM
  5. Bulk changes to "products" database problems...
    By omnigen in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 03-02-2003, 11:55 AM

Bookmarks

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
  •