Forcing a new row && Nested <html> tags.

General ShopSite user discussion

Forcing a new row && Nested <html> tags.

Postby pigfox » Thu Jan 11, 2007 9:20 pm

I'm learning SS 8.1 and I have major difficulties understanding how it actually works. Below is the Default More Info Page Template where I have put in comments. I want the image to be above the descriptive text etc. I also wonder howcome there are <html> tags in an include file?
The source that SS creates as final generated page contains nested <html> tags!!!
Does anyone know how to create a new row?
Why nested <html> tags?


### Default More Info Page Template ###

<html>
[-- INCLUDE MoreInfo-Head PROCESS --]
#[-- INCLUDE Classic-MoreInfo.css PROCESS --]
</head>

[-- VAR.PageMargins "No" --]

[-- INCLUDE MoreInfo-Body PROCESS --]

[-- IF MORE_INFO.DisplayPageHeader --]
<div class="header">[-- HEADER --]</div>
[-- END_IF --]

[-- IF PRODUCT.MoreInformationGraphic --]
<img [-- PRODUCT.MoreInformationGraphic Remove_HTML --] align="left">
[-- END_IF --]
#START A NEW ROW HERE ---------------
[-- IF PRODUCT.DisplayName --]
[-- IF PRODUCT.Subproduct --]
<h2>[-- PRODUCT.Name --]</h2>
[-- ELSE_IF PRODUCT.VariablePrice? --]
[-- IF PRODUCT.VariableName? --]
[-- STORE.ProductName --]: <input type=text name="[-- PRODUCT.RecordNumber --]:name" size="20" maxlength="100" value="">
[-- ELSE --]
<h2>[-- PRODUCT.Name --]</h2>
[-- END_IF --]
[-- ELSE --]
<h2>[-- PRODUCT.Name --]</h2>
[-- END_IF --]
[-- END_IF --]

[-- IF PRODUCT.QuantityPricing --]
#do nothing
[-- ELSE --]
[-- INCLUDE Product-Price PROCESS --]
[-- END_IF --]


[-- IF PRODUCT.Subproduct --]
# don't display the SKU
[-- ELSE --]
[-- INCLUDE Product-Sku PROCESS --]<br>
[-- END_IF --]

<br>[-- PRODUCT.MoreInformationText --]

<br>
[-- IF PRODUCT.Subproduct --]
# Product has subproducts
[--LOOP SUBPRODUCTS--]
[--SUBPRODUCTS--]
[--END_LOOP SUBPRODUCTS--]
[-- ELSE --]
# Product does not have subproducts

#######################
# ADD TO CART BUTTON #
#######################
<center>
<form action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method=post>
[-- INCLUDE Product-AddToCartButton PROCESS --]</form>
</center>

# end the IF PRODUCT.subproducts
[--END_IF--]
#END NEW ROW HERE----------------------------------
<br>

[-- IF MORE_INFO.DisplayPageFOOTER --]
[-- FOOTER --]
[-- END_IF --]

</body>
</html>
pigfox
 
Posts: 5
Joined: Mon Jan 08, 2007 9:11 pm

Postby stilfx » Thu Jan 11, 2007 9:32 pm

Im just learning this myself. But I think I have a handle on it..

First: Which template (theme) did you copy to modify as a Custom Template?

And new row? Table row? Might need a link to an example page.
Or the rendered html at least.
Last edited by stilfx on Thu Jan 11, 2007 9:40 pm, edited 1 time in total.
stilfx
 
Posts: 42
Joined: Wed Dec 13, 2006 7:56 pm

Postby pigfox » Thu Jan 11, 2007 9:38 pm

I made a copy "Default More Info Page Template" and editing it.
pigfox
 
Posts: 5
Joined: Mon Jan 08, 2007 9:11 pm

Postby stilfx » Thu Jan 11, 2007 9:44 pm

nm.. I see now. Your using the "Classic-MoreInfoPage" template. Ok. Which theme does that belong to?

And what do u mean by row.. as I posted above. Shoot me a link or example html.

BTW: I'm basing my custom template off of all the CrossSell-Sky templates. That theme seemed to be one of the more up-to-date (if u can call it that) themes.
stilfx
 
Posts: 42
Joined: Wed Dec 13, 2006 7:56 pm

Postby pigfox » Thu Jan 11, 2007 9:51 pm

I just fixed it, by new row I meant adding a new table row <tr>.
The trick was to create a new table in the <td>, then I got the number of rows I wanted.
pigfox
 
Posts: 5
Joined: Mon Jan 08, 2007 9:11 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 80 guests

cron