Originally Posted by
PeauProductions
Yes I know where the usps.php file is and have looked over it a ton but cannot find any mention of the days it takes to ship the order (meaning the specific lines that add both the shipping option name and the days it's going to take, like 1-3 days for GXG).
I've looked at the page source for the pre-shopping cart on my site and haven't found anything usable, I've looked throughout the usps.php file, and I think the problem is that it gets the numbers directly from USPS... which is why I need someone with more knowledge of how the shipping options are pulled and then displayed to figure out how to just add some extra text.
Any ideas?
You are correct. This information does, indeed come from USPS (length of time for delivery) If you are seeking to add text after each line (Example: first class mail - can't easily tack on a tracking number, although you can do so when shipping via paypal, go figure!) , then I would say you would want to set up a language define (Suggest pick one of the language files related to shipping) and define your own language for it, and then in the code where the calculated shipping results are printed out (I forget where) , you can probably work in your defined language string into it somewhere..
I believe the usps.php and ups.php both parse the returned xml data and populate the results into an array , so if you go to where this is done, and test for whatever case you wish, .. example
Code:
if(strpos($shipping_option,'First Class') !== false){echo MY_SHIP_DEFINE_NO_TRACKING;}else{echo MY_SHIP_DEFINE_TRACKING_PROVIDED;}
or something like that, and if you need to know how to put in a language define, as mentioned, find a suitable language file, edit it and go to the bottom of the defines, and add:
Code:
define('MY_SHIP_DEFINE_NO_TRACKING','No Tracking provided');
define('MY_SHIP_DEFINE_TRACKING_PROVIDED','Tracking Provided');
Language defines such as that are recommended, since it makes it much easier to edit later on, and if you decide to remove them, no need to remove the code- instead, simply set the values to blank.
Of course, the above is all from the top of my head, and not taken from the code- it is more "pseudo-code" to show the basic idea... I can't point you to what files or where in the files to make your edits, but to my knowledge, the above would probably be pretty close to the solution you may need.
Bookmarks