try to refresh total with recalculation by delivery and delivery_type
This commit is contained in:
@@ -13,7 +13,8 @@
|
||||
@include('components.form.radios.icheck', [
|
||||
'name' => 'delivery_type_id',
|
||||
'val' => $delivery_type_id,
|
||||
'check' => false,
|
||||
'id' => 'delivery_type_' . $delivery_type_id,
|
||||
'class' => 'delivery_type',
|
||||
])
|
||||
</td>
|
||||
<td>
|
||||
@@ -26,3 +27,15 @@
|
||||
@endforeach
|
||||
</table>
|
||||
@endif
|
||||
|
||||
@push('js')
|
||||
<script>
|
||||
$('.delivery_type').click(function() {
|
||||
var deliveryId = $(this).val();
|
||||
var deliveryTypeId = $('input[name=delivery_type_id]').val()
|
||||
console.log(deliveryId);
|
||||
console.log(deliveryTypeId);
|
||||
refreshBasketTotal(deliveryId, deliveryTypeId);
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
|
||||
Reference in New Issue
Block a user