Results 1 to 9 of 9

Hybrid View

  1. #1

    Default Proper Case Support for 1.3.x

    Hi Everyone,

    Just updated the code from SpeedyG's old case sensitivity modification (http://www.zen-cart.com/forum/showth...ght=propercase) to 1.3.x in case anyone is interested.

    Tested against a vanilla 1.3.0.2.

    Any comments, requests, updates should be posted here -- as the old thread is now archived.

    Paul
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2004
    Posts
    246
    Plugin Contributions
    0

    Default Re: Proper Case Support for 1.3.x

    When adding the propercase code to your files you need to fix a typo
    Where it specifies the lastname at the end of that line in brackets it says firstname

    It should say lastname

    Basically the code should look like this

    /****** Begin: CONVERT TO PROPERCASE ******/
    $firstname = propercase_input($firstname, 1);
    $lastname = propercase_input($lastname, 1);
    $street_address = propercase_input($street_address, 0);
    $suburb = propercase_input($suburb, 0);
    $city = propercase_input($city, 0);
    $state = propercase_input($state, 0);
    $postcode = strtoupper ($postcode);
    $company = propercase_input($company, 1);
    /******* End: CONVERT TO PROPERCASE *******/

    You will notice that I have added support for the comapny name and post code for us guys and gals in the UK
    UK based Zen Cart Web Designer here www.handcoded.co.uk

  3. #3
    Join Date
    Jul 2004
    Location
    UK
    Posts
    182
    Plugin Contributions
    0

    Default Re: Proper Case Support for 1.3.x

    Anyone managed to get this working for 1.3.5 yet?

  4. #4

    Default Re: Proper Case Support for 1.3.x

    Quote Originally Posted by profitshock
    Anyone managed to get this working for 1.3.5 yet?
    I'll attempt to do this today, having just installed a test version of 1.3.5 myself.

    Paul

  5. #5

    Default Re: Proper Case Support for 1.3.x

    The following version works with a vanilla 1.3.5 installation based on the 09042006 release.

    It doesn't have any of the UK specific modifications (which i'd like to turn into country-based workarounds -- like uppercasing the country name for postal services that require it -- at some point in the future), but those are easily implemented following the reply above.

    Paul
    Attached Files Attached Files

  6. #6
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

    Default Re: Proper Case Support for 1.3.x

    Can anyone confirm if "ProperCase" has been updated to work with Zen Cart v.1.36 or if the latest ProperCase 1.35 version works fine with Zen Cart v.1.36?

    Specifically does the latest version of ProperCase integrate well when the new state drop down code in Zen Cart v.1.36 is enabled? With the new state drop down code built into the 1.36 core, ProperCase need no longer apply to the Zones field, but rather just apply to the other data manually entered when a customer creates an account or updates their addressbook.

    Woody

 

 

Similar Threads

  1. Add a quantity per case/master case
    By Bigpehr in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 15 Dec 2010, 09:40 PM
  2. Customer details - Proper case
    By cjeb456 in forum Managing Customers and Orders
    Replies: 5
    Last Post: 15 Feb 2009, 11:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg