Print Page | Close Window

Search box on Details page

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=5170
Printed Date: 09-March-2025 at 7:00pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Search box on Details page
Posted By: Polly
Subject: Search box on Details page
Date Posted: 13-June-2012 at 11:41am
On the main page and the search results pages, the search box allows you to hit "enter" and the search string submits.  But on the product details page, you have to actually click "Go"  to get it to submit.  

We recently upgraded to 4.6, and I am pretty sure that hitting "Enter" after typing a search string worked on all the pages in 4.5.
Our web tech says it works this way on your demo cart thought, so it is working as designed on our site... But this doesn't seem intentional to me.

Try putting sock monkey into the searches on these 2 pages.

Search Results page (or any non-details page):
http://shop.rings-things.com/cart/pc/Proof-151-Chemicals-c5139.htm" rel="nofollow - http://shop.rings-things.com/cart/pc/Proof-151-Chemicals-c5139.htm

Product Details page:
http://shop.rings-things.com/cart/pc/Adhesive-Tenax-Brush-on-5093p34693.htm" rel="nofollow - http://shop.rings-things.com/cart/pc/Adhesive-Tenax-Brush-on-5093p34693.htm

Is this something we can modify, or that you have a fix for? 
"Enter" doesn't seem to be reserved for any other purpose on the details page.  i.e., after typing a quantity in the Buy box, you still have to click add, so Enter isn't reserved for that.


-------------
~~ R&T systems director



Replies:
Posted By: Polly
Date Posted: 13-June-2012 at 11:43am
p.s.  We have about 20,000 items, so customers frequently have to do a lot of searches and compare many items to each other, so clicking "Go" on this page rather than hitting "Enter" might seem minor ... but it adds up to a lot of extra time and clicks, and we don't want them to leave in frustration!

-------------
~~ R&T systems director


Posted By: Guests
Date Posted: 13-June-2012 at 1:07pm
I'm so glad you brought this up, Polly!

I was just working on rebuilding a "refugee" site and bringing it up to 4.6, and I thought I had broken this some how. Haven't had time to look into it, but it's nice to know it's a 4.6 "feature" and not a bug I've introduced.

Hopefully EI will be able to supply a quick fix for this; else I'll post something here when/if I get to it.


Posted By: Hamish
Date Posted: 13-June-2012 at 1:15pm
Hi,  That's a strange one, I'll escalate it internally.

-------------
Editing ProductCart Code?

See http://wiki.earlyimpact.com/developers/editcode" rel="nofollow - WIKI Guidelines for Editing ProductCart's ASP Source Code



Posted By: Polly
Date Posted: 19-June-2012 at 3:22pm
any news?

-------------
~~ R&T systems director


Posted By: Polly
Date Posted: 23-July-2012 at 4:05pm
Thanks, the info you sent to our webmaster fixed it!

-------------
~~ R&T systems director


Posted By: Guests
Date Posted: 23-July-2012 at 4:29pm
I'd love to know the solution. Haven't had time to look into it yet, but it's starting to proliferate on sites we're building on 4.6.


Posted By: razor150
Date Posted: 25-July-2012 at 3:45pm
This is what I received from Early Impact to get rid of that behavior.

To do so you need to remove the following code from viewPrd.asp:



<script language="javascript" type="text/javascript">
function stopRKey(evt)
{
var evt  = (evt) ? evt : ((event) ? event : null);
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
if ((evt.keyCode == 13) && (node.type!="textarea")) { return false; }
}
document.onkeypress = stopRKey;
</script> 




Posted By: whizzinpc
Date Posted: 16-August-2012 at 7:03pm
We had the same issue. Thanks for the fix.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net