Jump to content

Payment options side by side


Patty

Recommended Posts

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. :)

Link to comment
Share on other sites

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??? :)

Link to comment
Share on other sites

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:

paymt.gif

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