Support

Home Forums Event Espresso Premium Number of line items submitted not allowed

Number of line items submitted not allowed

Posted: January 7, 2016 at 1:24 pm

Viewing 6 reply threads


SixuLLC

January 7, 2016 at 1:24 pm

I have a client who has been trying to register 35 people for an event. They are getting the error below. The max group registration is set at 60 so that is not the problem. Any idea what is causing this?

*The following errors have occurred.*

(271) The number of line items submitted is not allowed. A maximum of 30
line items can be submitted.


SixuLLC

January 7, 2016 at 1:29 pm

Looks like it might be the way the Authorize.net gateway was implemented. I would say this is a bug since people may want to have more than 30 attendees in one order. According to the Authorize.net API documentation:

The merchant may submit up to 30 distinct line items containing itemized order information per transaction.

Is there a fix in EE3 for this?


Josh

  • Support Staff

January 7, 2016 at 1:33 pm

Hi there,

It turns out that’s an error from Authorize.net. What we can do is look into a way to send fewer line items than 30 when there are more than 30 tickets as a workaround. May I ask which version of Event Espresso you’re using?


SixuLLC

January 7, 2016 at 1:49 pm

From what I can figure out, the Authorize.net SIM payment gateway is sending all the attendees as line items to Authorize.net. Authorize.net only allows 30 lines to be sent. Other posts online have mentioned the x_line_item variable can be removed from the transaction. Any suggestions EE?


Josh

  • Support Staff

January 7, 2016 at 1:52 pm

May I ask which version of Event Espresso you’re using?


SixuLLC

January 13, 2016 at 3:22 pm

Hi Josh. Sorry for my delayed response. Your message went to my spam.

This site is running Event Espresso 3.1.37.5.P


Josh

  • Support Staff

January 13, 2016 at 4:20 pm

This is a good example of an edge case bug because it only occurs if you capture attendee details for every attendee in the order.

You can set a limit to the number of line items by opening up the event-espresso/gateways/authnet/Authorize.php file then look for the look starting around line 144. This is the loop:

foreach ($this->_additional_line_items as $value) {
	echo "<input type=\"hidden\" name=\"x_line_item\" value=\"$value\"/>\n";
}

You replace the loop with this:

$i=0;
foreach ($this->_additional_line_items as $value) {
	echo "<input type=\"hidden\" name=\"x_line_item\" value=\"$value\"/>\n";
	$i++;
	if( $i==30 ) break;
}

Then you can copy the authnet folder over to /wp-content/uploads/espresso/gateways so your change doesn’t get lost on an update.

Viewing 6 reply threads

The support post ‘Number of line items submitted not allowed’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso