Files
wyczarujprezent.pl/modules/thecheckout/views/js/parsers/vp_omniva.js
2024-10-28 22:14:22 +01:00

24 lines
686 B
JavaScript

/**
* NOTICE OF LICENSE
*
* This source file is subject to the Software License Agreement
* that is bundled with this package in the file LICENSE.txt.
*
* @author Peter Sliacky (Zelarg)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
tc_confirmOrderValidations['vp_omniva'] = function() {
if (
$('.vp_omniva select[name=terminals]').is(':visible') &&
'0' == $('.vp_omniva select[name=terminals]').val()
) {
var shippingErrorMsg = $('#thecheckout-shipping .inner-wrapper > .error-msg');
shippingErrorMsg.show();
scrollToElement(shippingErrorMsg);
return false;
} else {
return true;
}
}