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

default entry for comapny name

This is a discussion on default entry for comapny name within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I am trying to modify /includes/modules/Order_Info_Check.php at about line 148. I'm trying to make the default value for company equal ...

      
  1. #1
    Lurker
    Join Date
    May 2009
    Posts
    2
    Rep Power
    0


    Default default entry for comapny name

    I am trying to modify /includes/modules/Order_Info_Check.php at about line 148. I'm trying to make the default value for company equal to a cookie value.
    Code:
    if ($is_read_only) {
          echo $account['entry_company'];
        } elseif ($error) {
          if ($entry_company_error) {
            echo tep_draw_input_field('company') . ' ' . ENTRY_COMPANY_ERROR;
          } else {
            echo $company . tep_draw_hidden_field('company');
          }
        } else {
          echo tep_draw_input_field('company', $account['entry_company']) . ' ' . ENTRY_COMPANY_TEXT;
        }
    If I change 'company' to anything else, such as $_COOKIE["CONAME"] the value is not set at all. Any ideas why?

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: default entry for comapny name

    The value is not set - possibly cause the cookie does not have this information or is not set.

    osCMax's cookies contain no information other than session ID. Everything is stored in the db.

    Personally - I don't see the value of collecting the company name somewhere else and storing it in a cookie. Firefox and IE have an AUTOFILL option that would do this function for the few who need it.

    Once the account is setup then you never need this in the cookie any more. It is a one time setup when the customer open his account (which should be the first time it ask for a company name to begin with).
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

Similar Threads

  1. User or Customer Item Entry Module
    By trochia in forum osCmax v2 Customization/Mods
    Replies: 4
    Last Post: 10-21-2008, 08:23 AM
  2. Duplicate entry '0' for key 1, after installing oscmax
    By ournature in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 12-30-2006, 08:43 AM
  3. popup_image.php error log entry
    By torweb in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 07-19-2006, 10:01 AM
  4. Phone Orders Manual Entry
    By auntie22 in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 08-24-2005, 06:08 AM
  5. Duplucate Key Entry
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 09-30-2003, 06:01 AM

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
  •