Search box on shopping cart page

General ShopSite user discussion

Search box on shopping cart page

Postby FredW » Thu Aug 22, 2013 10:53 am

Hi Folks,

I apologize in advance if this question has been asked and answered before, but after searching your forum and help pages, I can't find the answer.

Is there an option to set to get the search box to show up on the Shopping cart page?

Thanks,
Fred
FredW
 
Posts: 188
Joined: Mon Apr 02, 2012 2:07 pm

Re: Search box on shopping cart page

Postby loren_d_c » Fri Aug 23, 2013 11:20 am

There is no setting for this, it would just depend on whether or not the shopping cart template included it. None of the default cart templates in ShopSite include a search field, so it would have to be your own custom cart template or a customized copy of one of the ShopSite cart templates.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Search box on shopping cart page

Postby FredW » Fri Feb 14, 2014 2:43 pm

Hello Loren,

I finally got around to working on getting the search box on the shopping cart page and encountered something I don't understand. I'm working with a copy of the Multi-Use-Search.sst template. The template has code in it as shown below: (I've colored the lines in question.) I have set up the Search Page Layout such that I checked the option below:
]Search on store pages x Check here to display search on all store pages

I assumed that that check box turned set the VAR.SearchOnAllPages to 'Yes", but my testing of my copy of this template shows that is not the case. If it were the case, my thinking is that the search box would be displayed.

Can you help clarify what I am missing here?
Thanks
Fred

[-- IF VAR.SearchOnAllPages "yes" --]
[-- IF ANALYTICS_MULTI_DOMAIN --]
<form action="[-- SHOPPING_CART_URL BASE --]/productsearch.cgi?storeid=[-- STORE.ID --]" method="get" onSubmit="javascript:__utmLinkPost(this)">
[-- ELSE --]
<form action="[-- SHOPPING_CART_URL BASE --]/productsearch.cgi?storeid=[-- STORE.ID --]" method="get">
[-- END_IF --]
<input type="hidden" name="storeid" value="[-- STORE.ID --]">
[-- IF MiniCart --]<script type="text/javascript" language="JavaScript">
DisplayMiniCart("ss_cart_[-- STORE_Serial_Number --]","Subtotal","[-- VAR.CartIcon --]");
</script>[-- END_IF --]
<input type="text" name="search_field" class="search" size="13">
<input type="submit" value="[-- STORE.Go --]" class="search_submit">
</form>
[-- ELSE --]
[-- IF MiniCart --]<script type="text/javascript" language="JavaScript">
DisplayMiniCart("ss_cart_[-- STORE_Serial_Number --]","Subtotal","[-- VAR.CartIcon --]");
</script>[-- END_IF --]
[-- END_IF --]
FredW
 
Posts: 188
Joined: Mon Apr 02, 2012 2:07 pm

Re: Search box on shopping cart page

Postby Jim » Fri Feb 14, 2014 4:00 pm

Try adding just the following code. Make sure that it is not inside of any other form on the page or it won't work and neither will the rest of the page.

Code: Select all
<form action="[-- SHOPPING_CART_URL BASE --]/productsearch.cgi?storeid=[-- STORE.ID --]" method="get">
<input type="hidden" name="storeid" value="[-- STORE.ID --]">
<input type="text" name="search_field" class="search" size="13">
<input type="submit" value="[-- STORE.Go --]" class="search_submit">
</form>
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 86 guests