We have migrated to a new support system. You can access your old tickets here

Techjoomla Forum

  1. stuart roberts
  2. JTicketing
  3. Thursday, 19 May 2016
hi

i wonder if some one can help me, when you create an event on jomsocial in ticket type the limited/unlimited seat drop down menu selection, how can i make "unlimited seats" default selection.

here is the code for it, can someone help me please.

<pre class="line-numbers"><code class="language-markup">&lt;!--ticket_type_unlimited Seats--&gt;
&lt;div class="form-group jticketing-form-group" &gt;
&lt;div class="jticketing-controls col-lg-10 col-md-10 col-sm-9 col-xs-12 col-lg-offset-2 col-md-offset-2 col-sm-offset-3 jt-input-text"&gt;
&lt;div class=""&gt;
&lt;?php
if ($tickettype-&gt;unlimited_seats)
{
$avalaible_class="ticket_type_available_field_hide";

echo JHtml::_('select.genericlist', $unlimited_seats_options, "ticket_type_unlimited_seats[]", 'class="chzn-done jticket_access" onchange="togglefield(this,\'ticket_type_available_field\')" data-chosen="com_jticketing"', "value", "text", $tickettype-&gt;unlimited_seats,"ticket_type_unlimited_seats_".$j);
}
else
{
$avalaible_class="";
echo JHtml::_('select.genericlist', $unlimited_seats_options, "ticket_type_unlimited_seats[]", 'class="chzn-done jticket_access" onchange="togglefield(this,\'ticket_type_available_field\')" data-chosen="com_jticketing"', "value", "text",1,"ticket_type_unlimited_seats_".$j);

}
?&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;!--ticket_type_unlimited Seats DIV ENDS--&gt;[code type="markup"]</code></pre>