ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Small Search Box 08 Issue on homepage...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Small Search Box 08 Issue on homepage...

 Post Reply Post Reply
Author
Message
gsquarednetworking View Drop Down
Newbie
Newbie


Joined: 09-January-2009
Location: Washington
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote gsquarednetworking Quote  Post ReplyReply Direct Link To This Post Topic: Small Search Box 08 Issue on homepage...
    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!

Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post Posted: 09-January-2009 at 3:34pm
Please post a link if possible
Back to Top
gsquarednetworking View Drop Down
Newbie
Newbie


Joined: 09-January-2009
Location: Washington
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote gsquarednetworking Quote  Post ReplyReply Direct Link To This Post 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>

Back to Top
gsquarednetworking View Drop Down
Newbie
Newbie


Joined: 09-January-2009
Location: Washington
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote gsquarednetworking Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
ProductCart View Drop Down
Admin Group
Admin Group

ProductCart Team

Joined: 01-October-2003
Status: Offline
Points: 135
Post Options Post Options   Thanks (0) Thanks(0)   Quote ProductCart Quote  Post ReplyReply Direct Link To This Post 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 shopping cart software
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.