More Info Template

Questions and answers about ShopSite Custom Templates

More Info Template

Postby sky » Thu Feb 09, 2012 1:00 am

Hi,

I understand that more info is included in the product template.

In my customer product template (I copied from the Shopsite Product template, ModernProductTemplate.sst), it showed:

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

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


[-- VAR.MoreInfo "" --]
[-- END_DEFINE MORE_INFO_PAGE --]


So, where exactly can I edit the MoreInfo Template ?

Thanks.

regards,
Sky
sky
 
Posts: 5
Joined: Thu Feb 09, 2012 12:55 am

Re: More Info Template

Postby Jim » Thu Feb 09, 2012 6:30 am

Based on the code you have provided it is hard to say which more info section is being used but it would be either the include template Classic-MoreInfoPage or an include file that has the name of the theme. The easiest way to find out for sure would be to put a statement [-- DISPLAY_MESSAGE "message" VAR.MoreInfoTemplate --] into the template section you mentioned in your post. That will cause the publish screen to output "message" followed by the value of VAR.MoreInfoTemplate on the screen. If nothing is output but message then the Classic-MoreInfoPage include file will be what you need to edit. If some template name is displayed then that is the include file you will need to edit.

Add the tag just after the VAR.MoreInfo "yes" line like this.
Code: Select all
#############################
[-- DEFINE MORE_INFO_PAGE --]
#############################
[-- VAR.MoreInfo "yes" --]
# print the value of VAR.MoreInfoTemplate on publish screen
[-- DISPLAY_MESSAGE " I need to edit the file = " VAR.MoreInfoTemplate --]

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


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

Re: More Info Template

Postby sky » Thu Feb 09, 2012 7:42 am

Jim,

thanks for reply. The printout that displayed on screen after published DISPLAY_MESSAGE " I need to edit the file = " VAR.MoreInfoTemplate --], so maybe a variable called “MoreInfoTemplate” is not set, afterall.

I just want to understand on how to edit the template for the "More Info" page

Let say: Product ABC, for example
Go to Edit Product layout for ABC
I set the template to be ModernProductTemplate_COPY.sst
Product Layout Info:
Template: ModernProductTemplate_COPY.sst

Go to Edit Product Info for ABC
More Info Pages

I set More Info Page File Name: ABC_info.html


Then I go to Merchandising -> Custom Templates -> Page/Products -> Product Templates -> ModernProductTemplate_COPY.sst -> Edit Template
, there are MORE INFO section.


So, If I surf to http//mydomain.com/store/ABC_info.html, this is the more info page for product ABC.
So my question is which template does ABC_info.html used to generate ?
Is it ModernProductTemplate_COPY.sst ?
Is it VAR.MoreInfoTemplate or Classic.MoreInfoPage ?

I checked the include file "Classic.MoreInfoPage", doesn't seem to be generated from it. (I checked the source code of ABC_info.html, and compare..). Where is this VAR.MoreInfoTemplate comes from ?

Regards,
Sky
sky
 
Posts: 5
Joined: Thu Feb 09, 2012 12:55 am

Re: More Info Template

Postby sky » Thu Feb 09, 2012 9:21 am

nvm. Issue resolved.
Close Thread.
sky
 
Posts: 5
Joined: Thu Feb 09, 2012 12:55 am

Re: More Info Template

Postby Jim » Thu Feb 09, 2012 4:59 pm

I apologize for the error in my previous post. I looked at the template cheatsheet (http://www.shopsite.com/help/10.2/en-US/templates/custom.template.cheatsheet.html) and it had incorrect information for displaying a message on the publish screen.
The template specification in the help (http://www.shopsite.com/help/10.2/en-US/sc/pro/custom.template.spec-global.html) says the template tag to display a message is [-- GENERATE_MESSAGE "message" <parameter> --] not the one with DISPLAY_MESSAGE.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 1 guest