aspidagrant Posted April 22, 2015 Share Posted April 22, 2015 Hello! I have created some user groups because some will be distributors and will not actually PAY on the site. Is there a way to enable or show the "Mail in payment" option for a specific group only? I know you can use smarty template do hide certain elements based on log in IF, etc. So I was hoping there was a way to do this. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted April 22, 2015 Share Posted April 22, 2015 i'm sure i've posted how to do this... can't find the thread though! if you wanted it so that a client group could only see "Mail In Payment", but everyone else can see all payment gateways (including "Mail In Payment"), you could try something like this... {foreach key=num item=gateway from=$gateways} {if ($gateway.sysname eq "mailin" and $clientsdetails.groupid eq 1)}<label><input type="radio" name="paymentmethod" value="{$gateway.sysname}" id="pgbtn{$num}" {if $selectedgateway eq $gateway.sysname} checked{/if} /> {$gateway.name}</label> {elseif $clientsdetails.groupid neq "1"} <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> {/if} {/foreach} you'll have to adjust the code for the client group(s) you want to filter, but it should work. 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.