Print Page | Close Window

SmallSearchBox.asp on non-P.C. asp pages

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=4773
Printed Date: 13-July-2025 at 10:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: SmallSearchBox.asp on non-P.C. asp pages
Posted By: MGatESS
Subject: SmallSearchBox.asp on non-P.C. asp pages
Date Posted: 04-October-2011 at 1:37pm
Running Product Cart v3.51

I am trying to get the small search box located at the top of the product cart pages (in the header.asp file) to come up in my website root default page.

I tried using the "Response.WriteFile" in the default.aspx file where I wanted the box to show up.  The box displayed, but it included showing some tags and a lengthy anti-piracy message from EarlyImpact, LLC.

Can anyone tell me how I can get the SmallSearchBox08.asp file to show properly in my default.aspx page without a) changing the stylesheets of the page or b) having to build a "custom code" to get it to work?  I'm not a programmer and I know little about ASP let alone ASP.NET (about all I figured out was the "Response.WriteFile" which I use for the root pages header and footer).


-------------
~ Mark G.

ESS, Inc. - http://www.endoscopy.com/" rel="nofollow - www.endoscopy.com



Replies:
Posted By: Greg Dinger
Date Posted: 04-October-2011 at 2:26pm
I don't believe that the cart totals session variable from the ASP session can be shared easily with the .NET session.  Unless there is some huge reason for the rest of the site to be .ASPX pages, I'd change them over to .ASP so that you can get your common design elements such as cart totals to function.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: MGatESS
Date Posted: 05-October-2011 at 10:22am
Well, if I can't "transplant" the search box from the Product Cart system, is there an "add-on" script/set of pages that will access the product cart search feature from ANY page - even if the page is on another hosted site so that they appear seamlessly integrated?

OR, can anyone WRITE a script that I can just put in my page so that people can search our ProductCart system from our root home page?  All I'd want is a text box and a "search" button that would take the information in that search box an populate the appropriate field in the search system of product cart - so then when someone clicks the search button, it will open up the product cart page with search results in the product cart system.

Please let me know if anyone has those expertise.


-------------
~ Mark G.

ESS, Inc. - http://www.endoscopy.com/" rel="nofollow - www.endoscopy.com


Posted By: Greg Dinger
Date Posted: 05-October-2011 at 10:31am
ya know, I read that yesterday and somehow interpreted it as wanting the cart totals.  to place the search feature in the ASPX page just paste the appropriate code.  It's just an HTML form.  Make sure you have your path to the  showsearchresults.asp and search.asp pages set correctly.
 
also, these statements:
 <input type="hidden" name="pageStyle" value="<%=bType%>">
 <input type="hidden" name="resultCnt" value="<%=pcIntPreferredCountSearch%>">
 
those contain ASP variables.  You can hard code them to your preference.  Options for the 1st (page layout) are H/L/M/P.  2nd should be an integer reflecting # of products per page.
 


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |



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