Jump to content

rxvoice

Retired Forum Member
  • Posts

    3
  • Joined

  • Last visited

About rxvoice

rxvoice's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. 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?
  2. thanks for the help but maybe i wasnt clear what i wanted. I want two products per row. Instead of single file.
  3. Currently my whmcs lists my products in single file down the page. How do i get it to list products 2 on each row? thank you
×
×
  • 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