Merge pull request #2409 from vivek-webkul/patch-27

[Fixed: Issue #2399 has been resolved.]
This commit is contained in:
Jitendra Singh 2020-02-11 11:09:32 +05:30 committed by GitHub
commit f8ef2d85e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 7 deletions

View File

@ -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 + '&quot;'">
<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 + '&quot;'">
<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="'&quot;' + option.label + '&quot;'" :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="'&quot;' + option.label + '&quot;'" multiple>
<select class="control styled-select" :name="'bundle_options[' + option.id + '][]'" v-model="selected_product" v-validate="option.is_required ? 'required' : ''" :data-vv-as="'&quot;' + option.label + '&quot;'" multiple>
<option v-for="(product, index2) in option.products" :value="product.id">
@{{ product.name + ' + ' + product.price.final_price.formated_price }}
</option>