errors with product templates

This is an archive of old posting to the User Forum

errors with product templates

Postby Ken Lanxner » Wed Mar 03, 2004 4:25 pm

Hi. Brand new to ShopSIte (7.0). I'm trying to learn how to create
custom templates by studying the built-in templates. Page templates are
going smoothly. But I am running into problems with the product
templates that come with ShopSite. I uploaded AlsTools to my custom
templates directory. But when I apply it to products and publish, I get
error messages: Template Error: "IF using PAGE tag in non-page
template." And sure enough, in this sample product template I
downloaded from the help files is the tag: PAGE.DisplayPageHeader. Is
this an error in the files provided by ShopSite? And using this same
template, I get Order and View Cart URL errors.

So then I tried the DefaultCustomProductTemplate. After applying this
one to my products and more info pages and publishing, the Add to Cart
button on the more info pages is inactive, just a graphic. And when I
view the source code (from a browser, after files have been included),
Add to Cart is just an image, not enlcosed in a Submit tag as I would
have expected.

So why am I running into so many problems with these templates? I have
no problem building my own from scratch but I was hoping to have a
working template file I could use for comparison.

Thanks.
Ken Lanxner
 

Re: errors with product templates

Postby loren_d_c » Wed Mar 03, 2004 5:41 pm

It may be the product template in the zip file that is old and has a
problem, I don't see the same problem with the sample template that is
in the help itself. Try using this template:

http://www.shopsite.com/help/7.0/en-US/ ... mplate.txt

-Loren


Ken Lanxner wrote:

Hi. Brand new to ShopSIte (7.0). I'm trying to learn how to create
custom templates by studying the built-in templates. Page templates are
going smoothly. But I am running into problems with the product
templates that come with ShopSite. I uploaded AlsTools to my custom
templates directory. But when I apply it to products and publish, I get
error messages: Template Error: "IF using PAGE tag in non-page
template." And sure enough, in this sample product template I
downloaded from the help files is the tag: PAGE.DisplayPageHeader. Is
this an error in the files provided by ShopSite? And using this same
template, I get Order and View Cart URL errors.

So then I tried the DefaultCustomProductTemplate. After applying this
one to my products and more info pages and publishing, the Add to Cart
button on the more info pages is inactive, just a graphic. And when I
view the source code (from a browser, after files have been included),
Add to Cart is just an image, not enlcosed in a Submit tag as I would
have expected.

So why am I running into so many problems with these templates? I have
no problem building my own from scratch but I was hoping to have a
working template file I could use for comparison.

Thanks.
loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: errors with product templates

Postby Ken Lanxner » Wed Mar 03, 2004 5:52 pm

In article <c25qfd$k4s$1@support.shopsite.com>, Loren
<loren_d_c@yahoo.com> wrote:

It may be the product template in the zip file that is old and has a
problem, I don't see the same problem with the sample template that is
in the help itself. Try using this template:

http://www.shopsite.com/help/7.0/en-US/ ... mplate.txt

-Loren

Thanks, Loren. I was never able to veiw the sample template in the
help, using Safari for Mac. And the same with the link you just
provided. But I can see it in the source code and that'll work!

Speaking of Safari, I am finding that the mini cart does not work in
that browser. It will display but won't update. Is that a known problem
or is just me? :-)

Ken
Ken Lanxner
 

Re: errors with product templates

Postby loren_d_c » Wed Mar 03, 2004 5:57 pm

Oh, and as far as copying DefaultCustomProductTemplate goes, that
template includes some VAR tags that are set in the default custom page
templates included with ShopSite (Rounded, Sidebar, Tab, and Stained
Glass), so you can either 1) replace those VAR's with hardcoded values,
or 2) setup the needed VAR's in your copy of the template itself, or 3)
use one of the page templates mentioned above for the page your products
are being generated on.

-Loren


Loren wrote:

It may be the product template in the zip file that is old and has a
problem, I don't see the same problem with the sample template that is
in the help itself. Try using this template:

http://www.shopsite.com/help/7.0/en-US/ ... mplate.txt

-Loren


Ken Lanxner wrote:

Hi. Brand new to ShopSIte (7.0). I'm trying to learn how to create
custom templates by studying the built-in templates. Page templates are
going smoothly. But I am running into problems with the product
templates that come with ShopSite. I uploaded AlsTools to my custom
templates directory. But when I apply it to products and publish, I get
error messages: Template Error: "IF using PAGE tag in non-page
template." And sure enough, in this sample product template I
downloaded from the help files is the tag: PAGE.DisplayPageHeader. Is
this an error in the files provided by ShopSite? And using this same
template, I get Order and View Cart URL errors.

So then I tried the DefaultCustomProductTemplate. After applying this
one to my products and more info pages and publishing, the Add to Cart
button on the more info pages is inactive, just a graphic. And when I
view the source code (from a browser, after files have been included),
Add to Cart is just an image, not enlcosed in a Submit tag as I would
have expected.

So why am I running into so many problems with these templates? I have
no problem building my own from scratch but I was hoping to have a
working template file I could use for comparison.
Thanks.
loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: errors with product templates

