mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#1840 Paketlere komisyon oranı eklenmesi
This commit is contained in:
parent
62ce99fa98
commit
5a74488eb8
@ -216,7 +216,18 @@ $(document).ready(function () {
|
||||
price = parseInt(price.replace(/\./g, ''));
|
||||
let decimal = parseInt($(parent).find('.decimal-price').val());
|
||||
|
||||
$(parent).find('input[type=number]').val(parseFloat(price + "." + decimal));
|
||||
const newPrice = parseFloat(price + "." + decimal)
|
||||
let priceInput = $(parent).find('input[type=number]')
|
||||
priceInput.val(newPrice);
|
||||
|
||||
if (priceInput[0].name === 'price') {
|
||||
const event = new CustomEvent('priceChangedEvent', {
|
||||
detail: {
|
||||
newPrice
|
||||
}
|
||||
})
|
||||
document.querySelector('#price').dispatchEvent(event)
|
||||
}
|
||||
});
|
||||
|
||||
// Add dynamic option creation
|
||||
|
||||
@ -293,4 +293,7 @@ return [
|
||||
|
||||
// Select cat
|
||||
'select_category_step_by_step' => 'Select Category Step by Step',
|
||||
|
||||
// New create page
|
||||
'options' => 'Options',
|
||||
];
|
||||
|
||||
@ -58,7 +58,8 @@
|
||||
{{ form.fields.slug|raw }}
|
||||
</div>
|
||||
</div>
|
||||
{{ addBlock('new-ad/fields',{'adv':adv})|raw }}
|
||||
|
||||
{{ addBlock('new-ad/fields', {'adv': adv})|raw }}
|
||||
|
||||
<div class="row form-group select-price{{ setting_value('visiosoft.module.advs::hide_standard_price_field') ? ' d-none' }}">
|
||||
<label class="col-sm-2 col-xs-12">
|
||||
@ -118,7 +119,7 @@
|
||||
|
||||
<div class="row form-group select-options">
|
||||
<label for="selectOptions" class="col-sm-2">
|
||||
Options
|
||||
{{ trans('visiosoft.module.advs::field.options') }}
|
||||
</label>
|
||||
<div class="col-sm-10">
|
||||
<select id="selectOptions" class="form-control options-tags" multiple="multiple"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user