Zen Cart Logo
Forums / General Questions / How do I change this text? (USPS Shipping Module)

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

Locked

Views: 1,710

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
14 Apr 2009, 7:50 PM
#1
nextlevelmotoring avatar

nextlevelmotoring

New Zenner

Join Date:
Jan 2005
Posts:
45
Plugin Contributions:
0

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.

14 Apr 2009, 11:58 PM
#2
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,176
Plugin Contributions:
0

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

nextlevelmotoring:

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
13 May 2009, 11:45 PM
#3
nextlevelmotoring avatar

nextlevelmotoring

New Zenner

Join Date:
Jan 2005
Posts:
45
Plugin Contributions:
0

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);

17 May 2009, 4:39 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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:

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