Find Jobs
Hire Freelancers

oscommerce shipping module

$30-250 USD

Concluído
Publicado há mais de 13 anos

$30-250 USD

Pago na entrega
I need someone to create an oscommerce shipping module for [login to view URL] 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: [login to view URL] 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. [login to view URL][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=14.52 The following piece of code is a simple example of how to access our Calculator API using PHP. <? $calculator_url = "[login to view URL]"; /* 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"; } ?>
ID do Projeto: 771711

Sobre o projeto

3 propostas
Projeto remoto
Ativo há 14 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
Hello ! Please check my offer through the PMB section. Thank you !
$200 USD em 4 dias
5,0 (110 avaliações)
7,0
7,0
3 freelancers estão ofertando em média $250 USD for esse trabalho
Avatar do Usuário
pls chk pmb
$250 USD em 4 dias
4,9 (591 avaliações)
8,0
8,0
Avatar do Usuário
ready for your work
$300 USD em 15 dias
3,9 (42 avaliações)
6,3
6,3

Sobre o cliente

Bandeira do(a) AUSTRALIA
Gold Coast, Australia
5,0
30
Método de pagamento verificado
Membro desde jun. 13, 2005

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.