Knowledgebase: Payment Gateways
How to display a certain Payment Gateway (method) for a User Group?
Posted by Lena Kosyakova on 04 May 2009 11:57 AM
You need to open the payment_page.tpl page and put the code like the following one there:


[[Please choose from the following payment methods:]]
<br /><br />

{foreach from=$gateways item=gateway}
{if ($gateway.caption eq "PayPal" && $GLOBALS.current_user.group.id eq "PrivateSeller") || (($gateway.caption eq "Cash Payment" || $gateway.caption eq "PayPal") && $GLOBALS.current_user.group.id eq "Dealer")}
<form action="{$gateway.url}" method="post">

{$gateway.hidden_fields}
<input type='submit' value='{$gateway.caption}'style="width:150px; margin-bottom:5px;" />

</form>
{/if}

{/foreach}

In this case Private Sellers will use PayPal gateway and Dealers will be able to use PayPal and Cash Payment.


(388 votes)
This article was helpful
This article was not helpful

Comments (0)
Post a new comment 
 
Full Name:
Email:
Comments:
CAPTCHA Verification 
 
Please enter the text you see in the image into the textbox below. This is required to prevent automated registrations and form submissions.

Help Desk Software by Kayako Fusion