You are here: xcart searching provider field with drop down? « All PHP « IT news, forums, messages
xcart searching provider field with drop down?

Posted by Nigel on 07/25/06 08:19

anyone using xcart?

in the advanced search, i want to change searching for providers from a
text field to a drop down box.

the field is currently

<INPUT type="text" name="posted_data[provider]" size="30"
value="{$search_prefilled.provider}" style="width:70%">

and i want it to be similar to the shipping method field which is a
drop down, which looks like this...

<SELECT name="posted_data[shipping_method]" style="width:70%">
<OPTION value=""></OPTION>
{section name=sm loop=$shipping_methods}
<OPTION value="{$shipping_methods[sm].shippingid}"{if
$search_prefilled.shipping_method eq $shipping_methods[sm].shippingid}
selected{/if}>{$shipping_methods[sm].shipping|trademark}</OPTION>
{/section}
</SELECT>

anyone know how to make the providers field work like shipping method
field?
i need to search in the table called xcart_customers and display all
the 'company' fields for all entries with a usertype of 'P'

help! thnx!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация