SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Feb 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to calculate the USPS and UPS shipping cost in oscommerce?

    Hi,

    Can anyone can help me below task?

    " Cart should calculate shipping costs and present user with choice of using United States Postal Service ground or priority, OR UPS ground or expedited shipping. "

    Thank you in advance.

    Anil Kumar Panigrahi,
    <snip/>
    Last edited by ScallioXTX; Sep 1, 2010 at 13:08. Reason: removed fake signature - wait a total of 90 days to expire to avail of a signature

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    What code do you have already?
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  3. #3
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    You should talk to USPS about developer APIs and business plans.
    http://www.usps.com
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  4. #4
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,151
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    To calculate real time shipping rates you will need to use the USPS Developer API and UPS API. For both you will need to obtain a sandbox account and credentials before implementing in a production environment.

    The key ingredients to calculating the shipping rates will be:

    1.) origin
    2.) destination
    4.) dimension
    5.) weight

    Those are the key concepts shared between both web services. Given that information on your end you can implement the request for the shipping rates as outlined in the help docs for UPS and USPS API.

    The first thing I would recommend having integrated a normalized shipping API for fedex, ups and usps would to read the docs. You aren't going to get anywhere unless you understand the information required to make the request and how it differs across each API. There are so many variables to consider, reading the docs will be the most important step leading to implementation.

    What you have been tasked to do is not a simple unless there is a plug-in with the functionality required for the software that your working with. Otherwise, its actually a very research intensive and complex process.


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
  •