osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Ajax postcod (cep em Ajax)

This is a discussion on Ajax postcod (cep em Ajax) within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Na versão do Rafael Amorim eu não conseguia selecionar o esta, apenas os campo ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 05-12-2008, 02:30 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,243
Thanks: 66
Thanked 294 Times in 280 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Ajax postcod (cep em Ajax)

Na versão do Rafael Amorim eu não conseguia selecionar o esta, apenas os campo endereço, bairro , cidade eram selecionado, então arrumei mudei uma query, porém testei aqui e percebi que dava erro dizendo pra selecionar o estaão consegui resolver o problema, isso pra quem baixou a versão que eu postei aqui.

Procure proximo a linha 288 e ache a seguinte linha:
$zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' and UPPER(zone_name) = UPPER('" . tep_db_input($state) . "')");

Substitua por :

$zone_query = tep_db_query("select distinct zone_id from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' and UPPER(zone_code) = UPPER('" . tep_db_input($state) . "')");

É isso ai pessoal,

More...
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Ajax postcod (cep em Ajax) michael_s New osCommerce Contributions 0 04-30-2008 04:26 PM
Ajax postcod (cep em Ajax) michael_s New osCommerce Contributions 0 04-29-2008 12:50 PM
Ajax postcod (cep em Ajax) michael_s New osCommerce Contributions 0 04-29-2008 10:20 AM
Ajax postcod (cep em Ajax) michael_s New osCommerce Contributions 0 01-09-2008 04:55 AM
Ajax Newsticker michael_s New osCommerce Contributions 0 12-02-2007 10:21 AM


All times are GMT -8. The time now is 07:34 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax