Каталог файловtilda-cart-1.1.js
4001 4002function tcart__changeSubmitStatus() {4003 var newDeliveryActive = window.tcart_newDeliveryActive;4004 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551)4005 // @ts-expect-error ST-2949_14006 var minOrderSetted = window.tcart_minorder > 0;4007 // @ts-expect-error ST-2949_14008 var minQuantitySetted = window.tcart_mincntorder > 0;4009 var customDelivery = document.getElementById('customdelivery');4010 4011 function hideMinOrders() {4012
История файла и сравнение версий
var minOrders = document.querySelectorAll('.t706__cartwin-prodamount-minorder');
4014 Array.prototype.forEach.call(minOrders, function (element) { 4015 element.style.display = 'none'; 4018 function showMinOrders() { 4019 var minOrders = document.querySelectorAll('.t706__cartwin-prodamount-minorder'); 4021 Array.prototype.forEach.call(minOrders, function (element) { 4022 element.style.display = 'block'; 4026 function hideMinCountOrders() { 4027 var minOrders = document.querySelectorAll('.t706__cartwin-prodamount-mincntorder'); 4029 Array.prototype.forEach.call(minOrders, function (element) { 4030 element.style.display = 'none'; 4033 function showMinCountOrders() { 4034 var minOrders = document.querySelectorAll('.t706__cartwin-prodamount-mincntorder'); 4036 Array.prototype.forEach.call(minOrders, function (element) { 4037 element.style.display = 'block'; 4041 if (newDeliveryActive) { 4042 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) 4043 // @ts-expect-error ST-2949_1 4044 if (window.tcart.emptyDeliveryServices) { 4045 // @ts-expect-error ST-2949_1 4046 window.tcart__errorHandler.show(); 4047 tcart__blockSubmitButton(); 4052 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) 4053 // @ts-expect-error ST-2949_1 4054 if (window.tcart.prodamount_withdiscount > 0) { 4055 // @ts-expect-error ST-2949_1 4056 prodAmount = window.tcart.prodamount_withdiscount; 4058 // @ts-expect-error ST-2949_1 4059 typeof window.tcart.prodamount_withdyndiscount !== 'undefined' && 4060 window.t_cart__discounts && 4061 window.t_cart__discounts.length > 0 4063 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) 4064 // @ts-expect-error ST-2949_1 4065 prodAmount = window.tcart.prodamount_withdyndiscount; 4067 // @ts-expect-error ST-2949_1 4068 typeof window.tcart.prodamount_withdiscount !== 'undefined' && 4069 // @ts-expect-error ST-2949_1 4070 window.tcart.promocode && 4071 // @ts-expect-error ST-2949_1 4072 window.tcart.promocode.message === 'OK' 4074 // @ts-expect-error ST-2949_1 4075 prodAmount = window.tcart.prodamount_withdiscount; 4077 // @ts-expect-error ST-2949_1 4078 prodAmount = window.tcart.prodamount; 4081 if (minOrderSetted && minQuantitySetted) { 4082 if (minOrderSetted) { 4083 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) 4084 // @ts-expect-error ST-2949_1 4085 if (prodAmount >= window.tcart_minorder) { 4092 if (minQuantitySetted) { 4093 // TODO ST-2949_1: missing properties on Window/DOM/data objects (TS2339, TS2551) 4094 // @ts-expect-error ST-2949_1 4095 if (window.tcart.total >= window.tcart_mincntorder) { 4096 hideMinCountOrders(); 4098 showMinCountOrders();