osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Capitalize First Letter for Create Account Fields

This is a discussion on Capitalize First Letter for Create Account Fields within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; This may be the simplest contribution ever. Many of our customers were to lazy to capitalize the first letter of ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 07-22-2007, 07:00 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 11,072
Thanks: 81
Thanked 348 Times in 327 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Capitalize First Letter for Create Account Fields

This may be the simplest contribution ever. Many of our customers were to lazy to capitalize the first letter of the following fields :

First Name
Last Name
City
Business Name
Street Address

This drove me crazy, so, I fixed this for them on the fly using the ucwords() function.

-------------------

Example from create_account.php

To capitalize the first letter of the "first name" field:

FIND :

$firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);

CHANGE TO :

$firstname = tep_db_prepare_input($HTTP_POST_VARS['firstname']);
$firstname = ucwords($firstname);

------------

Done! Simply do that for any field you wish to capitalize for your customers.


More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
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
How do i create a search drop down menu with multiple fields? intensea osCMax v2 Customization/Mods 0 04-07-2007 03:25 PM
adding fields to PWA (purchase without account) betagirl osCMax v2 Customization/Mods 0 01-27-2007 11:40 AM
Create an Account - How to Re-Order Fields ? Lobotaman osCMax v1.7 Discussion 2 04-11-2005 11:15 AM
Create Account,Checkout,My Account, Language Pictures probs! Mikey osCommerce 2.2 Installation Help 0 03-08-2004 11:20 PM
Extra fields in Customer Account cralyn osCommerce 2.2 Modification Help 6 01-26-2004 09:20 AM


All times are GMT -8. The time now is 07:44 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax