add payment method

This commit is contained in:
2016-01-17 16:21:37 +01:00
parent abb69ce92d
commit d043759b1d
20 changed files with 751 additions and 168 deletions

View File

@@ -40,6 +40,15 @@ if ( isset($receptionForm->card) ){
$options['customer_cart'] = $model->customerCart;
}
$discountItems = [];
foreach ($discounts as $d){
$item = [];
$item['id_discount'] = $d->id_discount;
$item['value'] = $d->value;
$discountItems[] = $item;
}
$options['discounts'] = $discountItems;
$this->registerJs ( 'new TicketSell( '. json_encode($options).');' );
?>
<div class="ticket-create">