Jump to content

fulluvscents

Members
  • Content count

    305
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by fulluvscents

  1. fulluvscents

    Problem: USPS Methods Switching To Cheapest Option

    Upgrade to 5.2.1 - no functional bugs have been reported. The support forum for the module is stated in the instructions if you have any problems with that one. Make sure you uninstall old versions before uploading files for the new version. And double check your configuration table in mysql to make sure ALL old usps entries have been removed.
  2. fulluvscents

    [Contribution] - USPS Methods

    Mine only shows the shipping method within the order total area and it shows this: United States Postal Service 0 lbs, 7.2 oz (Parcel Post®): $6.84 Total: $10.23 If I had the transit time or insurance displaying, then it would add those below. Mine doesn't say "Shipping method:" and it doesn't say "USPS" anywhere. In fact, I don't have USPS in all caps in any of my files, nor do I have the words "Shipping method:" Is this displaying right below "payment method" or is it displaying in the order total section? It seems redundant to show it above or below "Payment method:", and then also show the shipping method and cost in the order total. That must have been something added in with your shipping estimator module. You could probably remove the display line all together and be just fine (if this is displaying somewhere else in addition to your order total). Or, in lieu of removing the display line, you'll have to find the language that it's pulling from where it defines the title as USPS and add or <br> after USPS. I'd start with admin/includes/languages/english/ and see if you can find the file in that folder, since this seems to appear only in your admin files. Jetta
  3. fulluvscents

    [Contribution] - USPS Methods

    Instructions are for stock osc sites with normal checkout or one page checkout (since that's what I have). I couldn't hit on every possible mod that might show the shipping methods since I imagine there are plenty of them out there. To fix the "reg" and turn it into the trademark legend, find the code that displays the shipping method and modify the code like you did in the checkout_shipping page. Anywhere on your site if you have the code: <td class="main" width="75%"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td> it'll need to be replaced with: <?php $search = array(' reg', ' trade'); $replace = array('<sup>®</sup>', '<sup>™</sup>'); ?> <td class="main" width="75%"><?php echo str_replace($search, $replace, $quotes[$i]['methods'][$j]['title']); ?></td>
  4. fulluvscents

    [Contribution] - USPS Methods

    Try the following code in your application_top.php file and see how that works. // set default store time zone ini_set('date.timezone', 'America/YOURCITY');
  5. fulluvscents

    [Contribution] - USPS Methods

    YIKES. That was my bad. The default class is main. I have heavily modified my css and the class in my files is mainContent. I didn't catch that. Suppose I should modify the instructions. But, if someone else would like to do that before I find the time, then by all means - just make sure to upload as a full package. Single file uploads get messy and confusing. Thanks for catching that wckd
  6. fulluvscents

    [Contribution] - USPS Methods

    I just uploaded a new package (5.2.1). This includes the fix for the trademark legends. USPS sends them because they want them shown. It is required by their terms. I doubt they'll shut anyone's API down, but I'm not willing to take that chance. I also noticed that the response time for USPS wasn't working correctly. If set to over 2 days processing time, it was shutting causing errors. I've never tested over 3 days, so I didn't catch it before. This package also includes the fix for that and removes a line of code from the original script which is no longer needed.
  7. fulluvscents

    [Contribution] - USPS Methods

    It won't work unless you're on the live server. So far, I haven't heard of any script bugs with any version of osc, so you shouldn't have any problems.
  8. fulluvscents

    [Contribution] - USPS Methods

    The module is designed to display responses directly from USPS - and ADD the processing time (an integer) to the integer received from USPS. If the response is stated as "overnight to most areas", then it adds processing time to 1. If it comes back as a date, hmmmm, I don't know how it affects that. USPS never sends me a date - even though it sends everyone else dates. processing time will not affect international because USPS doesn't send an integer for international and you can't mathematically add an integer to a text phrase. Did you uninstall the old module BEFORE you uploaded the new files? There may be a conflict with the old entries in your configuration table. If you uninstalled it AFTER you changed the usps.php file, then the old entries weren't removed from your configuration table. You will need to uninstall the module, remove every USPS entry in your configuration table and then reinstall the module. That is the only thing that I can think of which would affect the transit times - your module is pulling quotes based on bad inputs coming from your configuration table. If you need help with removing the old configuration entries, just post back for instructions.
  9. fulluvscents

    [Contribution] - USPS Methods

    Another error bites the dust. Thanks for posting and I'm glad to help you resolve it. Now others using both UPS and USPS will know to remove the duplicate code. Let us know if you run into any other problems.
  10. fulluvscents

    [Contribution] - USPS Methods

    The function declaration is exactly the same. Just remove one (it doesn't matter which one) and you should be good to go.
  11. fulluvscents

    [Contribution] - USPS Methods

    The error is that you are defining the function (tep_cfg_select_multioption) twice. I don't use UPS, so I'm not sure about the difference between how UPS and USPS define the function. Hopefully, they are defined the same. If so, then just remove one of the definitions. If not, then post the UPS definition so that we can figure out how to merge the two and keep them from trying to override one another.
  12. fulluvscents

    [Contribution] - USPS Methods

    Check your admin/includes/functions/general.php file. It looks like you've got the same code duplicated on line 812 and line 886. In other words, you added it per instructions, but it was already previously added - remove the duplicate and keep the most recent one. You might want to double check the modules.php and the catalog/includes/functions/general.php files too. If you doubled up on one, then chances are the added code already existed in the other two files as well. Guess your usps module was a newer version than you thought. // USPS Methods - credit to Greg Deeth 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; } function tep_cfg_multiinput_list($select_array, $key_value, $key = '') { $key_values = explode( ", ", $key_value); for ($i=0; $i<sizeof($select_array); $i++) { $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string .= '<br><input type="text" name="' . $name . '" value="' . $key_values[$i] . '"> ' . $select_array[$i]; } $string .= '<input type="hidden" name="' . $name . '" value="--none--">'; return $string; } function tep_cfg_multiinput_duallist_oz($select_array, $key_value, $key = '') { $key_values = explode( ", ", $key_value); $string .= '<center>'; for ($i=0; $i<sizeof($select_array); $i++) { $current_key_value = current($key_values); $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string .= '<br><input type="text" name="' . $name . '" size="3" value="' . $current_key_value . '"><i>oz</i>'; $string .= ' <b><</b> ' . $select_array[$i] . ' <u><b><</b></u>'; next($key_values); $current_key_value = current($key_values); $string .= '<input type="text" name="' . $name . '" size="3" value="' . $current_key_value . '"><i>oz</i>'; next($key_values); } $string .= '<input type="hidden" name="' . $name . '" value="--none--">'; $string .= '</center>'; return $string; } function tep_cfg_multiinput_duallist_lb($select_array, $key_value, $key = '') { $key_values = explode( ", ", $key_value); $string .= '<center>'; for ($i=0; $i<sizeof($select_array); $i++) { $current_key_value = current($key_values); $name = (($key) ? 'configuration[' . $key . '][]' : 'configuration_value'); $string .= '<br><input type="text" name="' . $name . '" size="3" value="' . $current_key_value . '"><i>lbs</i>'; $string .= ' <b><</b> ' . $select_array[$i] . ' <u><b><</b></u>'; next($key_values); $current_key_value = current($key_values); $string .= '<input type="text" name="' . $name . '" size="3" value="' . $current_key_value . '"><i>lbs</i>'; next($key_values); } $string .= '<input type="hidden" name="' . $name . '" value="--none--">'; $string .= '</center>'; return $string; }
  13. fulluvscents

    [Contribution] - USPS Methods

    It is complete - just make sure you get the latest version with the weight threshold fix. What she was saying was to make sure to follow the install instructions and don't miss any of the code that needs to be added to your existing files. The usps.php files are overwrites with no coding on your part. Other files need to be manually modified by you. The package includes detailed instructions.
  14. fulluvscents

    [Contribution] - USPS Methods

    Glad it worked for you. Good news.
  15. fulluvscents

    USPS Integration

    I'm just guessing here: You made no changes to the default thresholds from within the admin panel, and you've got a cart weight between 11-15 lbs. Hint, hint.... Check your settings and your weights - don't rush to pass judgment until you KNOW that the error isn't your own.
  16. fulluvscents

    [Contribution] - USPS Methods

    I'm sure someone will supply a simple USPS module without all the bells and whistles - but I wanted the bells and yeah, the whistles too. Ummm,,, the array thing - I've had that happen in the past. I think you might have missed one of the instructions - there are three files to modify (modules.php (in the admin functions) and 2 general.php (in admin and catalog)) in addition to the 2 files that you will upload and overwrite. And there's one sql query. wckdwch, he was talking about OSC 2.3.1, not USPS 2.3.1.
  17. fulluvscents

    [Contribution] - USPS Methods

    It has been working on 2.3.1 without problem. For a fresh install, follow instructions as a fresh install. I think there are three files to modify - modules.php, and the 2 general.php files and you may want to do the sql query as well (shown in the upgrade instructions).
  18. fulluvscents

    USPS Integration

    The weight thresholds for Express and Express Flat were flipped around. I uploaded a fix for that.
  19. fulluvscents

    USPS Integration

    First, USPS does not respond with rates based on street address with the USPS rates/methods modules. The only thing sent to USPS is the zip code. They have no idea what street address you are using. It is false to tell people that USPS won't calculate postage from and to the same address. It will, unless you have a separate address verification module installed - and THAT would be a completely different topic of conversation. Errors will not be caused by shipping to and from the the same zip, or even the same street address. I have tested extensively using both the same address as the store AND different addresses. This will never be the root of an error with this module. Second, I have talked to someone using osc 2.3.1 who installed the 5.2.0 contrib. Once he got through the install (which did take a couple tries due to missing things in the instructions), he said it is working fine. So, this contrib 'should' work with all osc versions. Third, if you aren't getting all of the methods, it could be that you uploaded the new file before deactivating the old one, or that you haven't manually removed any excess entries in your configuration table through mysql. After the contrib is installed and uninstalled so many times, it is easy to have conflicting entries leftover from one of the uninstalls, especially if a new file was uploaded and installed without properly uninstalling the old one first. All of this was covered in the instructions. Fourth, with regard to international options only - USPS defines what it will and will not send you based on package size and weight. So, even if everything is checked, they may or may not send you the method, if your package is too heavy, too wide, too narrow, etc. It will not create an error. It will simply be ignored and will not show up. So, intl is controlled heavily by package dimensions and weight. Finally, if anyone is having issues with the 5.2.0 module, then please address them in the proper forum, which is also specified in the install instructions. Jetta
  20. fulluvscents

    [Contribution] - USPS Methods

    The module was set up to return an exact commitment date for express mail (plus handling time), but USPS isn't sending me a date. Apparently USPS is sending you the date (Debbie). I get "Overnight to most areas" - Not fair!! I didn't even know the date COULD come through, so I designed the transit time display around (Overnight to most areas) or an integer. I didn't expect to see dates come through. So, the transit time displays wouldn't be correct if you are getting a date. It'll say "30-Nov-2011 Days". Uploaded a small fix to language for express commitment dates to remove the word Days and also included a bit of a change to the transit time and insurance language displays for a neater appearance.
  21. fulluvscents

    [Contribution] - USPS Methods

    I'm sure that a mod exists. I've used something similar before. It included package dimensions and box dimensions and compares the two to see what will fit in what. For the life of me, I have no idea why I would have ever needed something like that, but I know I have used it. Remaining question is whether it was osc. Ummm, might not have been, but pretty sure it was.
  22. fulluvscents

    [Contribution] - USPS Methods

    Okay, I see now. I think that would require something totally different than what's available and that would shipping package types (tube/box). That way all tube items would be calculated together as one package, while all box items would be calculated together as one package. So, rather than ship separate, which would overestimate the shipping weight for multiple items, there would be a ship box class. Hmmm, sound like it would require new script. Personally, I enter my products as their SHIPPED weight and do not add a tare weight. It might overcharge in some cases, but it makes up for those occasions when someone pays for combined weight as one package when it will actually be shipped as 2. Let's not also forget how many times we put things in flat rate envelopes after the customer paid full price for 4 lbs - I wonder if I can fit 6 lbs in the legal envelopes, and the padded envelopes - OMG those are huge. LOL, I know I'm not the only one who has done it. Look for a shipping box class or types module and see if one exists. I remember at one time configuring my panel with several box sizes and weight thresholds for each box - AND dimensions for each product. So, the cart would automatically know what could or could not fit in each box (or tube in this case). Not sure whether it was stock or added on, but I don't use it any more even if I have the capability. That might be the perfect solution - product and box dimensions and thresholds. There may be an add on for that. Hope you find something. If not, tell him to learn to stuff a flat rate envelope to make up for the ship separate options. LMAO. Have you seen the padded envelopes? those things are CRAZY BIG - no wonder they limit 15 envelopes per order.
  23. fulluvscents

    [Contribution] - USPS Methods

    Yeah, it's off topic. Get out of my forum!!! LOL, I am just kidding. Labels print automatically? If the weight is correct in the db, and he is using USPS and Fedex then use the usps and fedex modules to calculate shipping costs, thus getting customer to pay correct amount. Then tie the stamps.com software into his oscommerce account (there is a module for that too). They will pull the orders from his database. Just open stamps.com program, put the stuff on the scale, choose shipping method, and print. It will automatically update status in db as shipped, notify customer, and save the tracking number to the site. Fedex is a whole different creature. I haven't found a way to tie that into my website for printing labels, but I only ship a few things a week with fedex. USPS does have apis for printing labels directly from the site (I believe) and there's probably a module for that already made. idk. But if he had that, then stamps.com would be redundant. Will post back in a few minutes about the module and the express language - as well as anything else I run across.
  24. fulluvscents

    [Contribution] - USPS Methods

    The last two weeks have been a mess. I personally feel now, like it is in complete order and am totally relieved to have a fully functional USPS module. No matter what you are running, you will NEED to update your module before May and this one is compliant with the new syntax. If you've already got a rather recent working module, you shouldn't need to do anything except replace the usps.php and the language file. No db changes, and no file modifications. If it does need debugging, I'd rather we get it sorted out now, than wait until May.
  25. fulluvscents

    [Contribution] - USPS Methods

    USPS 5.2.0 has been uploaded to the contributions as a complete package. Tested on 2.2RC2a, single page checkout, international and domestic all options in use, money order, credit card, and Paypal express - with customer logged into account before checkout. Running on Apache 2.2.17, PHP 5.2.14, MySQL 5.0.91 Perl 5.8.8 There may be some debugging required in other shop types or servers. Trademark legends are stripped. No decode command. I'd like to see the marks put to use, but the special characters (particularly the forward slash) and the complexity of the script are making it impossible to make one thing work without having an adverse affect on something else. http://addons.oscommerce.com/info/487 Enjoy - and PLEASE BACK UP FILES AND DATABASE BEFORE INSTALLING (JUST IN CASE)
×