Closed

oscommerce shipping module

This project was awarded to AlinGhinoiu for $200 USD.

Get free quotes for a project like this
Employer working
Awarded to:
Skills Required
Project Budget
$30 - $250 USD
Total Bids
3
Project Description

I need someone to create an oscommerce shipping module for [url removed, login to view] using their api that I can use in my oscommece shopping cart.
I would like the customer to be able to work out the shipping information from the item description page and have the postage calculated when the customer checks out.

Below is the api info from the e-go web site....

If you have a merchant website and want to offer on-line quote of delivery charges to your customers, you can use our Calculator API.

Our API can be accessed by any programming language that can perform HTTP requests such as PHP, Cold Fusion, Java and many others.

INPUT: The input consists of a URL pointing to our Calculator API. An example is:

[url removed, login to view]

If you want a quote for multiple goods, you can specify an array of values for the fields: weight, items, width, height and depth. The following is an example for multiple goods.

[url removed, login to view][0]=40&height[0]=35&depth[0]=65&
weight[0]=2&items[0]=2&width[1]=50&height[1]=45&depth[1]=25&weight[1]=3&items[1]=3

In order to prevent the URL from becoming too long, the array of fields can also be specified using HTTP POST requests.

The following table summarizes the data you must pass to our API in order to get a quote.

pickup The postcode to pick the goods from
delivery The postcode to deliver the goods to
height Height in centimetres
width Width in centimetres
depth Depth in centimetres
weight Weight in kilograms
items Number of items you want a quote for.
OUTPUT: The API will output the fields below:

error If any error occurs while processing your request, this field will contain an error message. Otherwise, 'OK' will be returned.
eta It's a string containing the Estimated Time of Arrival
price The price charged to deliver the goods. GST is already included.
Note that in the output, fields will be line-separated (character '\n') and each line will contain a field name and respective value separated by '='. See example below.

error=OK
eta=Overnight
price=[url removed, login to view]
The following piece of code is a simple example of how to access our Calculator API using PHP.

<?
$calculator_url = "[url removed, login to view]";

/* from/to postcodes */
$pickup = 2000; //From Sydney
$delivery = 4000; //From Brisbane

/* Dimensions */
$width = 40;
$height = 35;
$depth = 65;
$weight = 2;

$ego_params = "?pickup=$pickup&delivery=$delivery";
$ego_params .= "&width=$width";
$ego_params .= "&height=$height&depth=$depth&weight=$weight";
$ego_quote = file($calculator_url . $ego_params);

foreach ($ego_quote as $num=>$quote) {
$quote = trim($quote);
$quote_field = explode("=", $quote);
print "Field=" . $quote_field[0] . "\tValue=" . $quote_field[1] . "\n";
}
?>

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online