Where is the MoreInfo Template information stored?

General ShopSite user discussion

Where is the MoreInfo Template information stored?

Postby cameron » Sun Jan 25, 2009 7:22 pm

I cant seem to find there this template is being store at this stage. I want to customize the look of my MoreInfo Pages and I'm figuring thats next. I edited my product template to include some MoreInfo tags at the bottom and now I'm getting duplicates of the products on the MoreInfo Pages.

Here is the code...

#########################
[-- DEFINE SUBPRODUCT --]
<input type="checkbox" name="itemnum" value="[-- PRODUCT.RECORDNUMBER --]">&nbsp;
[-- IF PRODUCT.DisplayName --][-- PRODUCT.Name --][-- END_IF --]&nbsp;

[-- VAR.SaleOn "no" --]

[-- IF PRODUCT.SaleOn--]
[-- IF PRODUCT.SaleAmount --]
[-- VAR.SaleOn "yes" --]
[-- Else --]
[-- VAR.SaleOn "no" --]
[-- END_IF --]
[-- END_IF --]

# if merchant wants price displayed
[-- IF PRODUCT.DisplayPrice --]

[-- IF PRODUCT.VariablePrice? --]
<b>[--STORE.Price --]:</b> [-- STORE.CurrencySymbol --]<input type=text name="[-- PRODUCT.RecordNumber --]:price" size="4" maxlength="10" value="">
[-- ELSE --]

[-- IF VAR.SaleOn "yes" --]
<strike>[-- PRODUCT.Price --]</strike>
[-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --][-- PRODUCT.SaleAmount --][-- PRODUCT.PriceStyle End --][-- PRODUCT.PriceSize End --]
[-- IF PRODUCT.AltPrice--]
<strike>[-- PRODUCT.AltPrice --]</strike>
[-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --][-- PRODUCT.AltSaleAmount --][-- PRODUCT.PriceStyle End --][-- PRODUCT.PriceSize End --]
[-- END_IF --]
[-- STORE.OnSaleText --]

[-- ELSE --]
# product is not on sale
[-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --][-- PRODUCT.Price --][-- PRODUCT.PriceStyle End --][-- PRODUCT.PriceSize End --]
[-- IF PRODUCT.AltPrice--]
[-- PRODUCT.AltPrice --]
[-- END_IF --]
[-- END_IF --]
[-- END_IF --]
[-- ELSE --]
# merchant does not want price displayed, but is there a sale price?
[-- IF PRODUCT.VariablePrice? --]
#don't display sale price
[-- ELSE_IF VAR.SaleOn "yes" --]
# display sale price, but not regular price
[-- IF VAR.MoreInfoPage "yes" --]
# do nothing
[-- ELSE --]
<br>
[-- END_IF --]

[-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --][-- PRODUCT.SaleAmount --][-- PRODUCT.PriceStyle End --][-- PRODUCT.PriceSize End --]
[-- IF PRODUCT.AltPrice--]
[-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --][-- PRODUCT.AltSaleAmount --][-- PRODUCT.PriceStyle End --][-- PRODUCT.PriceSize End --]
[-- END_IF --]
[-- STORE.OnSaleText --]
[-- END_IF --]

[-- END_IF --]

[-- IF PRODUCT.DisplayOrderingOptions --]
[-- IF PRODUCT.OptionText --]
[-- PRODUCT.OptionText --]
[-- END_IF --]
[-- ORDER_OPTION_MENU LINE --]
[-- END_IF --]

[-- IF PRODUCT.DisplayOrderQuantity checked --]
Quantity <input type="text" size="2" name="[-- PRODUCT.RecordNumber --]:qnty" value="1" >&nbsp;&nbsp;
[-- END_IF --]
[-- END_DEFINE SUBPRODUCT --]
#############################


#########################
[-- DEFINE PRODUCT_CROSS_SELL --]
[-- INCLUDE Product-Name PROCESS --]
[-- INCLUDE Product-Price PROCESS --]
[-- IF VAR.MoreInfoTemplate --]
[-- IF PRODUCT.QuantityPricing --]
<div class="QPtable">
[-- PRODUCT.QuantityPricing --]
</div>
[-- END_IF --]
[-- IF ANALYTICS_MULTI_DOMAIN --]
<form action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method="post" onSubmit="javascript:__utmLinkPost(this)">
[-- ELSE --]
<form action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method="post">
[-- END_IF --]
<input type="hidden" name="storeid" value="[-- STORE_ID --]">
<input type="hidden" name="dbname" value="products">
<input type="hidden" name="function" value="add">
<input type="hidden" name="itemnum" value="[-- PRODUCT.RecordNumber --]">

[-- IF PRODUCT.DisplayOrderingOptions --]
[-- IF PRODUCT.OptionText --]
<br>[-- PRODUCT.OptionText --]
[-- END_IF --]
[-- ORDER_OPTION_MENU LINE --]
[-- END_IF --]

