Jump to content

Remove customer view of payment gateway


kgerm7513

Recommended Posts

Alright, so typically, the payment gateway selection shows up on orders / invoices, etc...

 

But I only have one, and don't want customers to see the drop down.

 

gateway.png

 

Is there any way I can remove the option to select, in both the invoices, and orderform, and simply have it select the default all the time?

 

I could remove this line from orderform.tpl:

 

 

<tr class="rowcolor1"><td>{foreach key=num item=gateway from=$gateways}<label><input type="radio" name="paymentmethod" value="{$gateway.sysname}" id="pgbtn{$num}" onclick="{if $gateway.type eq "CC"}showCCForm(){else}hideCCForm(){/if}"{if $selectedgateway eq $gateway.sysname} checked{/if} />{$gateway.name}</label> {/foreach}</td></tr>

 

But I'm not positive that it would then actually select any payment gateway...

Link to comment
Share on other sites

first i think you attached the wrong picture.

2nd if you need to make the payment gateway checked by default, your code will look like this:

<tr class="rowcolor1">
  <td>
    {foreach key=num item=gateway from=$gateways}
     <label>
             <input type="radio" name="paymentmethod" value="{$gateway.sysname}" id="pgbtn{$num}" onclick="{if $gateway.type eq "CC"}showCCForm(){else}hideCCForm(){/if}" checked />{$gateway.name}
     </label> 
    {/foreach}
   </td>
</tr>

only if you have one payment gateway

Link to comment
Share on other sites

one option would be to go to general settings -> invoices and untick the "Clients Choose Gateway" checkbox - if you do this, then they will pay using the method they first chose... and if you only have one payment option, it will be that... the dropdown box should disappear from the invoices.

 

I suspect removing the above line would not be a good idea... changing the input type from radio to hidden might work, but I haven't tried it.

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