More Info pages not rendering as expected

General ShopSite user discussion

More Info pages not rendering as expected

Postby NB » Tue Nov 13, 2007 9:24 pm

I'm creating custom templates based on the samples in the documentation. The page and product templates are working great, except for the more info page. I will spare you all of the code - the more info section is exactly as appears here:

http://www.shopsite.com/templates/examples/product-07-more_info.html

I tried some more elaborate things but the changes never appeared. Then I just inserted some HTML in the middle to test, but it doesn't show up either. I did a Utilities > Publish > Regenerate. My changes to page and product templates take effect, but nothing on more info ever changes. Am I missing something very basic? Thanks in advance.
NB
 
Posts: 3
Joined: Tue Nov 13, 2007 9:03 pm

Postby Jim » Tue Nov 13, 2007 9:59 pm

Did you change the filename for the moreinfo page? By default it will be something like product123.html where the 123 is the database record number of the product. If you change the filename after the page has once been created the old page will not be removed and a new page would be generated using the filename you now specify. So you would need to look at the new filename and not the old one. Links on pages where products are displayed should however be updated to point to the new page name instead of the old one.

So are you looking at an old page? Also have you tried closing the browser and then reloading the page to see if it changes? Some times the browsers cache the page and you need of force a reload of the page.

Another possible cause is that you aren't using the template you think is being used. The moreinfo page of a product is generated the first time that product is encountered during the publish. If the product is assigned as a subproduct to another product it may be using that products moreinfo define and not the one in the template that the product is assigned to use. Also a page template can override the product template so that a particular template is used for all products on the page.

Also check to see that you still have the checkbox enabled for generating the product's moreinfo page. It may be that you generated the page once and then unchecked the box so it doesn't get regenerated during a publish.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby NB » Tue Nov 13, 2007 10:13 pm

Thank you very much for your prompt response.

I did change the filename for the more info page at one point, but I am looking at the new page. I've tried reloading the new page and in different browsers.

In an attempt to simplify things, I haven't created any subproducts yet. When publishing, I have not been checking the box labeled "Use subproduct's template for More Info Pages". Is that the checkbox you're talking about?

It does seem that it's not using the moreinfo in my custom product template, as the moreinfo page just looks "out of the box" with the title, image, description, etc. I just added some text in the moreinfo section <title> tags and it doesn't show up.

Any other thoughts? Thanks again.
NB
 
Posts: 3
Joined: Tue Nov 13, 2007 9:03 pm

Postby Jim » Tue Nov 13, 2007 10:32 pm

I did change the filename for the more info page at one point, but I am looking at the new page.

How do you know you are looking at the new page? Is the old page still there and is IT being updated instead of the one you think?

What page template are you using? In the [-- Loop Products --] section of that template what does the tag [-- Products ....--] look like. It should be within a few lines of the Loop Product tag.

What is the url to a page that has your product on it and a url to the moreinfo page that you are looking at
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby NB » Sun Nov 18, 2007 9:18 pm

Jim wrote:What page template are you using? In the [-- Loop Products --] section of that template what does the tag [-- Products ....--] look like. It should be within a few lines of the Loop Product tag.


Jim - thanks so much for your help. The template was wrong in the Loop Products section as you pointed out. Everything works now. Thanks again.
NB
 
Posts: 3
Joined: Tue Nov 13, 2007 9:03 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 137 guests