shamanicconnection wrote:shamanicconnection wrote:I see the delivery times have been briefly touched on but no real solutions. It doesn't matter if the display button is on or off I am not getting estimated times. I've played a littled in the usps.php file and in the xml files to see if I could hard code them into the descriptions. I'm obviously not getting them in the right place.
I'd just like to hard code so it shows "First Class Mail Parcel (2-5 days)" etc.
Can you tell me where I would go about this (file and line # if possible)?
Thanks a lot.
BTW - otherwise everything is great and gets a thumbs up!
Jeffrodh - still looking for some advice here. I'm launching this week and would love to have this fixed.
Thanks
You cannot hard code them into the descriptions that the customer will see in the shop. What you can do is modify the name on the fly after it has been returned by the USPS API.
The following code removes the delivery estimates from the customer display entirely, and is included in the mod.
Code: Select all
$result = str_replace(' 1-Day', '', $result);
$result = str_replace(' 2-Day', '', $result);
$result = str_replace(' 2-3 Days', '', $result);
I recommend leaving the previous code as it is, because USPS doesn't return accurate or reliable info. Using a similar function, you could do something like this:
Code: Select all
$result = str_replace('Priority Mail', 'Priority Mail (2-3 Days)', $result);
which would replace the first string with the second string. Simply follow the coding conventions and insert your new line underneath the existing functions in the mod.