Postby loren_d_c » Wed Mar 03, 2004 6:15 pm

Could just be you, the minicart really just consists of a cookie with
cart information set by the shopping cart, and JavaScript on the store
page to read and display the information from the cookie. I don't know
of anything browser-specific about the default minicart JavaScript, and
I have seen the minicart work on a Mac with Safari before. But if you
have cookies or JavaScript turned off in your browser then you won't get
the benefit of the minicart. Also, your shopping cart (order.cgi) needs
to be accessed at the same domain name your pages are on that have the
minicart code, or it will not work (a security feature of cookies
prevents it).

-Loren



Ken Lanxner wrote:

In article <c25qfd$k4s$1@support.shopsite.com>, Loren
loren_d_c@yahoo.com> wrote:


It may be the product template in the zip file that is old and has a
problem, I don't see the same problem with the sample template that is
in the help itself. Try using this template:

http://www.shopsite.com/help/7.0/en-US/ ... mplate.txt

-Loren


Thanks, Loren. I was never able to veiw the sample template in the
help, using Safari for Mac. And the same with the link you just
provided. But I can see it in the source code and that'll work!

Speaking of Safari, I am finding that the mini cart does not work in
that browser. It will display but won't update. Is that a known problem
or is just me? :-)

Ken
loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: errors with product templates

Postby Ken Lanxner » Wed Mar 03, 2004 7:37 pm

In article <c25sge$kjr$1@support.shopsite.com>, Loren
<loren_d_c@yahoo.com> wrote:

Could just be you, the minicart really just consists of a cookie with
cart information set by the shopping cart, and JavaScript on the store
page to read and display the information from the cookie. I don't know
of anything browser-specific about the default minicart JavaScript, and
I have seen the minicart work on a Mac with Safari before. But if you
have cookies or JavaScript turned off in your browser then you won't get
the benefit of the minicart. Also, your shopping cart (order.cgi) needs
to be accessed at the same domain name your pages are on that have the
minicart code, or it will not work (a security feature of cookies
prevents it).

I'm surprised to hear that the minicart should work with Safari --
since it's not working for me! Cookies and javascript are both on. And
everything is within the same domain. I can look at the same page in
Internet Explorer and the minicart works. I'll have to explore it
further to see what's up. I tried a few of the minicart samples from
the help files and got the same results with each. But using Safari, I
have had some sites inform me that my browser is not compliant with
their technology because cookies are off (untrue). So there may be
something unique about Safari cookies that causes problems with certain
sites. But I've never been able to nail it down.

Thanks,
Ken
Ken Lanxner
 

Re: errors with product templates

Postby loren_d_c » Wed Mar 03, 2004 8:02 pm

I tried the minicart ealier today on a Mac OSX with Safari 1.1 on the
demo store at http://www.shopsite.com/html/als-adv/index.html and it
worked fine there. What happens when you add an item to the cart there
using your browser? Does Safari have a cookie manager (not near a mac
right now) so you can see if it is even allowing the cookie to be set?

-Loren



Ken Lanxner wrote:
In article <c25sge$kjr$1@support.shopsite.com>, Loren
loren_d_c@yahoo.com> wrote:


Could just be you, the minicart really just consists of a cookie with
cart information set by the shopping cart, and JavaScript on the store
page to read and display the information from the cookie. I don't know
of anything browser-specific about the default minicart JavaScript, and
I have seen the minicart work on a Mac with Safari before. But if you
have cookies or JavaScript turned off in your browser then you won't get
the benefit of the minicart. Also, your shopping cart (order.cgi) needs
to be accessed at the same domain name your pages are on that have the
minicart code, or it will not work (a security feature of cookies
prevents it).


I'm surprised to hear that the minicart should work with Safari --
since it's not working for me! Cookies and javascript are both on. And
everything is within the same domain. I can look at the same page in
Internet Explorer and the minicart works. I'll have to explore it
further to see what's up. I tried a few of the minicart samples from
the help files and got the same results with each. But using Safari, I
have had some sites inform me that my browser is not compliant with
their technology because cookies are off (untrue). So there may be
something unique about Safari cookies that causes problems with certain
sites. But I've never been able to nail it down.

Thanks,
Ken
loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: errors with product templates

Postby Ken Lanxner » Wed Mar 03, 2004 10:37 pm

In article <c262p2$lso$1@support.shopsite.com>, Loren
<loren_d_c@yahoo.com> wrote:

I tried the minicart ealier today on a Mac OSX with Safari 1.1 on the
demo store at http://www.shopsite.com/html/als-adv/index.html and it
worked fine there. What happens when you add an item to the cart there
using your browser? Does Safari have a cookie manager (not near a mac
right now) so you can see if it is even allowing the cookie to be set?

Now I am embarrassed because the minicart is working OK in Safari. But
I spent hours trying to figure it out earlier because it just wasn't
working then! Hard to explain. But thanks again for your help, Loren.
Sorry to take up so much time over a false alarm.

Ken
Ken Lanxner
 


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 19 guests