"one line" product template

General ShopSite user discussion

"one line" product template

Postby bubblefast » Sat Apr 07, 2007 5:44 pm

Hello. I am a brand new user. I am using Shopsite Pro 8.1.0

I am trying to use the "one line" product template, but can't seem to ba able to get all the info on one line. The quantity box and add to cart image always end up on a second line.

Can anyone tell me the stupid mistake I must be making? It seems like such a simple issue, yet I can't seem to get it to work.

Any help would be greatly appreciated.

Thanks!
bubblefast
 
Posts: 9
Joined: Sat Apr 07, 2007 4:16 pm

Postby Jim » Sat Apr 07, 2007 6:53 pm

You aren't making a mistake. The one line template is only 1 line if the product does not require a form submit button. Using the Quantity or Order options will force a form which will insert a table and for the output to be on multiple lines.

You could create a custom template that would have everything on one line by making the whole product output be in a single table with each element of the product in a table cell.

Something like

<FORM action="[-- SHOPPING_CART_URL BASE --]/order.cgi" method=post>
<table><tr>
<td>[--product.graphic --]</td>
<td>[--product.name--]</td>
<td>[--product.sku--]</td>
<td>[--product.productdescription --]</td>
<td>[--product.price--]</td>
<td><input type=text size=2 name="[-- PRODUCT.RECORDNUMBER --]:qnty" value="1"></td>
<td>
<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 --]>
<input type=image src="[--OUTPUT_DIRECTORY_URL--]/media/add_to_cart.gif">
</td>
<td>a href="[-- Shopping_Cart_URL --]">
[-- PRODUCT.ViewCartButton --]</a></td>
</FORM>


I did not test this out but it would be something similar to that. You will need to verify that it work for you.
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby bubblefast » Sat Apr 07, 2007 6:57 pm

Wow! That was fast. And a great answer, too! Thank you so much. I will definitely try this template.

Thanks so much!
Mark
bubblefast
 
Posts: 9
Joined: Sat Apr 07, 2007 4:16 pm


Return to User Forum

Who is online

Users browsing this forum: No registered users and 173 guests