Jump to content


  • Content count

  • Joined

  • Last visited

Posts posted by olsonsp4c

  1. Hi, I do not have this:



    * STEP 6 *



    In catalog/includes/stylesheet.css:


    FIND this:


    TD.smallText, SPAN.smallText, P.smallText {

    font-family: Verdana, Arial, sans-serif;

    font-size: 10px;

    My Stylesheet.css is in the catalog directory... I see someone else mentioned this I just want to make sure this is the correct file to edit!




    I apologize - it is in catalog/


    you think you have it all correct and then find these kinds of errors :)







    Everybody! USPS changed almost all of their domestic and international insurance rates TODAY... Go in the admin->modules->order totals->USPS Shipping Insurance to see the links to the rates pages and update your rates in the addon accordingly or you'll be undercharging your customers (your checkout shipping [checkout payment in older versions] page will be automatically updated when you adjust the price in the admin)!


    Also, anyone out there willing to help me figure out how to import the $shipping_num_boxes variable from the shipping class? Once that is done, this addon will be complete...



  3. Hello,


    Yes, email was confirmed to the switch to production. I changed the login for the password also?? I just do not get why it will not show any errors. I also put my email in the usps.php to email me the errors if any, no emails. Something else is stopping it from showing, even if incorrect login, I would at least get the error on the page?? What else controls it for showing?


    Thanks JR




    Honestly, I am out of ideas JR, I have it running on 4 stores and a test store fine... my last guess is that some of your rc2a files were corrupted or incomplete when uploaded. Check includes/classes/shipping.php and other shipping related files and compare them to a downloaded rc2a fileset using WinMerge or Beyond Compare.



  4. Hello,


    Still no showing of USPS Rates?? I completely removed all configuration keys, got a new USPS login/Password, moved to production server on USPS. Downloaded version 3.0 installed, it created all the correct configuration keys, finished the install with login and password, set the correct zip code, and still not a showing of USPS rates?? Any other shipping module, flat rate, UPSXML, all show up correctly. What would cause the USPS not to show?? Not even an error on the screen, blank?


    Thanks for any help,




    did you email usps and ask them to switch your new acccount to "production" and get an answer from them saying it was switched?


    also, you don't put the login and password in usps methods - you put the login twice (password = loginid)



  5. Hello Naps1saps,


    I have tested the test and production server. I also changed


    // mail('yourname@domain.com','USPS rate quote response',$body,'From: <yourname@domain.com>'); to


    mail('myname@domain.com','USPS rate quote response',$body,'From: <myname@domain.com>');


    For some reason, OSC just does not want to notice the USPS contribution. Should I remove completely? If so, what do I need to remove from configuration and database?


    Thanks JR


    In the configuration table, sort them by name in phpmyAdmin - then scroll down to the U section and delete any items that begin with USPS (assuming you have no other USPS addons installed) - in the admin->modules->shipping click on USPS Methods and then click the Remove button, then with an ftp manager go to includes/modules/shipping/ and includes/languages/(language)/modules/shipping/ and delete the usps methods files.



  6. do you mean includes/modules/shipping/usps.php? no such file/directory exists under admin/ in my installation. if this assumption is correct, i am using the USPS Methods v3 that you created so i would also assume this issue isn't at fault.


    would you want to examine the stores in question scott?




    you are correct, sorry - sure.



  7. also, i found this tidbit via Google... could this be a culprit?


    That is entirely possible; however, the countries are listed at the bottom and inserted as necessary... :)


    Also, you could go to admin/includes/modules/shipping/usps.php - and make sure that all references to first class shipping are all caps "FIRST CLASS" - in older versions this was not changed.



  8. man... i REALLY need USPS Methods to work for me since the clients are used to the extra functionality. no ideas on why just one method wouldn't be working?


    Go into the database in the configuration table and find the usps inserts - make sure that first class is all caps.



  9. You're welcome. I don't know anything about PHP programming. I know enough VB to get by I guess. It's kind of frustrating not being able to search within multiple .php files for text. I have yet to figure out where the weight gets rounded and saved to the DB. I work with items that are less than .1 oz, so .01 lbs is not enough and .02 lbs is too much. Do you know what file it's in? Shouldn't it be in /admin/catagories? Do you know what code I'm looking for?




    ps it's kind of funny, I took some classes at my community college with one of the main developers of oscommerce: John Oligario. He is a very interesting person with a little white dog. He's an older man who I think should have a great job by now. I wonder why he doesn't? Hmm... Ill have to ask him some time.


    here's one place where rounding occurs in usps.php:


    	  $shipping_ounces = round(16 * ($shipping_weight - floor($shipping_weight)));


    in other code, look for the







  10. :blush: Sorry olsonsp4c, but I changed the module to USPS v3 API. This allows for many more options not available with the v2 API. You can now have FLAT RATE and LETTERS!!!!! I listed it as an alpha, so yours is still good.


    BTW, to answer your question, try the USPS Methods 4.0 I just uploaded. My primary shipping is First Class letters and it seems to be working fine so far. Give it a try and look at the options in USPS.php. To install, just replace USPS.php in /includes/modules/shipping


    To see it working in my store, go to http://epicdecals.com ;)


    I'm just hoping I didn't mess up anything.


    That is great! thanks for doing that - that was actually on my list of things to do! I'll take a look at it soon - I have no intention of maintaining this long term, I need the community to chime in and make it better. I'll contribute my input along the way though :)



  11. how would i research this? my client is starting to get upset as they just launched a new product and really need to have first class available to customers. thanks for the help!




    go to usps' website - search for developer api or something like this... it might be better to go ahead with the stock osC usps.



  12. i updated the module to USPS Methods v3 and added this bit of code to general.php (the other bit was already in place). still seeing $0.00 for First Class rate, but all the other selected methods (Priority, Media) are working/displaying prices fine. any help on resolving this is greatly appreciated!




    Thanks Sean,


    I'm beginning to wonder if USPS changed their 1st Class title or something, because if the others are working, 1st class should work too.



  13. Hello,

    Installed this addon. When we add a tracking number it does not send in e-mail or update customers account with tracking info. Please Help


    I need more info than that to help well.


    You could look in the edits for admin/orders.php to see if any are missing. Most likely they are.


    It would be best if you re-went through the instructions step by step to make sure all the edits are there in the code.



  14. what bit of code should i be looking for in general.php? i compared the general.php files from a working and non-working store from my "master set" and they're identical.




    // USPS Methods 3.0
    // Alias function for Store configuration values in the Administration Tool
     function tep_cfg_select_multioption($select_array, $key_value, $key = '') {
    for ($i=0; $i<sizeof($select_array); $i++) {
      $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value');
      $string .= '<br><input type="checkbox" name="' . $name . '" value="' . $select_array[$i] . '"';
      $key_values = explode( ", ", $key_value);
      if ( in_array($select_array[$i], $key_values) ) $string .= ' CHECKED';
      $string .= '> ' . $select_array[$i];
    $string .= '<input type="hidden" name="' . $name . '" value="--none--">';
    return $string;


    also, this should be added to modules.php in all stores


    Find This code somewhere around line 43:
    if (tep_not_null($action)) {
    switch ($action) {
      case 'save':
    	while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
    	  if( is_array( $value ) ){
    	  $value = implode( ", ", $value);
    	  $value = ereg_replace (", --none--", "", $value);
    if (tep_not_null($action)) {
    switch ($action) {
      case 'save':
    	while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
    	  if( is_array( $value ) ){
    	  $value = implode( ", ", $value);
    	  $value = ereg_replace (", --none--", "", $value);
    	  tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
    	tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']));
      case 'install':



  15. I have USPS Methods 3.0 installed. I just noticed that, near the top of the shipping modules page in Admin, I am getting the following error: "Parse error: syntax error, unexpected T_GLOBAL, expecting ')' in /home/danielm2/public_html/catalog/admin/modules.php(217) : eval()'d code on line 1." It's been a while since I installed the module, and I don't recall seeing that error before now, so either I've been blind or it's something that started recently. Although I have not made any changes to catalog/admin/modules.php since installing the USPS Methods contribution, I have made numerous changes to other files, including recent ones for the Handling Fee contribution (http://www.oscommerce.com/community/contributions,1190/category,6/search,cod+fee), which is the only other contribution I've added that affects shipping and handling.


    The thing is that the module seems to be working fine. Rates are calculated properly, and no other problems have cropped up. Can anyone give me some idea on why that error is appearing? Line one of modules.php is <?PHP , so I'd guess that the problem is actually someplace else in the code. I can post the entire code of the file, if that would help in identifying the problem.


    1. check the troubleshooting section of the installation guide

    2. also do a search on this form for your error and I think you'll find some ideas



  16. alright so i'm having quite a strange issue. a number of OSC stores i've set up just started returning $0.00 for First Class Domestic, but correct prices for all other selected methods. that said, i use a "master set" when i install OSC now (containing all my mods) and other stores from the same master set are not having the issue. also, of those on the same host even, some are having the issue, some are not.


    i've tried pulling the USPS module file (/includes/modules/shipping/usps.php) from working stores and replacing it on the non-working, but it still returns the zero price.


    ANY IDEAS? i need to resolve this ASAP. thanks!


    Do all your stores have the addition to includes/functions/general.php ?



  17. Hi Scott,

    Hope all is excellent with you and the family and Thank You for making this available (v2.1).

    i'm having this weird problem where when the initial email goes out to the customer the order_id= link works correctly

    but if I send out an email thru Admin Update, the order_id link when clicked shows a browser URL of:


    Do you have any suggestions besides don't send updated emails?

    Thanks for your insight.




    Is that for any tracking number url or just a particular carrier?



  18. im still haveing the same issue, it wont save to the db, i went through the code and no luck can i post a link to the php file and someone have a lok at if possible, Or anyone have a similar issue pls avise how to resolve


    check admin/orders.php for the db insert functions - make sure they are there.


    check admin/includes/functions/html_output.php for the added function - is it there?


    if these are there - go to my profile page and email me.



  19. Chris,


    this is the function that should have been inserted into admin/includes/functions/html_output.php


    //Package Tracking Plus BEGIN
    // Output a form textbox field
     function tep_draw_textbox_field($name, $size, $numchar, $value = '', $params = '', $reinsert_value = true) {
    $field = '<input type="text" name="' . $name . '" size="' . $size . '" maxlength="' . $numchar . '" value="';
    if ($params) $field .= '' . $params;
    $field .= '';
    if ( ($GLOBALS[$name]) && ($reinsert_value) ) {
      $field .= $GLOBALS[$name];
     } elseif ($value != '') {
      $field .= trim($value);
    } else {
      $field .= trim($GLOBALS[$name]);
    $field .= '">';
    return $field;
    //Package Tracking Plus END