Default Template

This is an archive of old posting to the User Forum

Default Template

Postby Armand Dicaire » Fri Aug 20, 2004 7:19 pm

Would anyone have a custom script to mimic the default product template in
Manager 6.3? I like the product arrangement but would like to add custom
buttons (for a gift list). One of the salespeople sent me one but I get
errors when publishing (too many if-end if's).

Help would be much appreciated!!
Armando
Armand Dicaire
 

Re: Default Template

Postby jim » Sat Aug 21, 2004 9:23 am

Post the template to the newsgroup so we can have a look at it and see
what the problem might be.

Jim

Armand Dicaire wrote:
Would anyone have a custom script to mimic the default product template in
Manager 6.3? I like the product arrangement but would like to add custom
buttons (for a gift list). One of the salespeople sent me one but I get
errors when publishing (too many if-end if's).

Help would be much appreciated!!
Armando

jim
 

Re: Default Template

Postby Armand Dicaire » Wed Aug 25, 2004 5:49 am

Sure here it is.
My goal is to have products that have subproducts to display in a list (page
will display 1 column). Products that have no subproducts to display into 2
columns.
Http://www.theleprechaun.ca. I like the default template but I can't
recreate it!!!

#
# Define the subproduct
#
[-- DEFINE SUBPRODUCT --]

[-- IF PRODUCT.DISPLAYNAME --]
<td>[-- PRODUCT.NAME --]</td>
[-- END_IF --]

[-- IF PRODUCT.DISPLAYPRICE --]

[-- IF PRODUCT.SALEON --]
<td><strike>[-- PRODUCT.PRICE --]</strike></td><td><b>[--
PRODUCT.SALEAMOUNT --]</b>
[-- IF PRODUCT.ALTPRICE --]
<td><strike>[-- PRODUCT.ALTPRICE --]</strike></td><td><b>[--
PRODUCT.ALTSALEAMOUNT --]</b>
[-- END_IF --]
Our Price</td>
[-- ELSE --]
<td><B>[-- PRODUCT.PRICE --]</td>
[-- IF PRODUCT.ALTPRICE --]
<td>[-- PRODUCT.ALTPRICE --]</td>
[-- END_IF --]
</B>
[-- END_IF --]
[-- END_IF --]
<td>[-- PRODUCT.ORDERCHECKOUT --]</td>
<td><img src="media/addGiftList.gif"></td>
[-- END_DEFINE SUBPRODUCT --]
#
# Define the More Info Page
#
[-- DEFINE MORE_INFO_PAGE --]
<html>
<head>
<title>[-- PRODUCT.NAME REMOVE_HTML --]</title>
</head>
<body bgcolor="[-- MORE_INFO.BACKGROUNDCOLOR --]" text="[--
MORE_INFO.TEXTCOLOR --]" link="[-- MORE_INFO.LINKCOLOR --]" vlink="[--
MORE_INFO.VISITEDCOLOR --]" alink="[-- MORE_INFO.ACTIVECOLOR --]"

[-- IF MORE_INFO.BACKGROUNDIMAGE none --]
[-- ELSE_IF MORE_INFO.BACKGROUNDIMAGE --]

background="media/[-- MORE_INFO.BACKGROUNDIMAGE --]">
[-- END_IF --]

[-- IF MORE_INFO.DISPLAYPAGEHEADER --]
[-- HEADER --]
[-- END_IF --]

[-- IF PRODUCT.MOREINFORMATIONGRAPHIC --]

[-- IF PRODUCT.MOREINFORMATIONGRAPHIC none --]
#do nothing
[-- ELSE --]

[-- IF PRODUCT.TEXTWRAP On --]

[-- IF PRODUCT.IMAGEALIGNMENT Right --]
[-- VAR.ALIGN align=right --]
[-- ELSE_IF PRODUCT.IMAGEALIGNMENT Left --]
[-- VAR.ALIGN align=left --]
[-- ELSE --]
[-- VAR.ALIGN "" --]
[-- END_IF --]

<img [-- PRODUCT.MOREINFORMATIONGRAPHIC REMOVE_HTML --] [--
VAR.ALIGN --]>
[-- END_IF --]
[-- END_IF --]
[-- END_IF --]

<BR clear=all>
<P>
<H2>

[-- IF PRODUCT.DISPLAYNAME --]
<B>[-- PRODUCT.NAME --]</b><br>
[-- END_IF --]

</H2>

[-- IF PRODUCT.SUBPRODUCT --]
<B>[-- PRODUCT.MOREINFORMATIONTEXT --]</b><br>

[-- LOOP SUBPRODUCTS --]
[-- SUBPRODUCTS --]
[-- END_LOOP SUBPRODUCTS --]

[-- ELSE --]

[-- IF PRODUCT.SALEON --]
<strike>[-- PRODUCT.PRICE --]</strike> <b>[--PRODUCT.SALEAMOUNT --]</b>

[-- IF PRODUCT.ALTPRICE --]
<strike>[-- PRODUCT.ALTPRICE --]</strike> <b>[--
PRODUCT.ALTSALEAMOUNT --]</b>
[-- END_IF --]

Our Price<br>
[-- ELSE --]
<B>[-- PRODUCT.PRICE --]

[-- IF PRODUCT.ALTPRICE --]
[-- PRODUCT.ALTPRICE --]
[-- END_IF --]

</B><BR>
[-- END_IF --]

[-- IF PRODUCT.DISPLAYSKU --]

[-- IF PRODUCT.SKU --]
<B>[-- PRODUCT.SKU --]</b><br>
[-- END_IF --]

[-- END_IF --]

[-- IF PRODUCT.MOREINFORMATIONGRAPHIC --]
[-- PRODUCT.MOREINFORMATIONTEXT --]<br>
[-- END_IF --]

[-- PRODUCT.ORDERCHECKOUT --]
[-- END_IF --]

[-- IF MORE_INFO.DISPLAYPAGEFOOTER --]
[-- FOOTER --]
[-- END_IF --]
</body>
</html>
[-- END_DEFINE MORE_INFO_PAGE --]
#
# Define for the actual product
#
[-- DEFINE PRODUCT --]
<!-- ShopSite's Default Custom Product Template -->

[-- IF PRODUCT.IMAGEALIGNMENT Center --]
<center>[-- PRODUCT.GRAPHIC --]
[-- END_IF --]

[-- IF PRODUCT.DISPLAYGRAPHIC --]

[-- IF PRODUCT.GRAPHIC "" --]
#do nothing
[-- ELSE --]

[-- IF PRODUCT.TEXTWRAP On --]

[-- IF PRODUCT.IMAGEALIGNMENT Right --]
[-- VAR.ALIGN align=right --]
[-- ELSE_IF PRODUCT.IMAGEALIGNMENT Left --]
[-- VAR.ALIGN align=left --]
[-- ELSE --]
[-- VAR.ALIGN "" --]
[-- END_IF --]

[-- IF PRODUCT.DISPLAYMOREINFORMATIONPAGE --]
<a href="[--
OUTPUT_DIRECTORY_URL --]/[--PRODUCT.MOREINFORMATIONFILENAME --]"><img [--
PRODUCT.GRAPHIC REMOVE_HTML --] [-- VAR.ALIGN --]></a>
[-- ELSE --]
<img [-- PRODUCT.GRAPHIC REMOVE_HTML --] [-- VAR.ALIGN --]>
[-- END_IF --]

[-- ELSE --]
<table cellspacing=0 border=1>
<tr valign=top>
<td valign=top align=[--PRODUCT.IMAGEALIGNMENT --]>

[-- IF PRODUCT.IMAGEALIGNMENT left --]

[-- IF PRODUCT.DISPLAYMOREINFORMATIONPAGE --]
<a href="[--
OUTPUT_DIRECTORY_URL --]/[--PRODUCT.MOREINFORMATIONFILENAME --]">[--
PRODUCT.GRAPHIC --]></a>
[-- ELSE --]
[-- PRODUCT.GRAPHIC --]
[-- END_IF --]

</td>
<td valign=top>
[-- END_IF --]

[-- END_IF --]

[-- END_IF --]

[-- END_IF --]

[-- IF PRODUCT.DISPLAYNAME --]

[-- IF PRODUCT.DISPLAYMOREINFORMATIONPAGE --]
<a href="[-- OUTPUT_DIRECTORY_URL --]/[--
PRODUCT.MOREINFORMATIONFILENAME --]">[-- VAR.STYLE --][-- VAR.SIZE --][--
PRODUCT.NAME --][-- VAR.SIZE_END --][-- VAR.STYLE_END --]</a></td>
[-- ELSE --]
<B>[-- PRODUCT.NAME --]</B></td>
[-- END_IF --]