[-- IF PRODUCT.DisplayOrderQuantity checked --]
Quantity <input type="text" size="2" name="[-- PRODUCT.RecordNumber --]:qnty" value="1" >&nbsp;&nbsp;
[-- END_IF --]
<br>
[-- IF VAR.AddButtonGraphic --]
<input type="image" class="add" src="[-- OUTPUT_DIRECTORY_URL --]/[-- VAR.Media --]/[-- VAR.AddButtonGraphic --]" name="Add to Cart" alt="Add to Cart">
[-- ELSE_IF ADDIMAGE? --]
<input type="image" [--ADDIMAGE--]>
[-- ELSE --]
<input class="add" type="submit" value="[-- ADDTEXT --]">
[-- END_IF --]

</form>
[-- ELSE --]
[-- PRODUCT.OrderCheckout --]
[-- END_IF --]
[-- END_DEFINE PRODUCT_CROSS_SELL --]
#############################


######################
[-- DEFINE PRODUCT --]
######################
### Set a bunch of variables ###
[-- VAR.TableLayout no --]
#[-- VAR.Form no --]
[-- VAR.Options no --]
[-- VAR.Quantity no --]
[-- VAR.Graphic no --]

### Start the form for Add to Cart button ###
[-- IF ANALYTICS_MULTI_DOMAIN --]
<form action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method="post" onSubmit="javascript:__utmLinkPost(this)">
[-- ELSE --]
<form action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method="post">
[-- END_IF --]
<input type="hidden" name="storeid" value="[-- STORE_ID --]">
<input type="hidden" name="dbname" value="products">
<input type="hidden" name="function" value="add">

#####################
# GRAPHIC ALIGNMENT #
#####################
[-- INCLUDE Product-GraphicAlign PROCESS --]

####################
# PRODUCT GRAPHIC #
####################
[-- INCLUDE Product-Graphic PROCESS --]

########################
# PRODUCT NAME #
########################
[-- INCLUDE Product-Name PROCESS --]

[-- IF PRODUCT.Subproduct --]
#skip
[-- ELSE --]

####################
# PRODUCT PRICE #
####################
<!--[-- IF PRODUCT.QuantityPricing --]
#do nothing
[-- ELSE --]
[-- INCLUDE Product-Price PROCESS --]
[-- END_IF --]
-->
</br>[-- IF PRODUCT.Field1 --]
<b>[-- PRODUCT.Field1 --]</b>
[-- ELSE --]
<b>[-- PRODUCT.Price --]</b>
[-- END_IF --]

########################
# PRODUCT SKU #
########################
[-- INCLUDE Product-Sku PROCESS --]
[-- END_IF --]

########################
# PRODUCT DESCRIPTION #
########################
[-- INCLUDE Product-Description PROCESS --]

[-- IF PRODUCT.Subproduct --]
<table cellpadding="0" cellspacing="0" border="0">
[--LOOP SUBPRODUCTS 1 --]
<td>[--SUBPRODUCTS--]</td>
[--END_LOOP SUBPRODUCTS--]
</table>
[-- ELSE --]
<input type="hidden" name="itemnum" value="[-- PRODUCT.RecordNumber --]">

#######################
# ADD TO CART BUTTON #
#######################
[-- IF PRODUCT.QuantityPricing --]
<div class="QPtable">
[-- PRODUCT.QuantityPricing --]
</div>
[-- END_IF --]

[-- IF PRODUCT.DisplayOrderingOptions --]
[-- IF PRODUCT.OptionText --]
<br>[-- PRODUCT.OptionText --]
[-- END_IF --]
[-- ORDER_OPTION_MENU LINE --]
[-- END_IF --]

[-- IF PRODUCT.DisplayOrderQuantity checked --]
[-- IF PRODUCT.DisplayOrderingOptions --]
#do nothing
[-- ELSE --]
[-- IF VAR.MoreInfoPage "yes" --]
<br>
[-- END_IF --]
[-- END_IF --]
[-- STORE.OrderQuantity --] <input type="text" size="2" name="[-- PRODUCT.RecordNumber --]:qnty" value="1" >&nbsp;&nbsp; <!--<br>-->
[-- END_IF --]

[-- END_IF --]

[-- IF VAR.AddButtonGraphic --]
<input type="image" class="add" src="[-- OUTPUT_DIRECTORY_URL --]/[-- VAR.Media --]/[-- VAR.AddButtonGraphic --]" name="Add to Cart" alt="Add to Cart">
[-- ELSE_IF ADDIMAGE? --]
<input type="image" [--ADDIMAGE--]>
[-- ELSE --]
<input class="add" type="submit" value="[-- ADDTEXT --]">
[-- END_IF --]


###########################
# PRODUCT GRAPHIC #
# align=right, wrap=off #
###########################
[-- INCLUDE Product-GraphicRight PROCESS --]

</form>

[-- END_DEFINE PRODUCT --]


#############################
[-- DEFINE MORE_INFO_PAGE --]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
#############################
[-- VAR.MoreInfo "yes" --]

[-- IF VAR.MoreInfoTemplate --]
[-- INCLUDE VAR.MoreInfoTemplate PROCESS --]
[-- ELSE --]
[-- INCLUDE Classic-MoreInfoPage PROCESS --]
[-- END_IF --]


[-- VAR.MoreInfo "" --]

<html>
<head>
<title>[-- PRODUCT.MoreInformationTitle --]</title>
</head>
<body>

<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td>[-- HEADER --]</td>
</tr>
<tr bgcolor="#FFFFFF">
<td bgcolor="#FFFFFF"><h1>[-- PRODUCT.Name --]</h1>
[-- PRODUCT.MoreInformationGraphic --]<br>
[-- PRODUCT.MoreInformationText --]<br>
[-- PRODUCT.Field1 --]<br>
<a href="[-- PRODUCT.AddToCartURL --]">add to cart</a></td>
</tr>
<tr>
<td>[-- FOOTER --]</td>
</tr>
</table>
</body>
</html>


[-- END_DEFINE MORE_INFO_PAGE --]
cameron
 
Posts: 33
Joined: Fri Jan 23, 2009 12:43 pm
Location: USA

Postby Jim » Mon Jan 26, 2009 10:41 am

I believe that these lines are used to include a moreinfo definition that is used in multiple product templates.
Code: Select all
[-- IF VAR.MoreInfoTemplate --]
[-- INCLUDE VAR.MoreInfoTemplate PROCESS --]
[-- ELSE --]
[-- INCLUDE Classic-MoreInfoPage PROCESS --]
[-- END_IF --]


Depending on which ShopSite template you are using as your basis you would need to edit one of the include files that is referenced.

I'm not sure where "VAR.MoreInfoTemplate" is defined but it may be in the page template. So check your page template and see if that value is defined and if it is then you will need to edit that include file. Otherwise you would edit the include file Classic-MoreInfoPage.

The information you added to the template is what is causing the duplicate products since they are also defined in the above include file.

Note that you could just delete the section I quoted above and use the code you added if you want.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby cameron » Wed Jan 28, 2009 1:08 pm

Jim,

That is going to help very much. As before, I truly appreciate you spreading your knowledge of this product.

Thanks again
Erik
cameron
 
Posts: 33
Joined: Fri Jan 23, 2009 12:43 pm
Location: USA

Postby cameron » Sun Feb 15, 2009 6:30 am

I am still having a problem where I cant change what appears on the MoreInfo Pages. No matter what changes I make, it seems that the product is displayed twice.

Does anyone know where the "IF VAR.MoreInfoPage" is stored?

I am looking to alter that piece.

Erik
cameron
 
Posts: 33
Joined: Fri Jan 23, 2009 12:43 pm
Location: USA

Postby cameron » Sun Feb 15, 2009 7:47 am

I dont know what it is but no matter what I cannot get the moreinfo page to change at all .... I even changed the page template for the product, thinking that would do the trick but it didnt.

You can see my problem here:

http://www.pongman.com/drivers_G10.html

You can start at the home page to drill down to any other product and replicate the same error.

http://www.pongman.com/index.html

Anyone have any suggestions?
Thanks
Erik
cameron
 
Posts: 33
Joined: Fri Jan 23, 2009 12:43 pm
Location: USA

Postby cameron » Sun Feb 15, 2009 8:21 am

So I just figured out that if I dont have a product assigned to a page then I cant edit the appearance of that products page.

Is there anyway to get around this?
cameron
 
Posts: 33
Joined: Fri Jan 23, 2009 12:43 pm
Location: USA

Postby Jim » Sun Feb 15, 2009 8:35 am

Since you have defined the moreinfo page yourself just comment out or delete this section of the template

Code: Select all
[-- VAR.MoreInfo "yes" --]

[-- IF VAR.MoreInfoTemplate --]
[-- INCLUDE VAR.MoreInfoTemplate PROCESS --]
[-- ELSE --]
[-- INCLUDE Classic-MoreInfoPage PROCESS --]
[-- END_IF --]


[-- VAR.MoreInfo "" --]
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby gene » Thu Feb 26, 2009 8:36 pm

If you wanna have ideas on page templates and product templates, refer to the link below. It will give you an overall view of the templates.

http://shopsite.com/templates/cookbook/
gene
 
Posts: 122
Joined: Mon Feb 09, 2009 10:54 pm
Location: Philippines


Return to User Forum

Who is online

Users browsing this forum: No registered users and 118 guests