Mini Cart problem with custom template

This is an archive of old posting to the User Forum

Mini Cart problem with custom template

Postby Dan Richards » Sat Jul 24, 2004 12:16 pm

Hi,

I'm having trouble getting the mini cart to work with my custom templates.
I follow the instructions and I get a strange error on the page. See this
page as an example:

http://www.aboutrubberstamps.com/test1.html

The template code is below: Can someone tell me what I'm doing wrong?

Tx

Dan

****************************************************************************
******
# Custom Four-Column Page Template for AboutRubberStamps
# <XMP> (this tag causes Internet Explorer to display this page as text,
# rather than trying to display it as HTML. You don't need it in your
# custom page template.)


# Begin defining the actual page
[--DEFINE PAGE--]
<html>
<head>
[-- VAR.MiniCartColor "black" --]
[-- VAR.MiniCartTextColor Page.LinkColor --]
[-- VAR.MiniCartHoverColor Page.ActiveLinkColor --]
[-- VAR.Media media/themesmedia --]
[-- IF MiniCart --]
[-- INCLUDE MiniCart.js PROCESS --]
[-- END_IF --]
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
#
#Load the Pages's text's values into a VAR
#so it can be used in the product template
#

# Text1 is used for the main page description
[--VAR.TEXT1 PAGE.Text1 --]

# Text2 is used to go forward and back to other pages
[--VAR.TEXT2 PAGE.Text2 --]

# Text3 is used for the on page title
[--VAR.TEXT3 PAGE.Text3 --]

<title>[--Page.name--]</title>
<meta name="keywords" content="[--PAGE.MetaKeywords--]">
<meta name="description" content="[--PAGE.MetaDescription--]">
</head>

<!-- Set background image and page colors -->
<body background="http://www.aboutrubberstamps.com/media/bg-cream.gif"
width=1600 height=26 alt="Rubber Stamps"
bgcolor="[--PAGE.BackgroundColor--]" text="[--PAGE.TextColor--]"
link="[--PAGE.LinkColor--]" vlink="[--PAGE.VisitedLinkColor--]"
alink="[--PAGE.ActiveLinkColor--]" >


[--IF PAGE.DisplayPageHeader--]
[--HEADER--]
[--END_IF--]

<h1 align="center"><font face="Comic Sans MS" size="6"
color="#800040">[--VAR.TEXT3--]</font></h1>

[-- IF MiniCart --]
<script LANGUAGE="javascript">
DisplayMiniCart("ss_cart_[-- STORE_Serial_Number --]","Subtotal");
</script>
[-- END_IF --]

<table width="100% ">
<tr valign="top">
<td valign="top"><table border="1" width="100%" cellpadding="4"
cellspacing="1">
<tr>
<td width="20%" valign="middle"><p align="center"><font
color="#800040" face="Comic Sans MS" size="2"><a
href="http://www.aboutrubberstamps.com/discount.html">Rubber stamps
highly discounted!!</a><br>
</font><a
href="http://www.aboutrubberstamps.com/discount.html"><img
src="http://www.aboutrubberstamps.com/media/discount.gif"
alt="Buy more rubber stamps, pay less" border="0" width="79"
height="71"></a></td>
<td width="150%" valign="top"><font face="Comic Sans MS" size="2"
color="#800040">[--VAR.TEXT1--]
<br>
<br>[-- PrevNext --]

</font></td>
<td width="25%" valign="middle"><p
align="center"><font face="Comic Sans MS"><a
href="http://www.aboutrubberstamps.com/email.html"><font size="2"
color="#009933"><b>$50</b></font><font color="#800040" size="2">
Worth of Free Stamps!</font></a><font size="1"
color="#800040"><br>
</font></font><a href="http://www.aboutrubberstamps.com/email.html">
<img
src="http://www.aboutrubberstamps.com/media/signup.gif" alt="Rubber
stamps Newsletter"
border="0" width="90" height="64"></a></td>
</tr>
</table>
</td>
</tr>
</table>


#
# This layout uses a four-column table, with the products in the columns
#

<!-- Begin Table of Products -->
#
# Change this value to change number of columns
# Can also use actual number or Page.Columns
#
[-- VAR.COL 4 --]

<table width="100%" cellspacing="5">
[--LOOP PRODUCTS VAR.col --]
<td valign=top align=center >
[--PRODUCT--]
</td>
[--END_LOOP PRODUCTS--]
</table>
<!-- End Table of Products -->

<center>
[--SEARCH_FORM--]
</center>

</td>
</tr>
</center>

[-- PrevNext --]


# This tag is used if there is more than 1 page
[--IF PAGE.text2--]
<hr>
[--VAR.TEXT2--]
<hr>
[--ELSE--]
<hr>
[--END_IF--]

# Display the page footer
[--FOOTER--]

</body>
</html>
[--END_DEFINE PAGE--]


****************************************************************************
************************************
Dan Richards
 

Re: Mini Cart problem with custom template

Postby Rob » Sat Jul 24, 2004 2:43 pm

Try putting <style> tags around the code, as in:

<style type="text/css">
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
</style>

Rob


I'm having trouble getting the mini cart to work with my custom templates.
I follow the instructions and I get a strange error on the page. See this
page as an example:

http://www.aboutrubberstamps.com/test1.html

The template code is below: Can someone tell me what I'm doing wrong?

Tx

Dan


****************************************************************************
******
# Custom Four-Column Page Template for AboutRubberStamps
# <XMP> (this tag causes Internet Explorer to display this page as text,
# rather than trying to display it as HTML. You don't need it in your
# custom page template.)


# Begin defining the actual page
[--DEFINE PAGE--]
html
head
[-- VAR.MiniCartColor "black" --]
[-- VAR.MiniCartTextColor Page.LinkColor --]
[-- VAR.MiniCartHoverColor Page.ActiveLinkColor --]
[-- VAR.Media media/themesmedia --]
[-- IF MiniCart --]
[-- INCLUDE MiniCart.js PROCESS --]
[-- END_IF --]
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
#
#Load the Pages's text's values into a VAR
#so it can be used in the product template
#

# Text1 is used for the main page description
[--VAR.TEXT1 PAGE.Text1 --]

# Text2 is used to go forward and back to other pages
[--VAR.TEXT2 PAGE.Text2 --]

# Text3 is used for the on page title
[--VAR.TEXT3 PAGE.Text3 --]

title>[--Page.name--]</title
meta name="keywords" content="[--PAGE.MetaKeywords--]"
meta name="description" content="[--PAGE.MetaDescription--]"
/head

!-- Set background image and page colors --
body background="http://www.aboutrubberstamps.com/media/bg-cream.gif"
width=1600 height=26 alt="Rubber Stamps"
bgcolor="[--PAGE.BackgroundColor--]" text="[--PAGE.TextColor--]"
link="[--PAGE.LinkColor--]" vlink="[--PAGE.VisitedLinkColor--]"
alink="[--PAGE.ActiveLinkColor--]"


[--IF PAGE.DisplayPageHeader--]
[--HEADER--]
[--END_IF--]

h1 align="center"><font face="Comic Sans MS" size="6"
color="#800040">[--VAR.TEXT3--]</font></h1

[-- IF MiniCart --]
script LANGUAGE="javascript"
DisplayMiniCart("ss_cart_[-- STORE_Serial_Number --]","Subtotal");
/script
[-- END_IF --]

table width="100% "
tr valign="top"
td valign="top"><table border="1" width="100%" cellpadding="4"
cellspacing="1"
tr
td width="20%" valign="middle"><p align="center"><font
color="#800040" face="Comic Sans MS" size="2"><a
href="http://www.aboutrubberstamps.com/discount.html">Rubber stamps
highly discounted!!</a><br
/font><a
href="http://www.aboutrubberstamps.com/discount.html"><img
src="http://www.aboutrubberstamps.com/media/discount.gif"
alt="Buy more rubber stamps, pay less" border="0" width="79"
height="71"></a></td
td width="150%" valign="top"><font face="Comic Sans MS" size="2"
color="#800040">[--VAR.TEXT1--]
br
br>[-- PrevNext --]

/font></td
td width="25%" valign="middle"><p
align="center"><font face="Comic Sans MS"><a
href="http://www.aboutrubberstamps.com/email.html"><font size="2"
color="#009933"><b>$50</b></font><font color="#800040" size="2"
Worth of Free Stamps!</font></a><font size="1"
color="#800040"><br
/font></font><a
href="http://www.aboutrubberstamps.com/email.html"
img
src="http://www.aboutrubberstamps.com/media/signup.gif"
alt="Rubber
stamps Newsletter"
border="0" width="90" height="64"></a></td
/tr
/table
/td
/tr
/table


#
# This layout uses a four-column table, with the products in the columns
#

!-- Begin Table of Products --
#
# Change this value to change number of columns
# Can also use actual number or Page.Columns
#
[-- VAR.COL 4 --]

table width="100%" cellspacing="5"
[--LOOP PRODUCTS VAR.col --]
td valign=top align=center
[--PRODUCT--]
/td
[--END_LOOP PRODUCTS--]
/table
!-- End Table of Products --

center
[--SEARCH_FORM--]
/center

/td
/tr
/center

[-- PrevNext --]


# This tag is used if there is more than 1 page
[--IF PAGE.text2--]
hr
[--VAR.TEXT2--]
hr
[--ELSE--]
hr
[--END_IF--]

# Display the page footer
[--FOOTER--]

/body
/html
[--END_DEFINE PAGE--]



****************************************************************************
************************************

Rob
 

Re: Mini Cart problem with custom template

Postby Dan Richards » Sat Jul 24, 2004 4:32 pm

Hi Rob,

That fixed the error on the page, but still no mini cart. Any other
suggestions?

Thanks

Dan

"Rob" <rob@mangiafico.net> wrote in message
news:cdul6p$g5n$1@eval.shopsite.com...
Try putting <style> tags around the code, as in:

style type="text/css"
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
/style

Rob


I'm having trouble getting the mini cart to work with my custom
templates.
I follow the instructions and I get a strange error on the page. See
this
page as an example:

http://www.aboutrubberstamps.com/test1.html

The template code is below: Can someone tell me what I'm doing wrong?

Tx

Dan



****************************************************************************
******
# Custom Four-Column Page Template for AboutRubberStamps
# <XMP> (this tag causes Internet Explorer to display this page as text,
# rather than trying to display it as HTML. You don't need it in your
# custom page template.)


# Begin defining the actual page
[--DEFINE PAGE--]
html
head
[-- VAR.MiniCartColor "black" --]
[-- VAR.MiniCartTextColor Page.LinkColor --]
[-- VAR.MiniCartHoverColor Page.ActiveLinkColor --]
[-- VAR.Media media/themesmedia --]
[-- IF MiniCart --]
[-- INCLUDE MiniCart.js PROCESS --]
[-- END_IF --]
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
#
#Load the Pages's text's values into a VAR
#so it can be used in the product template
#

# Text1 is used for the main page description
[--VAR.TEXT1 PAGE.Text1 --]

# Text2 is used to go forward and back to other pages
[--VAR.TEXT2 PAGE.Text2 --]

# Text3 is used for the on page title
[--VAR.TEXT3 PAGE.Text3 --]

title>[--Page.name--]</title
meta name="keywords" content="[--PAGE.MetaKeywords--]"
meta name="description" content="[--PAGE.MetaDescription--]"
/head

!-- Set background image and page colors --
body background="http://www.aboutrubberstamps.com/media/bg-cream.gif"
width=1600 height=26 alt="Rubber Stamps"
bgcolor="[--PAGE.BackgroundColor--]" text="[--PAGE.TextColor--]"
link="[--PAGE.LinkColor--]" vlink="[--PAGE.VisitedLinkColor--]"
alink="[--PAGE.ActiveLinkColor--]"


[--IF PAGE.DisplayPageHeader--]
[--HEADER--]
[--END_IF--]

h1 align="center"><font face="Comic Sans MS" size="6"
color="#800040">[--VAR.TEXT3--]</font></h1

[-- IF MiniCart --]
script LANGUAGE="javascript"
DisplayMiniCart("ss_cart_[-- STORE_Serial_Number --]","Subtotal");
/script
[-- END_IF --]

table width="100% "
tr valign="top"
td valign="top"><table border="1" width="100%" cellpadding="4"
cellspacing="1"
tr
td width="20%" valign="middle"><p align="center"><font
color="#800040" face="Comic Sans MS" size="2"><a
href="http://www.aboutrubberstamps.com/discount.html">Rubber stamps
highly discounted!!</a><br
/font><a
href="http://www.aboutrubberstamps.com/discount.html"><img
src="http://www.aboutrubberstamps.com/media/discount.gif"
alt="Buy more rubber stamps, pay less" border="0" width="79"
height="71"></a></td
td width="150%" valign="top"><font face="Comic Sans MS"
size="2"
color="#800040">[--VAR.TEXT1--]
br
br>[-- PrevNext --]

/font></td
td width="25%" valign="middle"><p
align="center"><font face="Comic Sans MS"><a
href="http://www.aboutrubberstamps.com/email.html"><font size="2"
color="#009933"><b>$50</b></font><font color="#800040" size="2"
Worth of Free Stamps!</font></a><font size="1"
color="#800040"><br
/font></font><a
href="http://www.aboutrubberstamps.com/email.html"
img
src="http://www.aboutrubberstamps.com/media/signup.gif"
alt="Rubber
stamps Newsletter"
border="0" width="90" height="64"></a></td
/tr
/table
/td
/tr
/table


#
# This layout uses a four-column table, with the products in the columns
#

!-- Begin Table of Products --
#
# Change this value to change number of columns
# Can also use actual number or Page.Columns
#
[-- VAR.COL 4 --]

table width="100%" cellspacing="5"
[--LOOP PRODUCTS VAR.col --]
td valign=top align=center
[--PRODUCT--]
/td
[--END_LOOP PRODUCTS--]
/table
!-- End Table of Products --

center
[--SEARCH_FORM--]
/center

/td
/tr
/center

[-- PrevNext --]


# This tag is used if there is more than 1 page
[--IF PAGE.text2--]
hr
[--VAR.TEXT2--]
hr
[--ELSE--]
hr
[--END_IF--]

# Display the page footer
[--FOOTER--]

/body
/html
[--END_DEFINE PAGE--]




****************************************************************************
************************************



Dan Richards
 

Re: Mini Cart problem with custom template

Postby Rob » Sat Jul 24, 2004 8:09 pm

Make sure you also turn on the minicart in the backoffice under:
Commerce Setup -> Order System -> Layout

Rob

Hi Rob,

That fixed the error on the page, but still no mini cart. Any other
suggestions?

Thanks

Dan

"Rob" <rob@mangiafico.net> wrote in message
news:cdul6p$g5n$1@eval.shopsite.com...
Try putting <style> tags around the code, as in:

style type="text/css"
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
/style

Rob


I'm having trouble getting the mini cart to work with my custom
templates.
I follow the instructions and I get a strange error on the page. See
this
page as an example:

http://www.aboutrubberstamps.com/test1.html

The template code is below: Can someone tell me what I'm doing wrong?

Tx

Dan




****************************************************************************
******
# Custom Four-Column Page Template for AboutRubberStamps
# <XMP> (this tag causes Internet Explorer to display this page as
text,
# rather than trying to display it as HTML. You don't need it in your
# custom page template.)


