Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Aug 2006
    Posts
    76
    Plugin Contributions
    0

    Default [Done v1.3.9] Zen 1.3.7 UPS Shipping Module Version 4674

    I have zen-cart 1.3.7 and found a bug with UPS shipping module. We have never been able to get international shipping methods beyond the US and Canada to work. I found out why.

    For starters the current UPS shipping module does not offer the WXS shipping method which is Worldwide Express Saver (might add it later?)

    When i got it to add that method i found it was showing only $1 shipping charge. The reason is in teh UPS.php module around line 170 the returned cost from UPS is returned as $1,213.87 but as a string and not an int. So when it goes on to do the cost calc of ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes) the multiplication of the number of boxes causes it to reset the value to $1 cause the returned value from UPS is a string (due to the comma for it being over $1,000). I added a preg_replace to remove the , from the returned value and it fixed it but i think this should be looked at and fixed in future releases or maybe it was and i dont have the newest verison.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Zen 1.3.7 UPS Shipping Module Version 4674

    You might try using the UPSXML addon. I'm uncertain whether it's compatible with your v1.3.7 though, as I haven't used it.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Aug 2006
    Posts
    76
    Plugin Contributions
    0

    Default Re: Zen 1.3.7 UPS Shipping Module Version 4674

    Quote Originally Posted by DrByte View Post
    You might try using the UPSXML addon. I'm uncertain whether it's compatible with your v1.3.7 though, as I haven't used it.
    I have used UPSXML before, need to try it on 1.3.7 but shouldnt something like that be fixed on the normal UPS version? I mean im sure shipping prices over $1,000 are not very common but some sites will have them and its a major issue if they are unable to quote proper shipping due to that. Just a suggestion.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Zen 1.3.7 UPS Shipping Module Version 4674

    Quote Originally Posted by Kamino84 View Post
    ... in teh UPS.php module around line 170 the returned cost from UPS is returned as $1,213.87 but as a string and not an int. So when it goes on to do the cost calc of ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes) the multiplication of the number of boxes causes it to reset the value to $1 cause the returned value from UPS is a string (due to the comma for it being over $1,000). I added a preg_replace to remove the , from the returned value and it fixed it but i think this should be looked at and fixed in future releases or maybe it was and i dont have the newest verison.
    This has been fixed in the upcoming v1.3.9 release.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Zen 1.3.7 UPS Shipping Module Version 4674

    For those using v1.3.8a, would the UPSXML addon solve this problem?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Zen 1.3.7 UPS Shipping Module Version 4674

    One would have to test it to find out. I haven't.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  7. #7
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Zen 1.3.7 UPS Shipping Module Version 4674

    Ok, is there something that can be used now with v1.3.8a to correct the situation?

  8. #8
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Zen 1.3.7 UPS Shipping Module Version 4674

    What is the URL of the site where you're experiencing the problem?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Zen 1.3.7 UPS Shipping Module Version 4674

    Don't have one at this time.

    Previous Bug Reports with a [Done vX.XX] in the Title have also provided code or a patch that one could use with v1.3.8a. Having already created a personal v1.3.8a that includes many Security & Bug patches, I wanted to included this fix as well.

    If none available at this time, that would be good to know as well.

  10. #10
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: [Done v1.3.9] Zen 1.3.7 UPS Shipping Module Version 4674

    In the ups.php you could change the code from:
    Code:
            // EOF: UPS USPS
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
    to read:
    Code:
            // EOF: UPS USPS
            $cost = preg_replace('/[^0-9.]/', '',  $cost);
            $methods[] = array('id' => $type,
                               'title' => $this->types[$type],
                               'cost' => ($cost + MODULE_SHIPPING_UPS_HANDLING) * $shipping_num_boxes);
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v153 UPS shipping module for zen 1.5.3
    By sports guy in forum Addon Shipping Modules
    Replies: 2
    Last Post: 24 Dec 2014, 12:18 AM
  2. v151 UPS Shipping module - Tweak to show UPS Freight LTL
    By pexter in forum Addon Shipping Modules
    Replies: 0
    Last Post: 13 Jun 2013, 09:37 PM
  3. v139d UPS Module for older version?
    By ZeccoCreative in forum General Questions
    Replies: 1
    Last Post: 21 Jan 2013, 04:10 AM
  4. UPS Shipping Module - UPS Pickup Method
    By inovermyhead in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 4 Jun 2008, 01:49 PM
  5. Where can I found out how the Zen Cart UPS shipping module works
    By apathy in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 16 May 2008, 07:20 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR