The Official Website of AgoraCart and Agora.cgi
AgoraCart.com Demos Download AgoraCart User Manuals & Wiki Gold Members Forum Go Gold Now! Gold Version Memberships

AgoraCart.com

About
Features
Download
Payment Gateways
Send a Donation
Founders Club
BLOG: News & Updates

Showcases & Demos

AgoraCart Demos
Shop Live Stores

Downloads & Add-ons

Gold Version Downloads
DBwizz Database Mgr.
AgoraCart.com Store

Help & Support

User Manuals
Gold Version Users Forum
Gold Version Chat
Tech Support
Certified Agora Pros
Certified Designers
Hire a Freelancer

Gold Version Members

Member Benefits
Join Today!
Gold Members Home
Gold Version Users Forum
Gold Version Chat Rooms
Gold Version Downloads

For Store Owners

Merchant Accounts
Cool Resources
Advertise Here
"Powered by" Logos
Web Hosting Search

Misc.

Contact Us
MEET's Talking Guide
The Ancient Greek Agora






AgoraCart Free User Forums

This is the official FAQ and Cool Tips guide For the AgoraCart shopping Cart software


Official Sponsors of the AgoraCart Project:

       


RegisterSearchFAQLog in
Reply to topic Page 1 of 1
Search by UserFieldFour
Author Message
Reply with quote
Post Search by UserFieldFour 
Hi,
I'm going to be running a Baby store. In the UserFieldFour I wrote if the item in particular is for Boy or Girl. I would like now to search that field. I was able to do so from a form already

Code:

<font face="arial,verdana" color="red" size=2>
<IMG SRC="html/images/gender_button.jpg" border="1"></font>
<form action="agora.cgi" method="post">
<input TYPE="hidden" NAME="ppinc" VALUE="search">
<input type="radio" name="user4" value="Girl" src="html/images/girl_button.jpg"> Baby Girl br>
<input type="radio" name="user4" value="Boy"> Baby Boy<br>
<input type="radio" name="user4" value="Mom"> Mommy<br>
<input TYPE="hidden" NAME="cart_id" VALUE="%%cart_id%%">
<input TYPE="submit" NAME="search_gender_button" VALUE=" Search "></form>


However, I would like to have some buttons to click redirecting to the search better than the radio buttons.

http://www.coosncuddles.com/agora

Let me know if you can help,

Jack Ponte
[/url]

View user's profile Send private message Visit poster's website MSN Messenger
Reply with quote
Post  
Jack,
I'm surprised that you get any search results at all using
<input TYPE="submit" NAME="search_gender_button" VALUE=" Search ">

The NAME should be:
<input TYPE="submit" NAME="search_request_button" VALUE=" Search ">

Did you make any edits to core files to make it work???

If you just want standard buttons, you could do the following:
Code:
<form action="agora.cgi" method="post">
<input TYPE="hidden" NAME="ppinc" VALUE="search">
<input type="hidden" name="user4" value="Girl">
<input TYPE="hidden" NAME="cart_id" VALUE="%%cart_id%%">
<input TYPE="submit" NAME="search_request_button" VALUE=" Baby Girl "></form>


For an image button:
Code:
<form action="agora.cgi" method="post">
<input TYPE="hidden" NAME="ppinc" VALUE="search">
<input type="hidden" name="user4" value="Girl">
<input TYPE="hidden" NAME="cart_id" VALUE="%%cart_id%%">
<input TYPE="image" NAME="search_request_button" VALUE=" Search "  src="%%URLofImages%%/girl_button.jpg">
</form>


Each gender selction would need to have its own set of form tags.

HTH!



Last edited by scottcrew on Wed Jan 03, 07 11:01 am; edited 1 time in total

_________________
God Bless!
Bonnie - AgoraCart Moderator

Get a Gold Membership
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger ICQ Number
Reply with quote
Post Got It! 
Hi,
Thanks.... I was looking at your code and I saw the answer. I wanted to get rid of the radio button so i just hid it but still pass the value.

Thanks again,

Jack Ponte

View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum