Jump to content

Alternative product layout


Guest sametch

Recommended Posts

Guest sametch

I am just evealuating CubeCart. I notice when adding many products to a category they are displayed down the page in a series of individual rows.

I would like to display a matrix of product thumnails with "more" hyperlinks. Typically 3 in a row and 12 on a page. when there are more than 12 items these will spill across onto a second page.

Is this possible in Cubecart?

Can it be done in settings or does it require programming?

Link to comment
Share on other sites

Guest sametch

Any clues? I have found the template viewCat.tpl and the code for the product layout:

  <!-- BEGIN: products -->

  <tr>

    <td align="center" class="{CLASS}"><a href="index.php?act=viewProd&amp;productId={PRODUCT_ID}" target="_self"><img src="{SRC_PROD_THUMB}" alt="{TXT_TITLE}" border="0" /></a></td>

    <td valign="top" class="{CLASS}"><a href="index.php?act=viewProd&amp;productId={PRODUCT_ID}" target="_self" class="txtDefault"><strong>{TXT_TITLE}</strong></a><br />

	{TXT_DESC}<div class="txtOutOfStock">{TXT_OUTOFSTOCK}</div></td>

	<td align="center" class="{CLASS}">{TXT_PRICE}

    <div class="txtSale">{TXT_SALE_PRICE}</div></td>

    <td align="right" nowrap='nowrap' class="{CLASS}">

	<form action="{CURRENT_URL}" method="post" name="prod{PRODUCT_ID}">

	<!-- BEGIN: buy_btn -->

	<input type="hidden" name="add" value="{PRODUCT_ID}" />

	<input type="hidden" name="quan" value="1" /><a href="javascript:submitDoc('prod{PRODUCT_ID}');" target="_self" class="txtButton">{BTN_BUY}</a><!-- END: buy_btn --> <a href="index.php?act=viewProd&amp;productId={PRODUCT_ID}" target="_self" class="txtButton">{BTN_MORE}</a></form></td>

</tr>

<!-- END: products -->

I assume this repeats a series of <tr></tr> cells for each product in a single long column.

But if I put the <!-- BEGIN: products --> after the <tr> and before the <td> it will create a single row with lots of columns.

I guess what I need is to go across 3 and then fold to a new row etc.

I am struggling to see how I can do this

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...