Jump to content

fulluvscents

Members
  • Content count

    305
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fulluvscents

  1. fulluvscents

    [Contribution] - USPS Methods

    And just as everyone thought they were all set to go, I've uploaded another contribution. This will fix the upcoming change to military mail responses, and will lay to rest any questions about which module to install. This mod should get us by until the next rate change, server change, or response change. If someone would like to modify it for 2.3.1 and upload the exact same package HERE, that would be great!! I don't have 2.3.1 installed as a dev anymore, and the hassle is more than I have time to deal with right now.
  2. fulluvscents

    [Contribution] - USPS Methods

    Yeah, it sounds like the old db entries are conflicting with the new entries.
  3. fulluvscents

    [Contribution] - USPS Methods

    Any db modifications will occur with the uninstall and reinstall. Did you uninstall old module before uploading new files and installing the new module. If not, then you need to uninstall, go into your sql and search USPS in the configuration table, deleting all entries, then reinstall the module. Is this affecting only first class? If so, then go up three posts. USPS server has been a little wacky and it seems to be affecting only first class mail.
  4. fulluvscents

    [Contribution] - USPS Methods

    And thank you as well. When I got the dreaded "u: 0.00" in place of "First Class Mail Package: $X.XX" I just about freaked out, thinking maybe I did something to my site while working on something else. But, I hadn't even worked on that site. So, when it turned out to be sporadic, I figured it'd be better to post something and wait it out. All seems to be well today.
  5. fulluvscents

    [Contribution] - USPS Methods

    Just want to note that while checking on something today, I ran into problems with USPS. I use one page checkout and it is lagging due to problems setting the shipping method. Domestic first-class mail is calculating, but it is not applying to the cart correctly. I had a first class order come through last night and it was perfect and seamless. But, while testing today, I had problems. THEN, USPS isn't returning rates at all - the error is "<Description>An unexpected system error has occurred. Please try again later or contact the System Administrator. </Description>". Then it works, but first-class isn't applying again. Then, it works perfectly, with returned rates and they are all applying to the cart. So, my ultimate guess is that the USPS server is being a little wacky, which is something beyond our settings or the module code. Just wanted to give a head's up to anyone experiencing problems. It is possible for a customer to choose first class - which gets the proper returned rate, but applies to the cart as free shipping and they can successfully checkout this way. But, the problem isn't with the module. If it were, then the issue would be consistent, but it is changing with each refresh (with no changes on my end at all). Best course of action until this resolves itself is to turn off first class mail to avoid customers getting through with free shipping by choosing first class. They'll be forced to pay for upgraded priority mail, but it is easier to refund a few dollars than to pay shipping out of pocket. Hopefully, the servers will resolve themself in short order.
  6. fulluvscents

    Remove 1st international for given cart value

    There is a reason for it but I can't remember what the crap causes that - haha. You had to uninstall the old module before installing the new module in order to clear the old configuration out of the db. If you didn't, then you need to uninstall the module and either go through mysql and do a search for usps in the configuration table and delete all entries or reinstall the old module, uninstall it, then reinstall the new module. Are you confused yet? But, I think the problem is actually in one of the other files, more than likely the admin/functions/general.php. There was a modification to be made to that file. Check to make sure it's been done.
  7. fulluvscents

    [Contribution] - USPS Methods

    The fix for international flat rate envelope is in the contributions - dated Feb 9:
  8. fulluvscents

    [Contribution] - USPS Methods

    The method isn't going to pass if the weight isn't set below the threshold. What do you mean zero or above? Did you leave the max empty? Set it to 1 and try that. Or, set it to exactly what you have priority set to if priority is working. Why is flat rate not working and regular priority is working? I don't know. I'd have to see your admin settings to chime in on that. But if one is working and one isn't, then it makes sense to mimic the one that is working.
  9. fulluvscents

    Remove 1st international for given cart value

    Oops, I gave you bad code: Instead of this: if ((MODULE_SHIPPING_USPS_INTL_REGISTERED == 'True') && ($this->sig_reg_thresh <= $order->info['subtotal']) && (preg_match('/Insurance<\/ServiceName><Available>True/', $services[$i]))) { $registered = ereg('Registered Mail<\/ServiceName><Available>True</Available><Price>(.*)</Price>', $services[$i], $regs); Try this: if ((MODULE_SHIPPING_USPS_INTL_REGISTERED == 'True') && ($this->sig_reg_thresh <= $order->info['subtotal']) && (preg_match('/Registered Mail<\/ServiceName><Available>True/', $services[$i]))) { $registered = ereg('Registered Mail<\/ServiceName><Available>True</Available><Price>(.*)</Price>', $services[$i], $regs); It was searching for insurance, not registered mail.
  10. fulluvscents

    [Contribution] - USPS Methods

    That problem arose right after the API changes, but was fixed soon thereafter. If you have the module from Jan 28 or later - which are the only acceptable modules now, then you shouldn't have that problem. Did you clear your database of the old configuration entries? If not, then go back into the instructions and I think it tells you how to clear the entries before reinstalling the new module. That could be your problem.
  11. fulluvscents

    [Contribution] - USPS Methods

    You need to set a threshold for flat rate envelopes in your admin panel. As long as your cart weight is below that threshold, it should let the method through. No idea what you're selling, but what if someone orders 15 of your item? Will that fit in a flat rate envelope? If you have no weight at all, then you may still get an error since the module is comparing NULL to an integer. If you have a weight of zero, it shouldn't be a problem. But, for ease and sanity, why not just set the weight to .01 lbs for your product(s). Set a weight. Set a threshold above that weight. It will pass the test and USPS will send the response. No weight and no threshold (or a threshold of zero) will prevent the method from being sent and USPS will not be able to respond. As far as overriding the threshold test, it can be done, but requires a change in coding, which is uneccessary.
  12. fulluvscents

    Remove 1st international for given cart value

    lol, no need to post the code. I know the code. USPS doesn't require a password anymore. I don't have the energy or desire to turn off JUST one shipping method for international, but I can give you code for something else because I customized my own code to add it. Instead of cutting off first class after a value of $20, you could require registered mail, which runs $10.58 I think, and brings first class mail to the same price range as priority international, but WITH registration. Also consider that flat rate envelopes do NOT get tracked. Only regular priority has any sort of tracking and only registered mail gives you any way of filing a claim. This code will only add registered mail rates for first class as far as I know. Here it is: find around line 42: $this->sig_conf_thresh = MODULE_SHIPPING_USPS_SIG_THRESH; add after: $this->sig_reg_thresh = MODULE_SHIPPING_USPS_SIG_THRESH; Somewhere around line 425 in the blob of db entries, add these two lines: tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Int\'l Registered Mail', 'MODULE_SHIPPING_USPS_INTL_REGISTERED', 'True', 'Force Registered Mail for untracked International packages? Registered mail cannot be purchased online and must be paid for at a USPS counter.', '6', '0', 'tep_cfg_select_option(array(\'True\', \'False\'), ', now())"); tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, date_added) values ('Registered Mail Threshold', 'MODULE_SHIPPING_USPS_REG_THRESH', '20', 'Order total required before Registered Mail is triggered?', '6', '0', now())"); find the key function around line 440 - it'll look something like this: function keys() { return array('MODULE_SHIPPING_USPS_STATUS', 'MODULE_SHIPPING_USPS_USERID', 'MODULE_SHIPPING_USPS_SORT_ORDER', 'MODULE_SHIPPING_USPS_TAX_CLASS', 'MODULE_SHIPPING_USPS_ZONE', 'MODULE_SHIPPING_USPS_OPTIONS', 'MODULE_SHIPPING_USPS_PROCESSING', 'MODULE_SHIPPING_USPS_DMSTC_TYPES', 'MODULE_SHIPPING_USPS_DMSTC_RATE', 'MODULE_SHIPPING_USPS_DMST_DEL_CONF', 'MODULE_SHIPPING_USPS_DMST_SIG_CONF', 'MODULE_SHIPPING_USPS_SIG_THRESH', 'MODULE_SHIPPING_USPS_DMSTC_INSURANCE_OPTION', 'MODULE_SHIPPING_USPS_DMSTC_HANDLING', 'MODULE_SHIPPING_USPS_DMSTC_HANDLING_PERC', 'MODULE_SHIPPING_USPS_DMSTC_FIRSTCLASS_THRESHOLD', 'MODULE_SHIPPING_USPS_DMSTC_OTHER_THRESHOLD', 'MODULE_SHIPPING_USPS_INTL_TYPES', 'MODULE_SHIPPING_USPS_INTL_RATE', 'MODULE_SHIPPING_USPS_INTL_REGISTERED', 'MODULE_SHIPPING_USPS_REG_THRESH', 'MODULE_SHIPPING_USPS_INTL_INSURANCE_OPTION', 'MODULE_SHIPPING_USPS_INTL_HANDLING', 'MODULE_SHIPPING_USPS_INTL_HANDLING_PERC', 'MODULE_SHIPPING_USPS_INTL_SIZE', 'MODULE_SHIPPING_USPS_INSURE', 'MODULE_SHIPPING_USPS_INS1', 'MODULE_SHIPPING_USPS_INS2', 'MODULE_SHIPPING_USPS_INS3','MODULE_SHIPPING_USPS_INS4', 'MODULE_SHIPPING_USPS_INS5', 'MODULE_SHIPPING_USPS_INSURE_TAX'); } within that line, find: 'MODULE_SHIPPING_USPS_INTL_RATE' add right after (in the same line): , 'MODULE_SHIPPING_USPS_INTL_REGISTERED', 'MODULE_SHIPPING_USPS_REG_THRESH' find around line 1100: $postage = $postage + $this->intl_handling[0]; add after: if ((MODULE_SHIPPING_USPS_INTL_REGISTERED == 'True') && ($this->sig_reg_thresh <= $order->info['subtotal']) && (preg_match('/Insurance<\/ServiceName><Available>True/', $services[$i]))) { $registered = ereg('Registered Mail<\/ServiceName><Available>True</Available><Price>(.*)</Price>', $services[$i], $regs); $registered = $regs[1]; $postage = $postage + $registered;} Uninstall and reinstall the module from admin panel. Anything with a value over $20 will require registered mail and you can change that threshold to suit your needs. Please note that there is actually a support forum for this module. The link is in the instructions near the top. Also, the line numbers I gave are going to be off because my personal code is different from the contribution. Jetta
  13. fulluvscents

    Remove 1st international for given cart value

    Lucky you, I just happened to run across this post while googling something totally unrelated (I saw my name). First of all, the code you are using is outdated and it will collapse on you very soon when USPS changes to the V4 API in May. Try installing the code that was uploaded January 28, 2011. It is MUCH better. You can turn off the international shipping at a certain threshold if you like. I assume you mean ALL international, right? When you get the new code installed, post back and I'll get you a fix to set the threshold. Too late at night to put it together now.
  14. fulluvscents

    [Contribution] - USPS Methods

    Perhaps the code that was supposed to be added to admin/includes/functions/general.php was added to admin/modules.php instead. tep_cfg_multiinput_list is defined in the general.php file and is called in the usps.php file. It shouldn't exist anywhere in the modules.php file. Double check the code against the instructions.
  15. fulluvscents

    [Contribution] - USPS Methods

    @ Irin: Yes, there is a limit for different countries, although I don't know who has what limits. USPS determines that limit which you can probably find on their site, but thinking about it, I don't have the module written to display what USPS insures. It is written to display the order total as insured - even if USPS insures less - which I realize now is a glitch. Double check the actual shipping cost and insurance cost against the shopping cart. As long as THAT is correct, it might be best to uncheck the "display insurance" option. I am presently very busy with my businesses and haven't had much time to look at things, but I plan on getting some glitches fixed and a new upload in the next month. I'll look into the insurance calculation at that time. @ others: Regarding personal conversations: Please don't send me PMs asking technical questions about this mod - how to install, etc.. I spent three weeks writing a module which I graciously shared with the community for free. I am not also a free personal website advisor. If you have questions about this module, post them on the forum. When the answer comes about, the next person can avoid asking it again. Regarding other questions, anything is possible with the USPS module, but there is no way to customize everybody's wants and wishes while making it a universally friendly contribution. In fact, my personal mod is different from the community mod because I customized it. Yes, we can get thresholds for international. We can get regional rates. The USPS rate responses are phenominal and includes pretty much ANY possible rate you can think of. Personally, I charge handling based on a percentage of the order+shipping total rather than flat fees - and I pull registered mail rates for international. For the module, I pull the most common extra service rates - insurance, delivery confirmation, and signature confirmation with regular first class, priority, parcel, and express mail rates - international and domestic. If anything else were defaulted into this mod, then it would be too much. It is practically too much as it is. If you need your mod customized, then it can be done. But, I won't be adding more features to this module as a default.
  16. fulluvscents

    [Contribution] - USPS Methods

    No idea. The order that went through, was it domestic or international? Try going to your usps.php mod and setting it to send you the response emails (by uncommenting the email address local@localhost.com and changing it to your own). Go through a test checkout on the site and then put the comment back on the email in the file. See what USPS sent you. You might find the error that way. Otherwise, it is hard to pinpoint that generic USPS error.
  17. fulluvscents

    [Contribution] - USPS Methods

    Yep, it'll break things a little, but it won't be anything major. It's just a change in the display. It'll be fixed before April. I never get their notices, so thanks for the heads up.
  18. fulluvscents

    [Contribution] - USPS Methods

    Hmmm, that is very weird. I don't have a clue how the handling fee would have any affect on server communication. So, does that mean that you cannot utilize the handling fee options?
  19. fulluvscents

    [Contribution] - USPS Methods

    If you see regimark, then you need to do a string replace in whatever file is performing the display. I don't know the file structure of dynamo. If it is similar to the free one page checkout contribution, then you should be able to find it within the 5.2.1 instructions. If not, then that might at least give you a hint.
  20. fulluvscents

    [Contribution] - USPS Methods

    The password is no longer required as of RateV4. http://www.usps.com/webtools/_pdf/Rate-Calculators-v1-2a.pdf section 2.1.3 and 3.1.3 Have you set your store zip code in your admin panel (configuration, shipping/packaging)? Are you getting any other errors? If you aren't getting any other errors, your zip code is set, and the module is configured, then go to the usps.php file and uncomment the email lines, replacing them with your email address. Run a test (by trying to pull rates in checkout) and see if the email responses can give you a clue to what the issue is.
  21. fulluvscents

    [Contribution] - USPS Methods

    Erikmm was getting the same error. The problem is in server communication. My recommendation is to send the error to your host and see if you need to change the port or if there is a problem with the port. I know it took him a while to get it all sorted out, but he was able to do so through his host. Maybe we'll get lucky and he will chime in here. But the gist of it is that the problem is in the communication between your server and the USPS server. He was getting the same error and this was his final post on the matter: The following is what you should send: You can also uncomment the email lines in the usps.php file and change the addresses to your address. Run a test and see what response you get from USPS if any. I suspect it'll be blank. Of course, put the comment slashes back after you run the test. If you get specifics on something should be changed in the script itself, then let me know and I'll work on that.
  22. catalog/includes/languages/english.php Find: define('IMAGE_BUTTON_DELETE', 'Delete'); Add the following after: define('IMAGE_BUTTON_DOWNLOAD', 'Download Now!'); catalog/includes/modules/downloads.php Find around line 101: echo ' <td class="main" align="center">' . $downloads['products_name'] . ' - <a href="' . tep_href_link(FILENAME_DOWNLOAD, 'order=' . $last_order . '&id=' . $downloads['orders_products_download_id']) . '">' . $file_array['download_group_file_description'] . '<br>' . tep_image_button('button_download.gif', 'Download') . '</a> - ' . $file_size . '</td>' . "\n"; Replace with: echo ' <td class="main" align="center">' . $downloads['products_name'] . ' - <a href="' . tep_href_link(FILENAME_DOWNLOAD, 'order=' . $last_order . '&id=' . $downloads['orders_products_download_id']) . '">' . $file_array['download_group_file_description'] . '</a><br>' . tep_draw_button(IMAGE_BUTTON_DOWNLOAD, 'triangle-1-e', tep_href_link(FILENAME_DOWNLOAD, 'order=' . $last_order . '&id=' . $downloads['orders_products_download_id']), 'primary') . '<br>' . $file_size . '</td>' . "\n"; Find around line 103: echo ' <td class="main" align="center"><a href="' . tep_href_link(FILENAME_DOWNLOAD, 'order=' . $last_order . '&id=' . $downloads['orders_products_download_id']) . '">' . $downloads['products_name'] . '<br>' . tep_image_button('button_download.gif', 'Download') . '</a> - ' . $file_size . '</td>' . "\n"; Replace with: echo ' <td class="main" align="center"><a href="' . tep_href_link(FILENAME_DOWNLOAD, 'order=' . $last_order . '&id=' . $downloads['orders_products_download_id']) . '">' . $downloads['products_name'] . '</a><br>' . tep_draw_button(IMAGE_BUTTON_DOWNLOAD, 'triangle-1-e', tep_href_link(FILENAME_DOWNLOAD, 'order=' . $last_order . '&id=' . $downloads['orders_products_download_id']), 'primary') . '<br>' . $file_size . '</td>' . "\n"; catalog/includes/languages/english/images/buttons/button_download.gif delete that image file. Worked for me. Save a copy of your files before making changes though.
  23. fulluvscents

    [Contribution] - USPS Methods

    LOL, gavin. The module is fixed and 4.3.2 is old news. Try 5.2.1 full package uploaded January 28 and do the single line modification added Feb 9. http://www.oscommerce.com/community/contributions,487
  24. fulluvscents

    USPS Integration

    Have you upgrade your USPS module to a working version? Check the USPS methods module and get a module that works. You get all the methods back. I'm surprised USPS didn't mention their response and server changes as a possible culprit to your problem. http://www.oscommerce.com/community/contributions,487 Install USPS Methods 5.2.1 - Bug Fix from January 28, 2011 and then make the one code change shown in USPS Methods 5.2.1 - int'l envelope options from February 9, 2011. Follow instructions carefully and make sure you remove the old USPS mod from within your admin panel BEFORE you install the new mod. There is a support forum for that mod. The link to the forum is in the instructions.
×