add payment method
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user