Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Posts
    4
    Plugin Contributions
    0

    Default USPS Module Options

    Does anyone have an idea of how I can create the following effect.

    I have 3 shipping options for USPS: parcel post, priority mail, and express mail

    Would it be possible to have each show up as different colors for the customer to choose from?

    Example:

    Express Mail listed in red

    Priority Mail listed in blue

    Parcel Post can remain black

    Thanks in advance,

    Dan

  2. #2
    Join Date
    Sep 2006
    Location
    Colorado Springs CO USA
    Posts
    516
    Plugin Contributions
    2

    Default Re: USPS Module Options

    in includes/modules/shipping/usps.php around line 90...

    find:

    Code:
        $this->types = array('EXPRESS' => 'Express Mail',
            'FIRST CLASS' => 'First-Class Mail',
            'PRIORITY' => 'Priority Mail',
            'PARCEL' => 'Parcel Post',
            'MEDIA' => 'Media Mail',
            'BPM' => 'Bound Printed Material',
            'LIBRARY' => 'Library'
            );
    change to:
    Code:
        $this->types = array('EXPRESS' => '<font color="#FF0000">Express Mail</font>',
            'FIRST CLASS' => 'First-Class Mail',
            'PRIORITY' => '<font color="#0000FF">Priority Mail</font>',
            'PARCEL' => 'Parcel Post',
            'MEDIA' => 'Media Mail',
            'BPM' => 'Bound Printed Material',
            'LIBRARY' => 'Library'
            );
    This will only change the color of the service title (Priority Mail, Express Mail) not the carrier name (U S Postal Service). Colors are changed in both the Shipping Estimator and Checkout Shipping pages.

    Note: It's likely that you will see the html tags for font color show up in admin in your shipping modules configuration pages. Hope you can live with that. I did a similar bold and color scheme for some of my order status definitions.

    Ron
    www.aspenshopsonline.com - ZenCart 1.3.9h
    www.wilkssupply.com - ZenCart 1.3.9h
    www.un-du.net - ZenCart 1.3.8a

  3. #3
    Join Date
    Feb 2006
    Posts
    4
    Plugin Contributions
    0

    Default Re: USPS Module Options

    Perfect, thank you!!!!

 

 

Similar Threads

  1. v150 USPS shipping module...trying to restrict shipping options programmatically
    By ecclescake in forum Addon Shipping Modules
    Replies: 11
    Last Post: 13 Dec 2024, 05:24 AM
  2. v151 Eliminate options for USPS module on certain items
    By Unclerudy in forum Addon Shipping Modules
    Replies: 2
    Last Post: 20 Feb 2015, 07:57 PM
  3. v151 USPS Module not showing lower priced shipping options
    By karine in forum Addon Shipping Modules
    Replies: 19
    Last Post: 6 Aug 2014, 07:12 PM
  4. Replies: 3
    Last Post: 17 Aug 2011, 07:20 PM
  5. Default options in USPS module are not working
    By Asher ben Levi in forum Addon Shipping Modules
    Replies: 3
    Last Post: 26 Aug 2008, 04:29 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