Minicart on more info page.

General ShopSite user discussion

Minicart on more info page.

Postby tom0360 » Mon Oct 09, 2006 9:50 am

I created a minicart.js file based on the shopsite help examples for the minicart changing the lines that needed to be changed for serialnum and show link.

I then added a <SCRIPT language="JavaScript" SRC="minicart.js"></SCRIPT> tag to my header section in the admin area and uploaded my minicart.js file to the server.

After publishing the cart works fine on all pages except the more info pages or search pages.

I also made a include and tried adding [-- INCLUDE minicart PROCESS --] to the header template. Again it works onn the main pages, but not on the search or more info pages where I actually get the [-- INCLUDE minicart PROCESS --] code.

Is there something i may need to add or change to get this to work?


Thanks
Tom
tom0360
 
Posts: 34
Joined: Tue Aug 22, 2006 10:55 am

Postby Jim » Mon Oct 09, 2006 1:11 pm

The search page is loaded by a cgi which is not in your store's output directory, so to access your minicart.js you will probably need to include the full url in the SRC= line.

If you are seeing [-- INCLUDE minicart PROCESS --] on the search page or the moreinfo page it means that the file that contains this tag is probably being included within another file and that file doesn't specify the PROCESS option when it includes the file.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby tom0360 » Tue Oct 10, 2006 5:13 am

Thanks Jim,

I made the header an include the used the [-- Include header Process --] to have it process and template tags in the header code. That seemed to work.




Tom
tom0360
 
Posts: 34
Joined: Tue Aug 22, 2006 10:55 am


Return to User Forum

Who is online

Users browsing this forum: No registered users and 49 guests