Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

When an international customer logs in, having Paypal only

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #21  
Old 10-12-2006, 07:59 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

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

I did just this morning! You want one too?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #22  
Old 10-31-2006, 11:32 PM
 
magazine-collector magazine-collector is offline
 

Newbie
  
Join Date: Aug 2006
Posts: 6
 

Default 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!
__________________
Cliff Aliperti
X-Cart Gold 4.0.18
Reply With Quote
  #23  
Old 11-13-2006, 11:00 PM
 
billstevens billstevens is offline
 

Member
  
Join Date: Oct 2004
Posts: 26
 

Default 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
__________________
Bill
X-Cart 4.1.9
Reply With Quote
  #24  
Old 12-19-2007, 07:18 PM
 
jeeya jeeya is offline
 

X-Adept
  
Join Date: May 2003
Location: USA
Posts: 807
 

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

any one got this working in 4.1.8? Thanks
__________________
X-Cart Version 4.1.8
Hosted on Linux
Reply With Quote
  #25  
Old 03-19-2008, 09:47 AM
 
bsinger bsinger is offline
 

Member
  
Join Date: Sep 2004
Posts: 14
 

Default 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...
__________________
http://www.obsstore.com
XCart Gold 4.1.10
Apache
PHP Version 4.3.4
MySQL server 4.0.20-standard
MySQL client 3.23.49
Reply With Quote
  #26  
Old 03-22-2008, 04:47 AM
 
zenkisser zenkisser is offline
 

Member
  
Join Date: Nov 2007
Posts: 27
 

Default 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)
__________________
X-Cart version 4.0.19
3.2 QUAD Core - RHEL 4.0 6 GB RAM
Reply With Quote
  #27  
Old 10-07-2008, 08:29 AM
 
fireflight fireflight is offline
 

Member
  
Join Date: Jun 2008
Posts: 10
 

Exclamation 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.
__________________
Version 4.1.9
Reply With Quote
  #28  
Old 11-09-2008, 10:36 AM
 
koz koz is offline
 

Advanced Member
  
Join Date: Nov 2006
Posts: 88
 

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

Has anyone tried this with 4.1.11 by chance ?
__________________
Version 4.4.3 & 4.2.2
FreeBSD
P4 3.2 4 gig ram 300 gig SATA
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:45 PM.

   

 
X-Cart forums © 2001-2020