Корзина
Корзина пуста
Скидка 5% на первую покупку Бесплатная доставка! Оплата посылки после примерки. Перед визитом в магазин - назначайте время.

All American Clothing

Эти джинсы — без заклепок, с застежкой-молнией и с ромбовидной вставкой в промежности для улучшения комфорта и долговечности! 
Эти джинсы сделаны в США

Фильтры
Категория:
Цена (Руб.):
-
Старая цена: 11970 Руб.
Цена: 9970 Руб.
Производитель: All American Clothing
НА ЗАКАЗ. ОПЛАТА ЧАСТЯМИ
Copyright MAXXmarketing GmbH
JoomShopping Download & Support
document.addEventListener("DOMContentLoaded", function () { const cartRows = document.querySelectorAll("tr.jshop_prod_cart"); if (cartRows.length === 0) return; // === ЭЛЕМЕНТЫ ДОСТАВКИ === const method8 = document.getElementById("shipping_method_8")?.closest(".name"); const method2 = document.getElementById("shipping_method_2")?.closest(".name"); const input8 = document.getElementById("shipping_method_8"); const input2 = document.getElementById("shipping_method_2"); // === ЛОГИКА "в наличии / под заказ" === const attributes = document.querySelectorAll(".jshop_cart_attribute .value"); let isAvailable = false; let isPreorder = false; attributes.forEach(attr => { const value = attr.textContent.trim().toLowerCase(); if (value.includes("в наличии")) isAvailable = true; if (value.includes("под заказ")) isPreorder = true; }); // === Отображение способов доставки === if (method8 && method2) { if (isAvailable && isPreorder) { method8.style.display = "block"; // показываем обе доставки method2.style.display = "block"; } else if (isAvailable) { method8.style.display = "block"; // только в наличии method2.style.display = "none"; } else if (isPreorder) { method8.style.display = "none"; method2.style.display = "block"; // только под заказ } else { method8.style.display = "none"; method2.style.display = "none"; } } // === Автоматически выбираем первую доступную доставку === const visibleShippings = [...document.querySelectorAll("input[name='sh_pr_method_id']")].filter(input => { return input.closest(".name")?.style.display !== "none"; }); if (visibleShippings.length > 0) { visibleShippings.forEach(input => input.checked = false); visibleShippings[0].checked = true; } }); document.addEventListener('DOMContentLoaded', function () { document.querySelectorAll('input[type="radio"]').forEach(function (radio) { radio.classList.add('form-check-input'); }); });