- Пол
- Мужской, Женский
                              - Бренд
- NIKE
                              - Высота
- Средние
                              - Материал
- Кожа, Текстиль
                              - Цвет
- Зеленый, Белый
                              - Сезон
- Демисезон
 
                         
                        
                        
                        
 ';
                                                                                                                                        $val.after(error_html);
                                                                                                                                        error = true;
                                                                                                                                }
                                                                                                                                break;
                                                                                                                        case 'tel':
                                                                                                                        case 'text':
                                                                                                                                if($val.val() == ''){
                                                                                                                                        error_text = 'Пожалуйста заполните поле';
                                                                                                                                        let error_html = '
' + error_text + '
';
                                                                                                                                        $val.after(error_html);
                                                                                                                                        error = true;
                                                                                                                                }
                                                                                                                                break;
                                                                                                                }
                                                                                                        });
                                                                                                        if(error) return false;
                                                    $.ajax({
                                                        url: 'index.php?route=checkout/cart/clear',
                                                        success: function () {
                                                            $.ajax({
                                                                url: 'index.php?route=checkout/cart/add',
                                                                type: 'post',
                                                                data: {product_id: product_id, quantity: (typeof (quantity) != 'undefined' ? quantity : 1), option: options},
                                                                dataType: 'json',
                                                                success: function (json) {
                                                                    $(button).closest('#quick_checkout_form_p').submit();
                                                                },
                                                                error: function (xhr, ajaxOptions, thrownError) {
                                                                    alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText);
                                                                }
                                                            });
                                                        },
                                                    });
                                                });
                                            });