# Begin defining the actual page
[--DEFINE PAGE--]
html
head
[-- VAR.MiniCartColor "black" --]
[-- VAR.MiniCartTextColor Page.LinkColor --]
[-- VAR.MiniCartHoverColor Page.ActiveLinkColor --]
[-- VAR.Media media/themesmedia --]
[-- IF MiniCart --]
[-- INCLUDE MiniCart.js PROCESS --]
[-- END_IF --]
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
#
#Load the Pages's text's values into a VAR
#so it can be used in the product template
#

# Text1 is used for the main page description
[--VAR.TEXT1 PAGE.Text1 --]

# Text2 is used to go forward and back to other pages
[--VAR.TEXT2 PAGE.Text2 --]

# Text3 is used for the on page title
[--VAR.TEXT3 PAGE.Text3 --]

title>[--Page.name--]</title
meta name="keywords" content="[--PAGE.MetaKeywords--]"
meta name="description" content="[--PAGE.MetaDescription--]"
/head

!-- Set background image and page colors --
body background="http://www.aboutrubberstamps.com/media/bg-cream.gif"
width=1600 height=26 alt="Rubber Stamps"
bgcolor="[--PAGE.BackgroundColor--]" text="[--PAGE.TextColor--]"
link="[--PAGE.LinkColor--]" vlink="[--PAGE.VisitedLinkColor--]"
alink="[--PAGE.ActiveLinkColor--]"


[--IF PAGE.DisplayPageHeader--]
[--HEADER--]
[--END_IF--]

h1 align="center"><font face="Comic Sans MS" size="6"
color="#800040">[--VAR.TEXT3--]</font></h1

[-- IF MiniCart --]
script LANGUAGE="javascript"
DisplayMiniCart("ss_cart_[-- STORE_Serial_Number --]","Subtotal");
/script
[-- END_IF --]

table width="100% "
tr valign="top"
td valign="top"><table border="1" width="100%" cellpadding="4"
cellspacing="1"
tr
td width="20%" valign="middle"><p align="center"><font
color="#800040" face="Comic Sans MS" size="2"><a
href="http://www.aboutrubberstamps.com/discount.html">Rubber stamps
highly discounted!!</a><br
/font><a
href="http://www.aboutrubberstamps.com/discount.html"><img
src="http://www.aboutrubberstamps.com/media/discount.gif"
alt="Buy more rubber stamps, pay less" border="0" width="79"
height="71"></a></td
td width="150%" valign="top"><font face="Comic Sans MS"
size="2"
color="#800040">[--VAR.TEXT1--]
br
br>[-- PrevNext --]

/font></td
td width="25%" valign="middle"><p
align="center"><font face="Comic Sans MS"><a
href="http://www.aboutrubberstamps.com/email.html"><font size="2"
color="#009933"><b>$50</b></font><font color="#800040" size="2"
Worth of Free Stamps!</font></a><font size="1"
color="#800040"><br
/font></font><a
href="http://www.aboutrubberstamps.com/email.html"
img
src="http://www.aboutrubberstamps.com/media/signup.gif"
alt="Rubber
stamps Newsletter"
border="0" width="90" height="64"></a></td
/tr
/table
/td
/tr
/table


#
# This layout uses a four-column table, with the products in the
columns
#

!-- Begin Table of Products --
#
# Change this value to change number of columns
# Can also use actual number or Page.Columns
#
[-- VAR.COL 4 --]

table width="100%" cellspacing="5"
[--LOOP PRODUCTS VAR.col --]
td valign=top align=center
[--PRODUCT--]
/td
[--END_LOOP PRODUCTS--]
/table
!-- End Table of Products --

center
[--SEARCH_FORM--]
/center

/td
/tr
/center

[-- PrevNext --]


# This tag is used if there is more than 1 page
[--IF PAGE.text2--]
hr
[--VAR.TEXT2--]
hr
[--ELSE--]
hr
[--END_IF--]

# Display the page footer
[--FOOTER--]

/body
/html
[--END_DEFINE PAGE--]





****************************************************************************
************************************





Rob
 

Re: Mini Cart problem with custom template

Postby Dan Richards » Sun Jul 25, 2004 3:49 am

Hi Rob,

Yes, it was turned on. I've gotten the mini cart to work in other templates
when I place the minicart js in the Text 1 field. Just when I want to embed
it in the template itself that it doesn't like it.

Does the template code look alright?

Thanks

Dan
"Rob" <rob@mangiafico.net> wrote in message
news:cdv89i$l0b$1@eval.shopsite.com...
Make sure you also turn on the minicart in the backoffice under:
Commerce Setup -> Order System -> Layout

Rob

Hi Rob,

That fixed the error on the page, but still no mini cart. Any other
suggestions?

Thanks

Dan

"Rob" <rob@mangiafico.net> wrote in message
news:cdul6p$g5n$1@eval.shopsite.com...
Try putting <style> tags around the code, as in:

style type="text/css"
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
/style

Rob


I'm having trouble getting the mini cart to work with my custom
templates.
I follow the instructions and I get a strange error on the page.
See
this
page as an example:

http://www.aboutrubberstamps.com/test1.html

The template code is below: Can someone tell me what I'm doing
wrong?

Tx

Dan





****************************************************************************
******
# Custom Four-Column Page Template for AboutRubberStamps
# <XMP> (this tag causes Internet Explorer to display this page as
text,
# rather than trying to display it as HTML. You don't need it in
your
# custom page template.)


