Финальная очистка кода order_form.html
This commit is contained in:
@@ -1889,7 +1889,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
const kitField = form.querySelector('[name$="-product_kit"]');
|
||||
const priceField = form.querySelector('[name$="-price"]');
|
||||
|
||||
|
||||
const hasProduct = productField && productField.value;
|
||||
const hasKit = kitField && kitField.value;
|
||||
const selectValue = $(selectElement).val();
|
||||
@@ -1898,7 +1897,6 @@ document.addEventListener('DOMContentLoaded', function() {
|
||||
// Определяем тип и ID
|
||||
const type = hasProduct ? 'product' : 'kit';
|
||||
const id = hasProduct ? productField.value : kitField.value;
|
||||
const price = priceField ? priceField.value : '';
|
||||
|
||||
// Загружаем данные товара через API
|
||||
const apiUrl = '{% url "products:api-search-products-variants" %}';
|
||||
|
||||
Reference in New Issue
Block a user