Jump to content

My products list.


leyton

Recommended Posts

Hello,

 

I have customized the way that the cart lists it's products.

 

http://maxihosting.co.uk/

 

However, as the attached screen-shot shows, the product description is being "squashed" down to fit into a certain amount of space, however there is more than enough space available for it to put those words on one line per point.

 

My Code (/root/maxihost/public_html/templates/orderforms/cart/products.tpl)

 

<link rel="stylesheet" type="text/css" href="templates/orderforms/cart/style.css" />

<p align="center" class="cartheading">{$LANG.cartbrowse}</p>

<div class="cartbox" align="center"><strong>
{foreach key=num item=productgroup from=$productgroups}
{if $gid eq $productgroup.gid}
{$productgroup.name} | 
{else}
<a href="{$smarty.server.PHP_SELF}?gid={$productgroup.gid}">{$productgroup.name}</a> | 
{/if}
{/foreach}
{if $loggedin}<a href="{$smarty.server.PHP_SELF}?gid=addons">{$LANG.cartproductaddons}</a> | {/if}
{if $registerdomainenabled}<a href="{$smarty.server.PHP_SELF}?a=add&domain=register">{$LANG.registerdomain}</a> |{/if}
{if $transferdomainenabled}<a href="{$smarty.server.PHP_SELF}?a=add&domain=transfer">{$LANG.transferdomain}</a> |{/if}
<a href="{$smarty.server.PHP_SELF}?a=view">{$LANG.viewcart}</a>
</strong></div>

<br />

{foreach key=num item=product from=$products}
<table width="700" border="0" cellpadding="0" cellspacing="1" bgcolor="#B5B591">
 <tr>
   <td height="24" colspan="3" bgcolor="#D0D0B9"><div align="center"><span class="style1"><strong><font color="#666666">{$product.name}{if $product.qty!=""}<em> - ({$product.qty} {$LANG.orderavailable})</em>{/if}</font></strong> <font color="#333333"></font></span></div></td>
 </tr>
 <tr>
   <td bgcolor="#DBDBC8"><div align="center"><font color="#990000">Features</font></div></td>

   <td bgcolor="#DBDBC8"><div align="center"><font color="#990000">Price</font></div></td>
   <td bgcolor="#DBDBC8"><div align="center"><font color="#990000">Order Now</font></div></td>
 </tr>
 <tr>
   <td width="450" bgcolor="#DBDBC8"><table width="200" border="0">
     <tr>

      <td bgcolor="#DBDBC8" width="60" > 

<img src="images/centos.gif" alt="linux" width="55" height="67" /> 


</td>  

       <td bgcolor="#DBDBC8" width="390" ><div align="left"><font color="#990000">{if $product.description}{$product.description}<br />{/if}

</font></div></td>
     </tr>
   </table>    </td>
   <td width="399" bgcolor="#DBDBC8"><div align="center"><strong>{if $product.paytype eq "free"}
{$LANG.orderfree}
{elseif $product.paytype eq "onetime"}
{$product.pricing.onetime} {$LANG.orderpaymenttermonetime}
{elseif $product.paytype eq "recurring"}
{if $product.pricing.monthly}{$product.pricing.monthly}<br />{/if}
{if $product.pricing.quarterly}{$product.pricing.quarterly}<br />{/if}
{if $product.pricing.semiannually}{$product.pricing.semiannually}<br />{/if}
{if $product.pricing.annually}{$product.pricing.annually}<br />{/if}
{if $product.pricing.biennially}{$product.pricing.biennially}<br />{/if}
{/if}</strong></div></td>

   <td width="150" bgcolor="#DBDBC8"><div align="center"><input type="image" src="images/add_tocart.gif" onclick="window.location='{$smarty.server.PHP_SELF}?a=add&pid={$product.pid}'" /></div></td>
 </tr>
 <tr>
   <td colspan="3" bgcolor="#D0D0B9"> </td>
 </tr>
</table><br>
{/foreach}

<p align="right"><input type="button" value="{$LANG.viewcart}" onclick="window.location='cart.php?a=view'" /></p></div></div><div style="display:none;">

 

Thanks in advance,

Leyton Reed

Screenshot-1.jpg

Link to comment
Share on other sites

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated