WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

State field problem when submitting item
State field problem when submitting item

Version: 4.1.36
printPrint


State field problem when submitting item
MannyM
Beginner

Usergroup: Customer
Joined: Jun 14, 2008
Total Topics: 3
Total Posts: 6
Posted 07/20/08 - 09:15 PM:
quote post
#1
I am in the Philippines, and most of my future site guests and members will also be coming from the Philippines and other countries. I tried submitting a new ad (item, as you refer to it), and it would not let me unless I choose a U.S. state. I want to require that States/Provinces be chosen during item submission, since this will of course be very important site visitors/members perform searches. So how does one from the Philippines, or any country other than the U.S., submit an item?

Also, how does one from any country other than the U.S. stipulate the correct currency of the item price?

My 30-day period is running out fast, and I still have to be able to try to submit a single item. It is almost impossible to fully test out the script in just 30 days.
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 07/21/08 - 02:33 AM:
quote post
#2
In the 'sugest item' and 'edit item' templates, change
<div id="americanstate"><select name="state">{ITEMSTATEOPS}</select></div>
<div id="foreignstate" style="display: none;"><input type="text" name="foreignstate" size="{STANDARDSIZE}" value="{ITEMSTATE}" /></div>
to

<div id="foreignstate"><input type="text" name="foreignstate" size="{STANDARDSIZE}" value="{ITEMSTATE}" /></div>
and
{ITEMCOUNTRYOPS}
to
{ITEMCOUNTRYOPS[Philippines]}


That should make Philippines the default country option and leave an input box for the state. You can type up a selector if you want but that'll restrict it to just the Philippines if you do that.

As for currency, it doesn't matter what currency is used so it's just a matter of what symbol is displayed. Go to Admin -> Customizations -> Language and search for items containing $, and change general_currency there to your country's currency symbol.

Edited by Paul on 07/21/08 - 02:38 AM

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.