Patty Posted May 28, 2010 Share Posted May 28, 2010 Hi, guys. Need a quick help here. I have like 8 payment options on my cart, all lined up in one single column. How can I have them show kind like in a grid side by side, say 4 in one column and 4 in the other column? Tks a lot for any help. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted May 28, 2010 WHMCS Support Manager Share Posted May 28, 2010 You'd need to edit /templates/orderforms/*your active template*/viewcart.tpl 0 Quote Link to comment Share on other sites More sharing options...
Patty Posted May 28, 2010 Author Share Posted May 28, 2010 Thank you for your reply, John. That much I know... I'd like to know HOW to do it, how to divide the list in two columns. TIA for your help. 0 Quote Link to comment Share on other sites More sharing options...
Patty Posted June 1, 2010 Author Share Posted June 1, 2010 Still trying to make this work. I'm trying to use a table, but how to make the payment gateways spread evenly in both columns? I know there's a way to do it in PHP, but I don't know how to apply it here. Can anyone shed a light? Pleaaaase??? 0 Quote Link to comment Share on other sites More sharing options...
Patty Posted June 1, 2010 Author Share Posted June 1, 2010 Never mind. I've found the easiest way to accomplish this by using a simple div. Here's how: just replace the payment gateway code on file viewcart.php with the following: {foreach key=num item=gateway from=$gateways} <div style="width:230px; height:60px; text-align:center; padding-bottom:30px; float:left;"> <input type="radio" name="paymentmethod" value="{$gateway.sysname}" id="pgbtn{$num}"{if $selectedgateway eq $gateway.sysname} checked{/if} /><label for="pgbtn{$num}">{$gateway.name}<br /> {if $gateway.sysname} <img align="center" src="images/{$gateway.sysname}.gif" /> {/if} </label> </div>{/foreach} Works like a charm! Here's the result on my site: 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted June 1, 2010 WHMCS Support Manager Share Posted June 1, 2010 Thanks for sharing your solution 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.