ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Custom 404.asp + showing cart & search
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom 404.asp + showing cart & search

 Post Reply Post Reply
Author
Message
worldofrugs View Drop Down
Senior Member
Senior Member
Avatar

Joined: 24-April-2008
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldofrugs Quote  Post ReplyReply Direct Link To This Post Topic: Custom 404.asp + showing cart & search
    Posted: 06-June-2008 at 11:09am
I have made a custom 404.asp page to handle my 301-redirects, 404-not found etc...
On this page I have used the header & footer from the shopping cart to implement so cart-features...
I included also the smallshoppingcart and the search function
The cart works fine, after adding the full path in the links for View & Checkout in the SmallShoppingCart.asp file.
I had to do this as I use it in the 404 page, so if you call a page that does not exist in a folder that is not /productcart/pc/  it will go wrong Wink

It all goes fine except I run into one issue:
- The search function...

The search function:
It shows the text "Searching... Please Wait." already below (see screenshot) and trying to use the search does work kind-of, but not perfect. It does perform the search function, but the Searching screen (with animation) does not come up as on other pages...
Not a problem that that doesn't show, as it still performs the search.
So my question is: How / why is the "Searching... Please Wait." showing and how do I get rid of it?

-------------------------------------------------------------------------------


(Screenshot - Look at right/top)
404


Edited by worldofrugs - 06-June-2008 at 11:46am
Back to Top
worldofrugs View Drop Down
Senior Member
Senior Member
Avatar

Joined: 24-April-2008
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote worldofrugs Quote  Post ReplyReply Direct Link To This Post Posted: 06-June-2008 at 2:48pm
Found a solution... Perhaps not the best in the world, but it works...

I made a copy of SmallSearchBox.asp and named it SmallSearchBox2.asp

Took out this code:
onSubmit="pcf_CheckSearchBox();"  and the code:

<script language="JavaScript">
<!--
function pcf_CheckSearchBox() {
     pcv_strTextBox = document.getElementById("smallsearchbox").value;
    if (pcv_strTextBox != "") {
        pcf_OpenModal2.open();
    }
}
//-->
</script>
<%
'// Loading Window
Response.Write(pcf_InitializePrototype())
response.Write(pcf_ModalWindow(dictLanguage.Item(Session("language")&"_advSrca_23"), "2", 200))
%>

In my 404.asp I don't include the file SmallSearchbox.asp anymore but include SmallSearchBox2.asp.

Working like a charm Big%20smile
It does not show the Searching text etc.. but nicely goes to the search results page with the entered value..
As said before, prob. not the best way to handle this, but since it only is for my 404 page...Wink

If someone has a better solution, lemme know...
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.047 seconds.