Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2005
    Posts
    59
    Plugin Contributions
    0

    Default How do I change this text? (USPS Shipping Module)

    Zen Cart 1.26

    I'm trying to identify where this (PRIORITY) text comes from. I've searched the site code and haven't been able to find how to change the text. It doesn't seem to be in the normal language English files.

    Can it come from the DB? I'd like it to say (Arrives in 2-3 Days) instead of (PRIORITY)

    I'm attaching an image of exactly what I am talking about.
    Attached Images Attached Images  

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: How do I change this text? (USPS Shipping Module)

    Quote Originally Posted by nextlevelmotoring View Post
    Zen Cart 1.26

    I'm trying to identify where this (PRIORITY) text comes from. I've searched the site code and haven't been able to find how to change the text. It doesn't seem to be in the normal language English files.

    Can it come from the DB? I'd like it to say (Arrives in 2-3 Days) instead of (PRIORITY)

    I'm attaching an image of exactly what I am talking about.
    Ne,
    Wow, what a dinosaur 1.26, Wow it is time to upgrade

    1. admin panel/ tools/ developers tool kit, I don't even know if you have this option in the admin panel
    2. search for: Priority
    3. catalog
    4. search
    5. you will see the associated .php files to find and change the wordind

  3. #3
    Join Date
    Jan 2005
    Posts
    59
    Plugin Contributions
    0

    Default Re: How do I change this text? (USPS Shipping Module)

    Thanks, Haredo...

    I did as you said but didn't see any files with the word I need to change. Hopefully you see something I'm missing...


    /www/data/k4023/html/includes/blocks/blk_advanced_search_result.php

    Line #166 : $where_str .= " group by p.products_id, tr.tax_priority";



    /www/data/k4023/html/includes/functions/functions_taxes.php

    Line #53 : group by tr.tax_priority";

    Line #84 : order by tr.tax_priority";



    /www/data/k4023/html/includes/languages/english/html_includes/define_shippinginfo.php

    Line #23 : Shipping prices are calculated based on current USPS PriorityŽ rates, and shipping weight is estimated, based on expected shipping

    Line #25 : weight. Priority Mail generally offers 2-day service to most domestic destinations. All domestic shipments include Delivery



    /www/data/k4023/html/includes/languages/english/modules/shipping/table.php

    Line #24 : define('MODULE_SHIPPING_TABLE_TEXT_WAY', '4-7 Day Priority');



    /www/data/k4023/html/includes/languages/english/modules/shipping/usps.php

    Line #23 : define('MODULE_SHIPPING_USPS_TEXT_DESCRIPTION', 'United States Postal Service<br /><br />You will need to have registered an account with USPS at http://www.uspsprioritymail.com/et_regcert.html to use this module<br /><br />USPS expects you to use pounds as weight measure for your products.');

    Line #25 : define('MODULE_SHIPPING_USPS_TEXT_OPT_PM', 'Priority 2-3 Day');



    /www/data/k4023/html/includes/modules/shipping/usps.php

    Line #63 : 'Priority' => 'Priority Mail',

    Line #73 : 'Priority Lg' => 'Global Priority Mail - Flat-rate Envelope (Large)',

    Line #74 : 'Priority Sm' => 'Global Priority Mail - Flat-rate Envelope (Small)',

    Line #75 : 'Priority Var' => 'Global Priority Mail - Variable Weight (Single)',

    Line #209 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Domestic Shipping Methods', 'MODULE_SHIPPING_USPS_TYPES', 'Express, Priority, First Class, Parcel, Media, BPM, Library', 'Select the domestic services to be offered:', '6', '14', 'zen_cfg_select_multioption(array(\'Express\', \'Priority\', \'First Class\', \'Parcel\', \'Media\', \'BPM\', \'Library\'), ', now())");

    Line #210 : $db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Int\'l Shipping Methods', 'MODULE_SHIPPING_USPS_TYPES_INTL', 'GXG Document, GXG Non-Document, Express, Priority Lg, Priority Sm, Priority Var, Airmail Letter, Airmail Parcel, Surface Letter, Surface Post', 'Select the international services to be offered:', '6', '15', 'zen_cfg_select_multioption(array(\'GXG Document\', \'GXG Non-Document\', \'Express\', \'Priority Lg\', \'Priority Sm\', \'Priority Var\', \'Airmail Letter\', \'Airmail Parcel\', \'Surface Letter\', \'Surface Post\'), ', now())");

    Line #290 : case 'Priority': $transreq[$key] = 'API=PriorityMail&XML=' .

    Line #291 : urlencode( '<PriorityMailRequest ' . $transitreq . '</PriorityMailRequest>');

    Line #398 : case 'Priority': $time = ereg('<Days>(.*)</Days>', $transresp[$service], $tregs);

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How do I change this text? (USPS Shipping Module)

    Actually ... this is built in the usps.php shipping module from the data of results:
    Code:
            for ($i=0; $i<$size; $i++) {
              list($type, $cost) = each($uspsQuote[$i]);
    
              // BOF: UPS USPS
              $title = ((isset($this->types[$type])) ? $this->types[$type] : $type);
              if(in_array('Display transit time', explode(', ', MODULE_SHIPPING_USPS_OPTIONS)))    $title .= $transittime[$type];
              /*
              $methods[] = array('id' => $type,
              'title' => ((isset($this->types[$type])) ? $this->types[$type] : $type),
              'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
              */
              $methods[] = array('id' => $type,
                                 'title' => $title,
                                 'cost' => ($cost + MODULE_SHIPPING_USPS_HANDLING) * $shipping_num_boxes);
            }
    The $title will read Priority when you hit it in the quote ...

    NOTE: also be sure that you have the current USPS shipping module for new rates as of May 2008:
    http://www.zen-cart.com/forum/showthread.php?t=97461

    Be sure to read the whole thread as you have an ancient, buggy, lacking features, lacking functionality, security ridden, and over all ... you gotta upgrade or you will be doomed version of Zen Cart ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 

Similar Threads

  1. Edit text and style USPS shipping module?
    By BPweb in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 26 Jun 2015, 06:50 PM
  2. How do I change this text?
    By PortFJ62 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Oct 2012, 08:09 PM
  3. How to change this text...
    By IronMan101 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 16 Jul 2007, 12:29 PM
  4. Does USPS Shipping Module need to change server connection?
    By damon in forum Addon Shipping Modules
    Replies: 0
    Last Post: 27 Sep 2006, 05:13 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