Product Search on shopping cart page

General ShopSite user discussion

Product Search on shopping cart page

Postby roopesh » Tue Jul 05, 2011 8:39 am

Hi

I have created a shopping cart page for my website using the tutorial

http://www.shopsite.com/templates/cookbook/quick-easy-templates-cart.shtml

shopping cart works fine. I am facing a problem with the product search option in my sidebar

I am adding the search option with this code on my template

[-- IF PAGE.SearchProductField --]
[-- INCLUDE Page-2LineSearchForm PROCESS --]
[-- END_IF --]


while executing getting an error

"shoppingcart [115]: Template Error: IF using PAGE tag in non-page template"

How can I resolve this?

any help will be highly appreciated

Thanks
Roopesh
roopesh
 
Posts: 3
Joined: Tue Jun 28, 2011 2:09 am

Re: Product Search on shopping cart page

Postby ShopSite Lauren » Tue Jul 05, 2011 12:21 pm

You can remove the IF statement, because the IF statement is for a page field (a page checkbox to see if the page you are building is checked to display the search). Since you know you want the search in the cart, just add the include file for the search field.

[-- INCLUDE Page-2LineSearchForm PROCESS --]
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT


Return to User Forum

Who is online

Users browsing this forum: No registered users and 39 guests