|

restrict payment method according to country?
Posted 06 March 2007 - 07:07 PM #1
I'm trying to find a way to limit credit card payment to only people living in the US, and give international customers other methods to complete payment. Anyone know how I could do this?
CS-Cart v. 1.3.4 sp2
Dell PowerEdge Servers and Server Parts & Accessories
Posted 06 March 2007 - 11:04 PM #2
Did you know a targeted e-mail marketing campaign can bring conversion rates up to 3.9%? By using reliable e-mail marketing software you can upsell to existing customers on a tight budget. If you are not using e-mail marketing you are missing out big time. I recommend and use Aweber.
Posted 07 March 2007 - 01:01 AM #3
B
Posted 07 March 2007 - 11:56 AM #4
Did you know a targeted e-mail marketing campaign can bring conversion rates up to 3.9%? By using reliable e-mail marketing software you can upsell to existing customers on a tight budget. If you are not using e-mail marketing you are missing out big time. I recommend and use Aweber.
Posted 01 September 2008 - 03:01 PM #5
Appreciate if anyone could help me in implement the proper codes.
Thanks
{foreach from=$payment_methods item="pm" name="pay"}
<tr style="height: 20px;">
<td>
<input type="radio" id="payment_method_{$pm.payment_id}" name="payment_id" value="{$pm.payment_id}"
{if $pm.payment_id == 25 || bill-to.country==singapore || ship-to.country== singapore}
{if $cart.payment_id == $pm.payment_id || (!$cart.payment_id && $smarty.foreach.pay.first)}
{assign var="selected_payment_id" value=$pm.payment_id}
{assign var="selected_payment_surcharge_value" value=$pm.surcharge_value|default:'0'}
checked="checked"
{/if}
onclick="{if $settings.General.one_page_checkout == 'Y'}
{if !'HTTPS'|defined && $pm.protocol == 'https'} order_form.use_ajax = false;
{/if}sf_form.clear_onsubmit(); order_form.submit();{/if} fn_set_payment_surcharges('{$cart.total}', '{$pm.surcharge_value|default:'0'}')"
{/if} /></td>
<td><label for="payment_method_{$pm.payment_id}"><b>{$pm.payment}</b></label></td>
<td> </td>
<td>{$pm.description}</td>
</tr>
{/foreach}
Posted 02 September 2008 - 10:58 AM #6
{if $pm.payment_id == 25 || $cart.user_data['b_country'] == 'SGP' || $cart.user_data['s_country'] == 'SGP'}
Posted 20 April 2011 - 08:41 AM #8
Sorry to resurrect an old thread but I need to do this asap
I need to restrict Paypal to UK only, I've tried adding this to the checkbox code but it still shows
{if $pm.payment_id == 12 && $cart.user_data['b_country'] == 'gbp' && $cart.user_data['s_country'] == 'gbp'}
Can anyone help? I don't want to go down the localizations route as it will mean half rebuilding the site!
Thank you
Lee
Posted 20 April 2011 - 01:53 PM #9
Thanks

Posted 20 April 2011 - 03:37 PM #10
http://forum.cs-cart...7886#post117886
Didn't realise when I posted this was a version one area of the forum
Lee
Posted 20 April 2011 - 04:17 PM #11
Posted 20 April 2011 - 04:19 PM #12
But I have paypal banners on my site so don't want it to just disappear as users may be confused
Lee