rxvoice Posted August 17, 2008 Share Posted August 17, 2008 I have divided my page up into a few columns as u can see here https://www.rx-voice.com/client/cart.php?gid=0000000003 this is my code i used <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><br /> </div> <table border="0" cellpadding="0" cellspacing="0" style="border-width: 0px"> <tbody> <tr> {assign var=cols value=4} {foreach name=list key=num item=product from=$products} <td> <table border="0" cellpadding="0" cellspacing="0" style="border-width: 0px"> <tbody> <tr align="left"> <td valign="top"> <strong>{$product.name}</strong> {if $product.qty!=""}<em>({$product.qty} {$LANG.orderavailable})</em>{/if}<br /> {if $product.description}{$product.description}<br />{/if} </td> <td valign="top"> <div style="margin:5px;padding:2px;color:#cc0000;"> {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} </div> <div align="center"> <input type="button" value="{$LANG.ordernowbutton}"{if $product.qty eq "0"} disabled{/if} onclick="window.location='{$smarty.server.PHP_SELF}?a=add&pid={$product.pid}'" /> </div></td> </tr> </tbody> </table> </td> {if not (($smarty.foreach.list.index +1) mod $cols)} {if not $smarty.foreach.list.last} </TR><TR> {/if} {/if} {if $smarty.foreach.list.last} {* pad the cells not yet created *} {math equation = "n - a % n" n=$cols a=$products|@count assign="cells"} {if $cells ne $cols} {section name=pad loop=$cells} <TD> </TD> {/section} {/if} </TR> {/if} <br /> {/foreach} </tbody> </table> <p align="right"> how do i get rid of the big blank space above my products? 0 Quote Link to comment Share on other sites More sharing options...
sparky Posted August 18, 2008 Share Posted August 18, 2008 Opps... My blue there.... Just above {/foreach} remove the <br /> That should fix it 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.