Author Topic: USPS Module not working with Firefox  (Read 8590 times)

Scott Ackerman

  • Jr. Member
  • **
  • Posts: 60
    • Usable Web Solutions
USPS Module not working with Firefox
« on: September 17, 2008, 00:33:37 am »
I know, I know, you can't believe that something isn't working with FF but it is true. I have both USPS and UPS shipping modules in the following site http://www.rollercoasterhq.com and when you go to check out and the shipping options are displayed, as soon as you 'try' to click one of the USPS radio buttons the selector immediately moves to the UPS modules. There is no way to check a USPS option in FF, but it works fine in IE and Safari etc. I am guessing a javascript conflict but can't figure what the problem is.

UPDATE: I have gone back to the default template (rhuk solarflare), disabled all mambots that depend on 3rd party javascript, disabled all ajax, and the problem still persists. What does it take to get this POS to work correctly? Magento is looking better and better everyday :-(
Scott Ackerman
Fort Collins, CO 80524

abadab

  • Beginner
  • *
  • Posts: 1
Re: USPS Module not working with Firefox
« Reply #1 on: September 18, 2008, 18:08:39 pm »
I am having the same problem.  I tried using the USPS module with some others, including Flex and shipvalue and it worked fine. But when I added the UPS module, I get the same behavior as Scott gets above.  It seems like the UPS module and the USPS module do not work well together in Firefox.

I am using J1.5/VM1.1 and am having the problem on Firefox 2 and 3.  It works fine in IE and Safari, as stated above. I'd appreciate some assistance as this is beyond my technical ability. I really like VirtueMart and this is the first major problem I've had.

Brian

  • Beginner
  • *
  • Posts: 17
Re: USPS Module not working with Firefox
« Reply #2 on: December 10, 2008, 00:26:12 am »
Anyone find a solution for this?  I'm running into the same problem.

rmzinvestors

  • Beginner
  • *
  • Posts: 5
Re: USPS Module not working with Firefox
« Reply #3 on: December 19, 2008, 03:11:04 am »
I fixed this on my site.  Try this...

Edit the file "/administrator/components/com_virtuemart/classes/shipping/ups.php".

Move the "</label>" tag from the delivery warning IF statement to the end of that group of IF statements.

Lines 382-385 are originally coded as follows:
Code: [Select]
if (Show_Delivery_Warning == 1 && !empty($value['RatedShipmentWarning'])) {
$html .= "</label><br/>\n&nbsp;&nbsp;&nbsp;*&nbsp;<em>".$value['RatedShipmentWarning']."</em>\n";
}
$html .= "<br />\n";

Change line 383 to:
Code: [Select]
$html .= "<br/>\n&nbsp;&nbsp;&nbsp;*&nbsp;<em>".$value['RatedShipmentWarning']."</em>\n";

And change line 385 to:
Code: [Select]
$html .= "</label><br />\n";

So you should end up with:
Code: [Select]
if (Show_Delivery_Warning == 1 && !empty($value['RatedShipmentWarning'])) {
$html .= "<br />\n&nbsp;&nbsp;&nbsp;*&nbsp;<em>".$value['RatedShipmentWarning']."</em>\n";
}
$html .= "</label><br />\n";

Hope this helps.

tingull

  • Beginner
  • *
  • Posts: 23
Re: USPS Module not working with Firefox
« Reply #4 on: April 05, 2009, 18:47:55 pm »
rmzinvestors you are SO awesome for this!  THANKS!!!!