Created
August 10, 2021 07:48
-
-
Save Sentinel-7/f69f75c3e0ec16e2f0a2d9c0b334b252 to your computer and use it in GitHub Desktop.
Click a + input radio checked
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
$(document).ready(function() { | |
miniShop2.Callbacks.add('Order.getcost.response.success', 'Order_submit_response_success', function(responce) { | |
var cost = responce.data['cost'], | |
min_price = {'price_config' | config}; | |
if (cost < min_price) { | |
miniShop2.Callbacks.add('Order.submit.before', 'Order_submit_before', function() { | |
miniShop2.Message.error('Недостаточная сумма заказа, заказ отправляется от ' + min_price + ' {'ms2_frontend_currency' | lexicon}!'); | |
$('#error_message').text('Недостаточная сумма заказа, заказ отправляется от ' + min_price + ' {'ms2_frontend_currency' | lexicon}!'); | |
return false; | |
}); | |
} | |
}); | |
$('a[data-parent="#accordion"]').on('click', function(){ | |
$('a[data-parent="#accordion"]').find('input').attr('checked', false); | |
$(this).find('input').attr('checked', true); | |
}); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment