View Single Post
  #2  
Old 10-03-2012, 08:17 AM
 
joss joss is offline
 

X-Cart team
  
Join Date: Feb 2009
Posts: 60
 

Default Re: limiting to 30 line items

There is a typo in the script, X-Payments counts items up to 31, instead of 30 and thus the error occurs.

To fix it, you should modify <xp-dir>/lib/XPay/Module/AuthorizeNet.php file:

- find this line:

--------------------------------------------------------
while ($lineItemCount++ < 30 && $items->getNext()) {
--------------------------------------------------------


- and change 30 to 29, so that it's:


--------------------------------------------------------
while ($lineItemCount++ < 29 && $items->getNext()) {
--------------------------------------------------------
__________________
joss@x-cart.com
Reply With Quote