Zen Cart Logo
Forums / Bug Reports / [Done v1.5.0] Small code change to authorizenet_aim.php

[Done v1.5.0] Small code change to authorizenet_aim.php

Locked

Views: 899

Results 1 to 2 of 2
This thread is locked. New replies are disabled.
21 Jul 2011, 8:31 AM
#1
retched avatar

retched

Totally Zenned

Join Date:
Jun 2007
Location:
Bronx, New York, United States
Posts:
949
Plugin Contributions:
3

[Done v1.5.0] Small code change to authorizenet_aim.php

This really isn't even necessary unless you want to W3C most of the pages. (It's just one small comma, it's possible it doesn't do anything. I only notice it since I'm working on a template and working on getting it W3C Compliant as best as possible.)

In zencart/includes/modules/payment/authorizenet_aim.php around line 197 the follow change should be made:

Before:

      $selection['fields'][] = array('title' => MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_CVV,
                                   'field' => zen_draw_input_field('authorizenet_aim_cc_cvv', '', 'size="4", maxlength="4"' . ' id="'.$this->code.'-cc-cvv"' . $onFocus . ' autocomplete="off"') . ' ' . '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_CVV_HELP) . '\')">' . MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_POPUP_CVV_LINK . '</a>',
                                   'tag' => $this->code.'-cc-cvv');
```After: 
```php
      $selection['fields'][] = array('title' => MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_CVV,
                                   'field' => zen_draw_input_field('authorizenet_aim_cc_cvv', '', 'size="4" maxlength="4"' . ' id="'.$this->code.'-cc-cvv"' . $onFocus . ' autocomplete="off"') . ' ' . '<a href="javascript:popupWindow(\'' . zen_href_link(FILENAME_POPUP_CVV_HELP) . '\')">' . MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_POPUP_CVV_LINK . '</a>',
                                   'tag' => $this->code.'-cc-cvv');
21 Jul 2011, 3:29 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Done v1.5.0] Small code change to authorizenet_aim.php

Yes, a small change, but is more correct.