[-- END_IF --]

</table>

[-- IF PRODUCT.SUBPRODUCT --]
#Sub-Products
<table border=1>

[-- LOOP SUBPRODUCTS --]
<tr>[-- SUBPRODUCTS --]</tr>
[-- END_LOOP SUBPRODUCTS --]

</table>
[-- ELSE --]

#Normal Product
[-- IF PRODUCT.SALEON --]
<td><strike>[-- PRODUCT.PRICE --]</strike></td><td><b>[--
PRODUCT.SALEAMOUNT --]</b></td>

[-- IF PRODUCT.ALTPRICE --]
<td><strike>[-- PRODUCT.ALTPRICE --]</strike></td><td><b>[--
PRODUCT.ALTSALEAMOUNT --]</b>
[-- END_IF --]

Our Price<br></td>
[-- ELSE --]
<td>[-- PRODUCT.PRICE --]</td>

[-- IF PRODUCT.ALTPRICE --]
<td>[-- PRODUCT.ALTPRICE --]</td>
[-- END_IF --]

[-- END_IF --]

[-- IF PRODUCT.DISPLAYSKU --]
<td>[-- PRODUCT.SKU --]</td>
[-- END_IF --]

[-- END_IF --]

[-- IF PRODUCT.PRODUCTDESCRIPTION --]
<td>[-- PRODUCT.PRODUCTDESCRIPTION --]</td>
[-- END_IF --]

<td>[-- PRODUCT.ORDERCHECKOUT --]</td>
#Took out End If

[-- IF PRODUCT.IMAGEALIGNMENT Center --]
</center>
[-- END_IF --]

[-- IF PRODUCT.DISPLAYGRAPHIC --]

[-- IF PRODUCT.TEXTWRAP Off --]

[-- IF PRODUCT.IMAGEALIGNMENT right --]
</td>\n<td valign=top>[-- PRODUCT.GRAPHIC --]>
[-- END_IF --]

</td>
</tr>
</table>
[-- END_IF --]

[-- END_IF --]

[-- END_DEFINE PRODUCT

"jim" <jstavast@xmission.com> wrote in message
news:cg7sto$ka1$1@eval.shopsite.com...
Post the template to the newsgroup so we can have a look at it and see
what the problem might be.

Jim

Armand Dicaire wrote:
Would anyone have a custom script to mimic the default product template
in
Manager 6.3? I like the product arrangement but would like to add custom
buttons (for a gift list). One of the salespeople sent me one but I get
errors when publishing (too many if-end if's).

Help would be much appreciated!!
Armando

Armand Dicaire
 

Re: Default Template

Postby Jim » Wed Aug 25, 2004 7:54 am

Will the pages have a mixture of products with subproducts and products
with no subproducts? If not then you just set the pages without
subproducts to use 2 columns under Products > Edit Product Layout in the
back office. If there will be a mixture on a page it would be much more
difficult to do.

Jim

Armand Dicaire wrote:
Sure here it is.
My goal is to have products that have subproducts to display in a list (page
will display 1 column). Products that have no subproducts to display into 2
columns.
Http://www.theleprechaun.ca. I like the default template but I can't
recreate it!!!


"jim" <jstavast@xmission.com> wrote in message
news:cg7sto$ka1$1@eval.shopsite.com...

Post the template to the newsgroup so we can have a look at it and see
what the problem might be.

Jim

Armand Dicaire wrote:

Would anyone have a custom script to mimic the default product template

in

Manager 6.3? I like the product arrangement but would like to add custom
buttons (for a gift list). One of the salespeople sent me one but I get
errors when publishing (too many if-end if's).

Help would be much appreciated!!
Armando




Jim
 


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 44 guests