Phone & Billing Company on cc_info.html

Discussion in 'Templates customization' started by mjmtaiwan, Oct 4, 2009.

  1. mjmtaiwan

    mjmtaiwan aMember Pro Customer

    Joined:
    Aug 22, 2006
    Messages:
    45
    How can we eliminate the field for phone number and billing company on the cc_info.html page.

    I don't mean just drop the html which is simple... how to we configure it so that we don't need it.

    I see:

    {if $config.cc_phone}
    <tr>
    <th><b>#_TPL_CC_INFO_PHONE# *</b><br />
    <div class="small">#_TPL_CC_INFO_PHONENUM|<br />|<i>|</i># </div></th>
    <td>
    <input type="text" class="required" name="cc_phone" size="15" maxlength="15" value="{$cc_address.cc_phone|escape}" />
    </td>
    </tr>
    {/if}

    I want to change that "if" to No but its not in the control panel as far as I can see and the manual is, as usual, no help.
  2. everbatim

    everbatim Member

    Joined:
    Dec 19, 2007
    Messages:
    65
    What you could do is change the input type to hidden and then specify a default value. What you would end up with is a hidden field that has a pre-populated number in it (like 555-555-5555) that the user could not change during checkout, actually they wouldn't even see the field. You would just need to be sure that your CC processor doesn't require that number to verify the charge.
  3. kengary

    kengary aMember Pro Customer

    Joined:
    Nov 13, 2008
    Messages:
    231
    I think that setting must be in rconfig.inc.php which is one file you cannot edit unfortunately.
  4. jbround39

    jbround39 aMember Pro Customer

    Joined:
    Mar 20, 2008
    Messages:
    61
    This can be edited without touching the html or the rconfig. Just go to the payment plugin inc.php. For example, if you're using authorize_aim, go to:

    amember/plugins/payment/authorize_aim/authorize_aim.inc.php and replace 'phone' => 2, with 'phone' => 0.

    You can do the same thing for other fields also (like the CVV code, the company, and first name).

Share This Page