$p->setVar("AMOUNT", $amountValue);
}
+ // set submit functionality
$p->setVar("linkDELETEROW", "index.php?mode=cart&action=deleteEvent&event=".$event->getEventId());
$p->setVar("fieldAMOUNT", "ms_amount[]");
$tablerows .= $p->parse($cartRowTmpl);
}
- // if no tickets in cart set EMPTYROWS
+ // if no tickets in cart set EMPTYROWS and disable order button
if (count($cart->getTickets()) == 0) {
$tablerows = $p->getVar("EMPTYROWS");
+ $p->setVar("attribDISABLED", "disabled=\"disabled\"");
+ } else {
+ $p->setVar("attribDISABLED", "");
}
$p->setVar("TABLEROWS", $tablerows);
<div class="ms_ButtonArea">
<input type="submit" id="ms_button_save" name="@buttonSAVE@" value="Aktualisieren" />
-<input type="submit" id="ms_button_order" name="@buttonORDER@" value="Zur Bestellung" />
+<input type="submit" id="ms_button_order" name="@buttonORDER@" @attribDISABLED@ value="Zur Bestellung" />
</div>
#if:IS_HIDDEN==true
@HIDDENAREA@