# Begin defining the actual page
[--DEFINE PAGE--]
html
head
[-- VAR.MiniCartColor "black" --]
[-- VAR.MiniCartTextColor Page.LinkColor --]
[-- VAR.MiniCartHoverColor Page.ActiveLinkColor --]
[-- VAR.Media media/themesmedia --]
[-- IF MiniCart --]
[-- INCLUDE MiniCart.js PROCESS --]
[-- END_IF --]
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
#
#Load the Pages's text's values into a VAR
#so it can be used in the product template
#

# Text1 is used for the main page description
[--VAR.TEXT1 PAGE.Text1 --]

# Text2 is used to go forward and back to other pages
[--VAR.TEXT2 PAGE.Text2 --]

# Text3 is used for the on page title
[--VAR.TEXT3 PAGE.Text3 --]

title>[--Page.name--]</title
meta name="keywords" content="[--PAGE.MetaKeywords--]"
meta name="description" content="[--PAGE.MetaDescription--]"
/head

!-- Set background image and page colors --
body
background="http://www.aboutrubberstamps.com/media/bg-cream.gif"
width=1600 height=26 alt="Rubber Stamps"
bgcolor="[--PAGE.BackgroundColor--]" text="[--PAGE.TextColor--]"
link="[--PAGE.LinkColor--]" vlink="[--PAGE.VisitedLinkColor--]"
alink="[--PAGE.ActiveLinkColor--]"


[--IF PAGE.DisplayPageHeader--]
[--HEADER--]
[--END_IF--]

h1 align="center"><font face="Comic Sans MS" size="6"
color="#800040">[--VAR.TEXT3--]</font></h1

[-- IF MiniCart --]
script LANGUAGE="javascript"
DisplayMiniCart("ss_cart_[--
STORE_Serial_Number --]","Subtotal");
/script
[-- END_IF --]

table width="100% "
tr valign="top"
td valign="top"><table border="1" width="100%" cellpadding="4"
cellspacing="1"
tr
td width="20%" valign="middle"><p align="center"><font
color="#800040" face="Comic Sans MS" size="2"><a
href="http://www.aboutrubberstamps.com/discount.html">Rubber stamps
highly discounted!!</a><br
/font><a
href="http://www.aboutrubberstamps.com/discount.html"><img
src="http://www.aboutrubberstamps.com/media/discount.gif"
alt="Buy more rubber stamps, pay less" border="0" width="79"
height="71"></a></td
td width="150%" valign="top"><font face="Comic Sans MS"
size="2"
color="#800040">[--VAR.TEXT1--]
br
br>[-- PrevNext --]

/font></td
td width="25%" valign="middle"><p
align="center"><font face="Comic Sans MS"><a
href="http://www.aboutrubberstamps.com/email.html"><font size="2"
color="#009933"><b>$50</b></font><font color="#800040" size="2"
Worth of Free Stamps!</font></a><font size="1"
color="#800040"><br
/font></font><a
href="http://www.aboutrubberstamps.com/email.html"
img
src="http://www.aboutrubberstamps.com/media/signup.gif"
alt="Rubber
stamps Newsletter"
border="0" width="90" height="64"></a></td
/tr
/table
/td
/tr
/table


#
# This layout uses a four-column table, with the products in the
columns
#

!-- Begin Table of Products --
#
# Change this value to change number of columns
# Can also use actual number or Page.Columns
#
[-- VAR.COL 4 --]

table width="100%" cellspacing="5"
[--LOOP PRODUCTS VAR.col --]
td valign=top align=center
[--PRODUCT--]
/td
[--END_LOOP PRODUCTS--]
/table
!-- End Table of Products --

center
[--SEARCH_FORM--]
/center

/td
/tr
/center

[-- PrevNext --]


# This tag is used if there is more than 1 page
[--IF PAGE.text2--]
hr
[--VAR.TEXT2--]
hr
[--ELSE--]
hr
[--END_IF--]

# Display the page footer
[--FOOTER--]

/body
/html
[--END_DEFINE PAGE--]






****************************************************************************
************************************







Dan Richards
 

Re: Mini Cart problem with custom template

Postby Rob » Sun Jul 25, 2004 7:35 am

The template code you are using looks ok to me. You could try embedding the
actual javascript code in your template, found at:

http://www.shopsite.com/help/7.0/en-US/ ... ples1.html

Just replace the variables at the top with your store values. See if that
works.

Rob

Yes, it was turned on. I've gotten the mini cart to work in other
templates
when I place the minicart js in the Text 1 field. Just when I want to
embed
it in the template itself that it doesn't like it.

Does the template code look alright?

Thanks

Dan
"Rob" <rob@mangiafico.net> wrote in message
news:cdv89i$l0b$1@eval.shopsite.com...
Make sure you also turn on the minicart in the backoffice under:
Commerce Setup -> Order System -> Layout

Rob

Hi Rob,

That fixed the error on the page, but still no mini cart. Any other
suggestions?

Thanks

Dan

"Rob" <rob@mangiafico.net> wrote in message
news:cdul6p$g5n$1@eval.shopsite.com...
Try putting <style> tags around the code, as in:

style type="text/css"
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
/style

Rob


I'm having trouble getting the mini cart to work with my custom
templates.
I follow the instructions and I get a strange error on the page.
See
this
page as an example:

http://www.aboutrubberstamps.com/test1.html

The template code is below: Can someone tell me what I'm doing
wrong?

Tx

Dan






****************************************************************************
******
# Custom Four-Column Page Template for AboutRubberStamps
# <XMP> (this tag causes Internet Explorer to display this page as

text,
# rather than trying to display it as HTML. You don't need it in
your
# custom page template.)


# Begin defining the actual page
[--DEFINE PAGE--]
html
head
[-- VAR.MiniCartColor "black" --]
[-- VAR.MiniCartTextColor Page.LinkColor --]
[-- VAR.MiniCartHoverColor Page.ActiveLinkColor --]
[-- VAR.Media media/themesmedia --]
[-- IF MiniCart --]
[-- INCLUDE MiniCart.js PROCESS --]
[-- END_IF --]
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
#
#Load the Pages's text's values into a VAR
#so it can be used in the product template
#

# Text1 is used for the main page description
[--VAR.TEXT1 PAGE.Text1 --]

# Text2 is used to go forward and back to other pages
[--VAR.TEXT2 PAGE.Text2 --]

# Text3 is used for the on page title
[--VAR.TEXT3 PAGE.Text3 --]

title>[--Page.name--]</title
meta name="keywords" content="[--PAGE.MetaKeywords--]"
meta name="description" content="[--PAGE.MetaDescription--]"
/head

!-- Set background image and page colors --
body
background="http://www.aboutrubberstamps.com/media/bg-cream.gif"
width=1600 height=26 alt="Rubber Stamps"
bgcolor="[--PAGE.BackgroundColor--]" text="[--PAGE.TextColor--]"
link="[--PAGE.LinkColor--]" vlink="[--PAGE.VisitedLinkColor--]"
alink="[--PAGE.ActiveLinkColor--]"


[--IF PAGE.DisplayPageHeader--]
[--HEADER--]
[--END_IF--]

h1 align="center"><font face="Comic Sans MS" size="6"
color="#800040">[--VAR.TEXT3--]</font></h1

[-- IF MiniCart --]
script LANGUAGE="javascript"
DisplayMiniCart("ss_cart_[--
STORE_Serial_Number --]","Subtotal");
/script
[-- END_IF --]

table width="100% "
tr valign="top"
td valign="top"><table border="1" width="100%"
cellpadding="4"
cellspacing="1"
tr
td width="20%" valign="middle"><p align="center"><font
color="#800040" face="Comic Sans MS" size="2"><a
href="http://www.aboutrubberstamps.com/discount.html">Rubber
stamps
highly discounted!!</a><br
/font><a
href="http://www.aboutrubberstamps.com/discount.html"><img
src="http://www.aboutrubberstamps.com/media/discount.gif"
alt="Buy more rubber stamps, pay less" border="0"
width="79"
height="71"></a></td
td width="150%" valign="top"><font face="Comic Sans MS"
size="2"
color="#800040">[--VAR.TEXT1--]
br
br>[-- PrevNext --]

/font></td
td width="25%" valign="middle"><p
align="center"><font face="Comic Sans MS"><a
href="http://www.aboutrubberstamps.com/email.html"><font size="2"
color="#009933"><b>$50</b></font><font color="#800040" size="2"
Worth of Free Stamps!</font></a><font size="1"
color="#800040"><br
/font></font><a
href="http://www.aboutrubberstamps.com/email.html"
img
src="http://www.aboutrubberstamps.com/media/signup.gif"
alt="Rubber
stamps Newsletter"
border="0" width="90" height="64"></a></td
/tr
/table
/td
/tr
/table


#
# This layout uses a four-column table, with the products in the
columns
#

!-- Begin Table of Products --
#
# Change this value to change number of columns
# Can also use actual number or Page.Columns
#
[-- VAR.COL 4 --]

table width="100%" cellspacing="5"
[--LOOP PRODUCTS VAR.col --]
td valign=top align=center
[--PRODUCT--]
/td
[--END_LOOP PRODUCTS--]
/table
!-- End Table of Products --

center
[--SEARCH_FORM--]
/center

/td
/tr
/center

[-- PrevNext --]


# This tag is used if there is more than 1 page
[--IF PAGE.text2--]
hr
[--VAR.TEXT2--]
hr
[--ELSE--]
hr
[--END_IF--]

# Display the page footer
[--FOOTER--]

/body
/html
[--END_DEFINE PAGE--]







****************************************************************************
************************************









Rob
 

Re: Mini Cart problem with custom template

Postby Dan Richards » Sun Jul 25, 2004 12:31 pm

Hi Rob,

That worked fine, thanks for your help, that will make it much easier. Not
sure why it didn't work before, oh well,
off to bigger and better things.

Regards,

Dan

"Rob" <rob@mangiafico.net> wrote in message
news:ce0ggb$1b0$1@eval.shopsite.com...
The template code you are using looks ok to me. You could try embedding
the
actual javascript code in your template, found at:

http://www.shopsite.com/help/7.0/en-US/ ... ples1.html

Just replace the variables at the top with your store values. See if that
works.

Rob

