how can i add a text2 field to all more info pages?

General ShopSite user discussion

how can i add a text2 field to all more info pages?

Postby anxiouskittie » Sat Jul 28, 2007 10:02 am

I use cross sell template, and i use the text2 field on the pages to display my menu through that.

How can i add this to the product template so that it shows up on all more info pages (meaning, exactly where do i place the html for the menu, and what do i need to write before and after it)


you can view my site here: http://siljestorhaug.powweb.com/store/



I have tried so many times to do this, but i simply don't understand to.

I have managed to get it to display on the more info page when testing on a certain product, but then it made the product appear below the menu (the menu had been pushed to the bottom).

I cant find out how and where in the product template to put it :/
anxiouskittie
 
Posts: 81
Joined: Thu Oct 12, 2006 9:39 am

Postby Jim » Sat Jul 28, 2007 12:13 pm

A More Info page is a product feature not a page feature, therefor you cannot use a page field (i.e. text2) on the more info page.

The way to include your navigation would be to put it in a file in the Includes section and then use the [-- INLUDE filename --] to place the links where you want them. The probable location would be just before the following code
--------------------------------
<div class="mi-productBlock">
<div class="mi-productGraphic">
[-- IF PRODUCT.MoreInformationGraphic --]
[-- PRODUCT.MoreInformationGraphic --]
[-- ELSE_IF PRODUCT.DisplayGraphic --]
[-- PRODUCT.Graphic --]
[-- END_IF --]
</div><!-- end productGraphic -->
----------------------------------

You may also want to define a class for the links and include that in the style sheet for the template.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby anxiouskittie » Sat Jul 28, 2007 3:59 pm

hey! thanks so much for helping.

loren actually helped me with that a while back, but then i knew much less so i didn't have the knowledge to complete it..

this is what i get if i do that..

http://siljestorhaug.powweb.com/store/product443.html

not sure if i put the style tags where i should, then..


could you help me out with the placement of them? are these the style tags for the text2 or will that not work?
anxiouskittie
 
Posts: 81
Joined: Thu Oct 12, 2006 9:39 am

Postby Jim » Sat Jul 28, 2007 7:31 pm

I don't see anything that looks like it would be links. Did you republish the store after making the template change?
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby anxiouskittie » Sat Jul 28, 2007 8:28 pm

Oh, dang, sorry bout that. I seem to have re-published after changing that one back to the old template.

take a look now
anxiouskittie
 
Posts: 81
Joined: Thu Oct 12, 2006 9:39 am

Postby anxiouskittie » Sun Jul 29, 2007 6:48 pm

I made a new test-product which will show the same thing, so visitors wont see the error, so go here instead:


http://siljestorhaug.powweb.com/store/testeproduct.html
anxiouskittie
 
Posts: 81
Joined: Thu Oct 12, 2006 9:39 am

Postby Jim » Mon Jul 30, 2007 10:13 am

I see this text at the top of your page
"[-- ELSE --] > [-- END_IF --] [-- VAR.MoreInfoPage "yes" --]"

This is ShopSite template tag information and should not be displaying. I don't know if this is what is causing the problem or not but you should fix that first. Most likely this is coming from an include file where you have not used the "process" option. Any time an include file contains ShopSite tags you need to use the tag like this [-- INCLUDE filename PROCESS --] to let ShopSite know that the file needs to be evaluated for any ShopSite template tags.

So see which include file contains the above text and then add the PROCESS option to the include statement.

I'm not up on how DIVs work but it may be that you need to create a major DIV around the link and product info DIVs so that the information will be placed side by side.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah


Return to User Forum

Who is online

Users browsing this forum: No registered users and 58 guests