X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   When an international customer logs in, having Paypal only (https://forum.x-cart.com/showthread.php?t=13493)

balinor 10-12-2006 07:59 AM

Re: When an international customer logs in, having Paypal only
 
I did just this morning! You want one too? :)

magazine-collector 10-31-2006 11:32 PM

Re: When an international customer logs in, having Paypal only
 
Didn't know if I should start a new thread or not, but my question seems very similar so I thought it'd best be put here---Is there something I can alter in checkout.tpl in my version so that checks/money orders are only offered as a payment method to U.S. based (local) customers and not offered as a payment method for international customers?

As always, thank you in advance!

billstevens 11-13-2006 11:00 PM

Re: When an international customer logs in, having Paypal only
 
The basic mod is working great, anyone have any input on how to further enhance this mod to limit the payment type by both location and membership level. For instance:

International customers that have no membership must use paypal
International customers that have membership = wholesale may use paypal or purchase order.

Thanks in advance.

-Bill

jeeya 12-19-2007 07:18 PM

Re: When an international customer logs in, having Paypal only
 
any one got this working in 4.1.8? Thanks

bsinger 03-19-2008 09:47 AM

Re: When an international customer logs in, having Paypal only
 
Does anyone have this correctly implemented for 4.1.9?

I have been unable to make the correct changes...

zenkisser 03-22-2008 04:47 AM

Re: When an international customer logs in, having Paypal only
 
Hi!

I have a store that is on 4.019, I will pay someone to install this modification with a decent post count to install this for us at a fair price for the code edits as I can't get it perfect. If this request should be referened in the for hire section, our apologies.

Thank you

(please pm if interested)

fireflight 10-07-2008 08:29 AM

Re: When an international customer logs in, having Paypal only
 
Based on dsparks work I was able to get this working in 4.1.9 in the fast lane checkout.

Around line 85 in modules/Fast_Lane_Checkout/checkoutmethod2.tpl find

Code:

<td valign="top" width="70%" style="padding: 0 5px;">
{include file="customer/main/subheader.tpl" title=$lng.lbl_payment_method}
<table cellspacing="0" cellpadding="2" width="100%">
{foreach from=$payment_methods item=payment} 

and change it to:
Code:

<td valign="top" width="70%" style="padding: 0 5px;">
{include file="customer/main/subheader.tpl" title=$lng.lbl_payment_method}
<table cellspacing="0" cellpadding="2" width="100%">
{if $userinfo ne "" and ($userinfo.b_countryname eq "Canada")}
  {assign var="destination" value="L"}
{else}
  {assign var="destination" value="I"}
{/if}
{foreach from=$payment_methods item=payment} 

Then around line 95, you'll find:
Code:

<tr class="TableSubHead"{*cycle values=' class="TableSubHead", '*}{if $payment.is_cod eq "Y"} id="cod_tr{$payment.paymentid}"{/if}>
And change it to:
Code:

<tr class="TableSubHead"{*cycle values=' class="TableSubHead", '*}{if $payment.is_cod eq "Y"} id="cod_tr{$payment.paymentid}"{/if}{if $destination eq "L" and $payment.payment_method eq "Money Order"} style='display: none;'{/if}>

In this case, if the user is Canadian and the payment method is money order, then we don't display the table row.

koz 11-09-2008 10:36 AM

Re: When an international customer logs in, having Paypal only
 
Has anyone tried this with 4.1.11 by chance ? :D/


All times are GMT -8. The time now is 05:25 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.