Setting "United States" as default country on credit card transactions

Discussion in 'Payments processing' started by nytix2, Aug 3, 2009.

  1. nytix2

    nytix2 aMember Pro Customer

    Joined:
    Jul 28, 2003
    Messages:
    41
    Lets face it, cutting down on excess user input translates into more sales.
    99.99% of my sales are with US based credit cards, so why do i need to ask everyone the same question about their location.

    Does anyone know of a way to set "United States" as the default entry on cc.php ?
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    This depends on version that you have.
  3. nytix2

    nytix2 aMember Pro Customer

    Joined:
    Jul 28, 2003
    Messages:
    41
    Software version info
    aMember 3.1.8PRO
    PHP 4.3.6 (apache)
    OS Linux www.nytix.com 2.4.21-5...
    MySQL 3.23.58
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    Ok. Place this at the top of /amember/templates/cc/cc_info.html:
    Code:
    {php}
        if(!$this->_tpl_vars[cc_address][cc_country]){
            $this->_tpl_vars[cc_address][cc_country] = 'US';
        }
    {/php}
    
  5. jackgordon

    jackgordon aMember Pro Customer

    Joined:
    Mar 23, 2009
    Messages:
    269
    I am interested in this as well, but that suggestion did not work for me :(

    It had no effect.
  6. nytix2

    nytix2 aMember Pro Customer

    Joined:
    Jul 28, 2003
    Messages:
    41
    Worked for me ! Thanks Alex.

    JackGordon - What version of aMember do you have ?
  7. jackgordon

    jackgordon aMember Pro Customer

    Joined:
    Mar 23, 2009
    Messages:
    269
    3.1.8PRO

    I'll have to give it another try...

Share This Page