osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Reply

 

LinkBack Thread Tools
  #1  
Old 05-29-2009, 09:16 AM
Lurker
 
Join Date: May 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
cavergary is on a distinguished road
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 06-01-2009, 09:09 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -8. The time now is 09:45 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design