| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Multiple search forms | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hopefully someone can help me with this. I'm sure I did this the wrong way, but given my somewhat limited knowledge(zero), I'm not sure how else to do it. I sell books online I am now able to search for books by author, title, isbn or subject with just the 1 search box, but I want 4 seperate search forms or boxes with dedicated fields. I created a template where I copied and pasted the code to create 4 boxes and it works, but there is a caveat. When the results are displayed it also displays whatever you search for in all 4 of the boxes. Ex: if you enter Stephen King into the author box, then when the results are displayed it now says Stephen King in all 4 search boxes. Not a huge problem, but it looks ugly. Any suggestions would be greatly appreciated. I'm using 3.4.14
|
|||||||
#2
|
|||||||||
|
|||||||||
![]() Can you post the code? That would really help. I have an idea but would be easy to confirm if I saw the code.
Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#3
|
|||||||
|
|||||||
![]() Here's the code from the template for the search boxes.
Code:
And here's the code from the search.php file (that I got from another thread) for the different search fields: Code:
|
|||||||
#4
|
|||||||||
|
|||||||||
![]() This line in each of the <input> tags is what is making the same text show up in each of the inputs.
Quote:
You can remove this completely from all 4 as it's not necessary, but just a convenience. Or just leave it in 1 of them, although that doesn't really make sense either. If you had a different "name" for each of the <input> tags, then you could use this feature and just change it to be Quote:
to have it populate each of the text boxes with the previous values. If you wanted it to do it like this, you'd have to change the php code to reflect these changes. Hope that wasn't too much information or too confusing. The simplest way to fix it is to remove Quote:
Hope that helps. Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
#5
|
|||||||
|
|||||||
![]() That worked great! Thank you very, very much - really appreciate the assistance.
|
|||||||
#6
|
|||||||||
|
|||||||||
![]() Not a problem!
![]() Carrie
__________________
Custom Development, Custom Coding and Pre-built modules for X-cart since 2002! We support X-cart versions 3.x through 5.x! Home of the famous Authorize.net DPM & CIM Modules, Reward Points Module, Point of Sale module, Speed Booster modules and more! Over 200 X-cart Mods available & Thousands of Customizations Since 2002 - bcsengineering.com Please E-Mail us for questions/support! |
|||||||||
|
|||
X-Cart forums © 2001-2020
|