Yes, it was turned on. I've gotten the mini cart to work in other
templates
when I place the minicart js in the Text 1 field. Just when I want to
embed
it in the template itself that it doesn't like it.

Does the template code look alright?

Thanks

Dan
"Rob" <rob@mangiafico.net> wrote in message
news:cdv89i$l0b$1@eval.shopsite.com...
Make sure you also turn on the minicart in the backoffice under:
Commerce Setup -> Order System -> Layout

Rob

Hi Rob,

That fixed the error on the page, but still no mini cart. Any other
suggestions?

Thanks

Dan

"Rob" <rob@mangiafico.net> wrote in message
news:cdul6p$g5n$1@eval.shopsite.com...
Try putting <style> tags around the code, as in:

style type="text/css"
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
/style

Rob


I'm having trouble getting the mini cart to work with my custom
templates.
I follow the instructions and I get a strange error on the page.
See
this
page as an example:

http://www.aboutrubberstamps.com/test1.html

The template code is below: Can someone tell me what I'm doing
wrong?

Tx

Dan







****************************************************************************
******
# Custom Four-Column Page Template for AboutRubberStamps
# <XMP> (this tag causes Internet Explorer to display this page
as

text,
# rather than trying to display it as HTML. You don't need it in
your
# custom page template.)


# Begin defining the actual page
[--DEFINE PAGE--]
html
head
[-- VAR.MiniCartColor "black" --]
[-- VAR.MiniCartTextColor Page.LinkColor --]
[-- VAR.MiniCartHoverColor Page.ActiveLinkColor --]
[-- VAR.Media media/themesmedia --]
[-- IF MiniCart --]
[-- INCLUDE MiniCart.js PROCESS --]
[-- END_IF --]
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
#
#Load the Pages's text's values into a VAR
#so it can be used in the product template
#

# Text1 is used for the main page description
[--VAR.TEXT1 PAGE.Text1 --]

# Text2 is used to go forward and back to other pages
[--VAR.TEXT2 PAGE.Text2 --]

# Text3 is used for the on page title
[--VAR.TEXT3 PAGE.Text3 --]

title>[--Page.name--]</title
meta name="keywords" content="[--PAGE.MetaKeywords--]"
meta name="description" content="[--PAGE.MetaDescription--]"
/head

!-- Set background image and page colors --
body
background="http://www.aboutrubberstamps.com/media/bg-cream.gif"
width=1600 height=26 alt="Rubber Stamps"
bgcolor="[--PAGE.BackgroundColor--]" text="[--PAGE.TextColor--]"
link="[--PAGE.LinkColor--]" vlink="[--PAGE.VisitedLinkColor--]"
alink="[--PAGE.ActiveLinkColor--]"


[--IF PAGE.DisplayPageHeader--]
[--HEADER--]
[--END_IF--]

h1 align="center"><font face="Comic Sans MS" size="6"
color="#800040">[--VAR.TEXT3--]</font></h1

[-- IF MiniCart --]
script LANGUAGE="javascript"
DisplayMiniCart("ss_cart_[--
STORE_Serial_Number --]","Subtotal");
/script
[-- END_IF --]

table width="100% "
tr valign="top"
td valign="top"><table border="1" width="100%"
cellpadding="4"
cellspacing="1"
tr
td width="20%" valign="middle"><p align="center"><font
color="#800040" face="Comic Sans MS" size="2"><a
href="http://www.aboutrubberstamps.com/discount.html">Rubber
stamps
highly discounted!!</a><br
/font><a
href="http://www.aboutrubberstamps.com/discount.html"><img

src="http://www.aboutrubberstamps.com/media/discount.gif"
alt="Buy more rubber stamps, pay less" border="0"
width="79"
height="71"></a></td
td width="150%" valign="top"><font face="Comic Sans MS"
size="2"
color="#800040">[--VAR.TEXT1--]
br
br>[-- PrevNext --]

/font></td
td width="25%" valign="middle"><p
align="center"><font face="Comic Sans MS"><a
href="http://www.aboutrubberstamps.com/email.html"><font
size="2"
color="#009933"><b>$50</b></font><font color="#800040" size="2"
Worth of Free Stamps!</font></a><font size="1"
color="#800040"><br
/font></font><a
href="http://www.aboutrubberstamps.com/email.html"
img
src="http://www.aboutrubberstamps.com/media/signup.gif"
alt="Rubber
stamps Newsletter"
border="0" width="90" height="64"></a></td
/tr
/table
/td
/tr
/table


#
# This layout uses a four-column table, with the products in the
columns
#

!-- Begin Table of Products --
#
# Change this value to change number of columns
# Can also use actual number or Page.Columns
#
[-- VAR.COL 4 --]

table width="100%" cellspacing="5"
[--LOOP PRODUCTS VAR.col --]
td valign=top align=center
[--PRODUCT--]
/td
[--END_LOOP PRODUCTS--]
/table
!-- End Table of Products --

center
[--SEARCH_FORM--]
/center

/td
/tr
/center

[-- PrevNext --]


# This tag is used if there is more than 1 page
[--IF PAGE.text2--]
hr
[--VAR.TEXT2--]
hr
[--ELSE--]
hr
[--END_IF--]

# Display the page footer
[--FOOTER--]

/body
/html
[--END_DEFINE PAGE--]








****************************************************************************
************************************











Dan Richards
 

Re: Mini Cart problem with custom template

Postby Shopsite Forum » Mon Jul 26, 2004 2:37 pm

From what i see of it, it is an error with your javascript. You should be
able to get away with using only one set of quotes in the Javscript (" ...
"). All the double quotes in the middle that are around various HTML tags
(like the set around the color etc) are what is giving the Javascript error.
Simply remove them and you should be fine. Rick Hendrickson

"Dan Richards" <danieljrichards@comcast.net> wrote in message
news:cducil$dsk$1@eval.shopsite.com...
Hi,

I'm having trouble getting the mini cart to work with my custom templates.
I follow the instructions and I get a strange error on the page. See this
page as an example:

http://www.aboutrubberstamps.com/test1.html

The template code is below: Can someone tell me what I'm doing wrong?

Tx

Dan


****************************************************************************
******
# Custom Four-Column Page Template for AboutRubberStamps
# <XMP> (this tag causes Internet Explorer to display this page as text,
# rather than trying to display it as HTML. You don't need it in your
# custom page template.)


# Begin defining the actual page
[--DEFINE PAGE--]
html
head
[-- VAR.MiniCartColor "black" --]
[-- VAR.MiniCartTextColor Page.LinkColor --]
[-- VAR.MiniCartHoverColor Page.ActiveLinkColor --]
[-- VAR.Media media/themesmedia --]
[-- IF MiniCart --]
[-- INCLUDE MiniCart.js PROCESS --]
[-- END_IF --]
[-- IF MiniCart --]
[-- INCLUDE Sidebar-MiniCart.css PROCESS --]
[-- END_IF --]
#
#Load the Pages's text's values into a VAR
#so it can be used in the product template
#

# Text1 is used for the main page description
[--VAR.TEXT1 PAGE.Text1 --]

# Text2 is used to go forward and back to other pages
[--VAR.TEXT2 PAGE.Text2 --]

# Text3 is used for the on page title
[--VAR.TEXT3 PAGE.Text3 --]

title>[--Page.name--]</title
meta name="keywords" content="[--PAGE.MetaKeywords--]"
meta name="description" content="[--PAGE.MetaDescription--]"
/head

!-- Set background image and page colors --
body background="http://www.aboutrubberstamps.com/media/bg-cream.gif"
width=1600 height=26 alt="Rubber Stamps"
bgcolor="[--PAGE.BackgroundColor--]" text="[--PAGE.TextColor--]"
link="[--PAGE.LinkColor--]" vlink="[--PAGE.VisitedLinkColor--]"
alink="[--PAGE.ActiveLinkColor--]"


[--IF PAGE.DisplayPageHeader--]
[--HEADER--]
[--END_IF--]

h1 align="center"><font face="Comic Sans MS" size="6"
color="#800040">[--VAR.TEXT3--]</font></h1

[-- IF MiniCart --]
script LANGUAGE="javascript"
DisplayMiniCart("ss_cart_[-- STORE_Serial_Number --]","Subtotal");
/script
[-- END_IF --]

table width="100% "
tr valign="top"
td valign="top"><table border="1" width="100%" cellpadding="4"
cellspacing="1"
tr
td width="20%" valign="middle"><p align="center"><font
color="#800040" face="Comic Sans MS" size="2"><a
href="http://www.aboutrubberstamps.com/discount.html">Rubber stamps
highly discounted!!</a><br
/font><a
href="http://www.aboutrubberstamps.com/discount.html"><img
src="http://www.aboutrubberstamps.com/media/discount.gif"
alt="Buy more rubber stamps, pay less" border="0" width="79"
height="71"></a></td
td width="150%" valign="top"><font face="Comic Sans MS" size="2"
color="#800040">[--VAR.TEXT1--]
br
br>[-- PrevNext --]

/font></td
td width="25%" valign="middle"><p
align="center"><font face="Comic Sans MS"><a
href="http://www.aboutrubberstamps.com/email.html"><font size="2"
color="#009933"><b>$50</b></font><font color="#800040" size="2"
Worth of Free Stamps!</font></a><font size="1"
color="#800040"><br
/font></font><a
href="http://www.aboutrubberstamps.com/email.html"
img
src="http://www.aboutrubberstamps.com/media/signup.gif"
alt="Rubber
stamps Newsletter"
border="0" width="90" height="64"></a></td
/tr
/table
/td
/tr
/table


#
# This layout uses a four-column table, with the products in the columns
#

!-- Begin Table of Products --
#
# Change this value to change number of columns
# Can also use actual number or Page.Columns
#
[-- VAR.COL 4 --]

table width="100%" cellspacing="5"
[--LOOP PRODUCTS VAR.col --]
td valign=top align=center
[--PRODUCT--]
/td
[--END_LOOP PRODUCTS--]
/table
!-- End Table of Products --

center
[--SEARCH_FORM--]
/center

/td
/tr
/center

[-- PrevNext --]


# This tag is used if there is more than 1 page
[--IF PAGE.text2--]
hr
[--VAR.TEXT2--]
hr
[--ELSE--]
hr
[--END_IF--]

# Display the page footer
[--FOOTER--]

/body
/html
[--END_DEFINE PAGE--]



****************************************************************************
************************************

Shopsite Forum
 


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 32 guests