Merge pull request #2409 from vivek-webkul/patch-27
[Fixed: Issue #2399 has been resolved.]
This commit is contained in:
commit
f8ef2d85e8
|
|
@ -1,4 +1,11 @@
|
|||
@if ($product->type == 'bundle')
|
||||
@push('css')
|
||||
<style type="text/css">
|
||||
.bundle-options-wrapper .bundle-option-list {
|
||||
border: unset;
|
||||
}
|
||||
</style>
|
||||
@endpush
|
||||
|
||||
{!! view_render_event('bagisto.shop.products.view.bundle-options.before', ['product' => $product]) !!}
|
||||
|
||||
|
|
@ -51,11 +58,11 @@
|
|||
|
||||
<script type="text/x-template" id="bundle-option-item-template">
|
||||
<div class="bundle-option-item">
|
||||
<div :class="`control-group ${errors.has('bundle_options[' + option.id + '][]') ? 'has-error' : ''}`">
|
||||
<div :class="`control-group custom-form mb10 ${errors.has('bundle_options[' + option.id + '][]') ? 'has-error' : ''}`">
|
||||
<label :class="[option.is_required ? 'required' : '']">@{{ option.label }}</label>
|
||||
|
||||
<div v-if="option.type == 'select'">
|
||||
<select class="control" :name="'bundle_options[' + option.id + '][]'" v-model="selected_product" v-validate="option.is_required ? 'required' : ''" :data-vv-as="option.label + '"'">
|
||||
<select class="control styled-select" :name="'bundle_options[' + option.id + '][]'" v-model="selected_product" v-validate="option.is_required ? 'required' : ''" :data-vv-as="option.label + '"'">
|
||||
<option value="">{{ __('shop::app.products.choose-selection') }}</option>
|
||||
<option v-for="(product, index2) in option.products" :value="product.id">
|
||||
@{{ product.name + ' + ' + product.price.final_price.formated_price }}
|
||||
|
|
@ -64,15 +71,14 @@
|
|||
</div>
|
||||
|
||||
<div v-if="option.type == 'radio'">
|
||||
<span class="radio" v-if="! option.is_required">
|
||||
<span class="radio col-12 ml5" v-if="! option.is_required">
|
||||
<input
|
||||
type="radio"
|
||||
:name="'bundle_options[' + option.id + '][]'"
|
||||
v-model="selected_product"
|
||||
value="0" />
|
||||
|
||||
<label class="radio-view" :for="'bundle_options[' + option.id + '][]'"></label>
|
||||
|
||||
<label class="radio-view no-padding" :for="'bundle_options[' + option.id + '][]'"></label>
|
||||
{{ __('shop::app.products.none') }}
|
||||
</span>
|
||||
|
||||
|
|
@ -94,7 +100,7 @@
|
|||
</div>
|
||||
|
||||
<div v-if="option.type == 'checkbox'">
|
||||
<span class="checkbox" v-for="(product, index2) in option.products">
|
||||
<span class="checkbox col-12 ml5" v-for="(product, index2) in option.products">
|
||||
<input type="checkbox" :name="'bundle_options[' + option.id + '][]'" :value="product.id" v-model="selected_product" v-validate="option.is_required ? 'required' : ''" :data-vv-as="'"' + option.label + '"'" :id="'bundle_options[' + option.id + '][]'">
|
||||
|
||||
@{{ product.name }}
|
||||
|
|
@ -106,7 +112,7 @@
|
|||
</div>
|
||||
|
||||
<div v-if="option.type == 'multiselect'">
|
||||
<select class="control" :name="'bundle_options[' + option.id + '][]'" v-model="selected_product" v-validate="option.is_required ? 'required' : ''" :data-vv-as="'"' + option.label + '"'" multiple>
|
||||
<select class="control styled-select" :name="'bundle_options[' + option.id + '][]'" v-model="selected_product" v-validate="option.is_required ? 'required' : ''" :data-vv-as="'"' + option.label + '"'" multiple>
|
||||
<option v-for="(product, index2) in option.products" :value="product.id">
|
||||
@{{ product.name + ' + ' + product.price.final_price.formated_price }}
|
||||
</option>
|
||||
|
|
|
|||
Loading…
Reference in New Issue