Small Search Box 08 Issue on homepage...
Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=2325
Printed Date: 22-July-2025 at 11:20am Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com
Topic: Small Search Box 08 Issue on homepage...
Posted By: gsquarednetworking
Subject: Small Search Box 08 Issue on homepage...
Date Posted: 09-January-2009 at 3:22pm
So I have got my website up and running and slowly working through getting everything looking the way I need it... I am currently on implementing the search box 08 into my design.
Everything is working perfectly, I have removed the javascrip and ajax "searching...please wait" - so no issues there...
What is happening is, once inside the store the search works perfectly, but once a user goes to the index.asp page (in the root, 2 levels up) they cant search.
2 Scenarios with 2 different results...
If the user doesnt enter anything in the box and then clicks the images to search... the search technically works fine by taking them to the advanced search page... just as if they were in the store.
If the user enters some keyword and clicks the image to search... the store gives takes the user to techErr.asp?err= but no error is present and I cant find anything in the log that it directs me to look through... since no number is coming up, I am taking it that no error is being recorded.
I have modified the smallsearchbox08.asp to use absolute url's - so not really sure what I am doing wrong or what code I am missing that needs modification.
I have used ProductCart with several other stores and never have had this problem... so any help would be appreciated. Thanks again!
|
Replies:
Posted By: Greg Dinger
Date Posted: 09-January-2009 at 3:34pm
Please post a link if possible
------------- GreyBeard Design Group
Certified ProductCart Developer
Web Design/Development/Hosting
http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |
|
Posted By: gsquarednetworking
Date Posted: 09-January-2009 at 4:08pm
Would the code help at all? I can post that. This is my smallsearchbox08.asp.
'// Locate preferred results count and load as default Dim pcIntPreferredCountSearch pcIntPreferredCountSearch =(scPrdRow*scPrdRowsPerPage) %> <form action="http://anywebsite.com/shop/pc/showsearchresults.asp" name="search" method="get"> <input type="hidden" name="pageStyle" value="<%=bType%>"> <input type="hidden" name="resultCnt" value="<%=pcIntPreferredCountSearch%>"> <input type="Text" name="keyword" style="width:352px;" value="" id="smallsearchbox" > <a href="javascript:document.search.submit()" title="Search"><img src="../../images/searchbutton.png" border="0" alt="Search" align="absmiddle"></a> </form>
|
Posted By: gsquarednetworking
Date Posted: 12-January-2009 at 2:16am
Anyone? still can't figure out why I am getting an error message on my search... only happens from the homepage (index). Thanks.
|
Posted By: ProductCart
Date Posted: 12-January-2009 at 3:39am
Variables such as this one...
<%=pcIntPreferredCountSearch%> |
... might be empty (of the ASP code might not be getting parsed at all if the page is not an ASP page).
Simply view the source code through the browser and look at those hidden fields to find out if that is the case.
You can fix the issue by hardcoding values into the hidden fields. To do so:
- view any page of your store where that form is working - view the source code through the browser - look at those hidden fields, copy the code, and paste it into the search form used on your home page.
This will very likely fix the problem.
------------- The ProductCart Team
Home of ProductCart http://www.productcart.com" rel="nofollow - shopping cart software
|
|