Jump to content

djfactory

Новичок
  • Content Count

    28
  • Joined

  • Last visited

Community Reputation

0 Обычный

About djfactory

  • Rank
    Пользователь

Recent Profile Visitors

1,192 profile views
  1. Добрый день. Есть ли у вашего фильтра такая возможность- в поле атрибута можно указать два значения через ; и фильтр посчитает их как два разных, например "синий;красный". Если есть то как это реализовано?
  2. Ваш фильтр я так понимаю не создает СЕО страницы с description и текстом???
  3. Добрый день. Есть модуль под версия 2.3 Ищу кто сможет на платной основе адаптировать его для 2.1 Что делает модуль- Модуль позволяет покупателю подписаться на уведомление о поступлении товара. Уведомление покупателю будет отправляться на E-mail и по СМС при помощи сервиса SMS.RU. Если товара или выбранной опции нет на складе, то кнопка "Купить" изменяется на "Уведомить". Модуль отображает кнопку "Уведомить" на всех стандартных модулях и страницах с товарами. К примеру в базе есть два статуса при 0- Нет в наличии Под заказ Кнопку уведомить вместо купить нужно вывести только на статус нет в наличии
  4. Добрый день. Подскажите- Как добавить фильтр по расположению и тегу товара в админке???
  5. Спасибо. А как добавить что б писало в начале Код товара и Производитель?
  6. Добрый день. Подскажите как в начало описания добавить модель и производителя. В шаблоне product.tpl прописано <?php echo $text_model; ?> <?php echo $model; ?></li><li><?php echo $text_manufacturer; ?> <?php echo $manufacturer; ?></li> и во всех карточках на сайте выводит. Но при выгрузке фида данный код выгрузка игнорирует
  7. Добрый день. Подскажите пожалуйста как добавить в начало описания товара модель и производителя для всех карточек. Как я понимаю нужно это прописать в шаблон product.tpl
  8. Пример https://tvoedetstvo.ru/igrushki/syuzhetno-rolevye-igry/bytovaya-texnika-i-posuda/312102-smoby-shokoladnaya-fabrika Здесь все ок https://tvoedetstvo.ru/igrushki/syuzhetno-rolevye-igry/detskie-instrumenty-i-masterskie/360101-smoby-kejs-dlya-instrumentov-black-amp-decker Здесь идет копирование
  9. Добрый день. Помогите решить проблему- в карточке товара во вкладке характеристики идет дубль атрибутов. Где то по 3 раза где то 5 раз. Проблему решить немогу уже долго. Обыскался((( Сайт tvoedetstvo.ru Прикрепил файл шаблона карточки товара product.tpl
  10. Подскажите как в этом модуле проделать тоже самое. <div id="popup-quickorder"> <div class="popup-heading"><?php echo isset($config_title_popup_quickorder[$lang_id]) ? $config_title_popup_quickorder[$lang_id]['config_title_popup_quickorder'] : ''; ?></div> <div class="popup-center"> <form id="fastorder_data" enctype="multipart/form-data" method="post"> <?php if($config_general_image_product_popup !='1') { ?> <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6"> <div class="product-image"> <div class="product_image_fastorder text-center"> <img class="img" src="<?php echo $thumb; ?>" alt="<?php echo $heading_title; ?>"> </div> <div class="additional owl-carousel"> <?php if($images){ ?> <div class="image-additional"><img class="hover" rel="<?php echo $thumb;?>" src="<?php echo $small; ?>"></div> <?php foreach ($images as $img) { ?> <div class="item"> <img class="hover" rel="<?php echo $img['popup'];?>" src="<?php echo $img['thumb'];?>"> </div> <?php } ?> <?php } ?> </div> </div> <script> $('.additional').owlCarousel({ itemsCustom : [ [0, 1], [75, 1], [150, 2], [300, 3], [500, 4], [767, 4], [768, 3], [982, 3], [1600, 3] ], navigation: true, pagination:false, navigationText: ['<div class="btn btn-carousel-quickorder next-prod"><i class="fa fa-angle-left arrow"></i></div>', '<div class="btn btn-carousel-quickorder prev-prod"><i class="fa fa-angle-right arrow"></i></div>'], }); $(function(){ $(".product-image").each(function (indx, el){ var image = $(".img", el), next = $(el).parent(); var oldsrc; $(".hover", next).hover(function (){ var newsrc = $(this).attr("rel"); image.attr({src: newsrc}); }); $(".product-image").hover(function (){oldsrc = image.attr('src');}, function(){ image.attr({src: oldsrc}); }) }); }); </script> <style> </style> </div> <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6"> <div class="well well-sm products" style="margin-top:10px;"> <div class="product"> <div class="row"> <div class="col-xs-12 text-center"> <div class="product-name"> <?php echo $heading_title; ?> </div> </div> <div class="col-xs-6 text-center"> <div class="quantity_quickorder quick-cell-one"> <div class="quick-cell-content-one pquantity"> <div class="input-group popup-quantity"> <span class="input-group-btn"> <input class="btn btn-update-popup" type="button" id="decrease_quickorder" value="-" onclick="btnminus_quickorder('1');recalculateprice_quickorder();" /> </span> <input type="text" class="form-control input-sm qty_quickorder" name="quantity" id="htop_quickorder" size="2" value="1" /> <span class="input-group-btn"> <input class="btn btn-update-popup" type="button" id="increase_quickorder" value="+" onclick="btnplus_quickorder();recalculateprice_quickorder();" /> </span> </div> </div> </div> <?php if (!$special) { ?> <script type="text/javascript"> var yaParams = { order_id: "<?php echo $this->session->data['order_id']+1; ?>", order_price: "<?php echo $product['price']; ?>", currency: "RUR", exchange_rate: 1, goods: [] }; yaParams.goods [0] = { id: "1", name: "<?php echo $product['name']; ?>", price: "<?php echo $product['price']; ?>", quantity: 1 } function btnminus_quickorder(a){ document.getElementById("htop_quickorder").value>a?document.getElementById("htop_quickorder").value--:document.getElementById("htop_quickorder").value=a; } function btnplus_quickorder(){ document.getElementById("htop_quickorder").value++; }; </script> <?php } else { ?> <script type="text/javascript"> function btnminus_quickorder(a){ document.getElementById("htop_quickorder").value>a?document.getElementById("htop_quickorder").value--:document.getElementById("htop_quickorder").value=a; } function btnplus_quickorder(){ document.getElementById("htop_quickorder").value++; }; </script> <?php } ?> </div> <div class="col-xs-6 text-center quick-cell-one"> <div class="quick-cell-content-one"> <?php if (!$special) { ?> <div class="price_fast"><span id="formated_price_quickorder" data-price="<?php echo $price_value; ?>"><?php echo $price; ?></span></div> <input type="hidden" id="price_tax_plus_options" name="price_tax" value="<?php echo $price; ?>"/> <input type="hidden" id="price_no_tax_plus_options" name="price_no_tax" value="<?php echo $price_value; ?>"/> <input id="total_form" type="hidden" value="<?php echo $price;?>" name="total_fast"/> <?php } else { ?> <div class="special_fast"> <div class="price-old"><span id="formated_price_quickorder" class="price-old" data-price="<?php echo $price_value; ?>"><?php echo $price;?></span></div> <div class="price-new"><span id="formated_special_quickorder" data-price="<?php echo $special_value; ?>"><?php echo $special;?></span></div> <input type="hidden" id="price_tax_plus_options" name="price_tax" value="<?php echo $special; ?>"/> <input type="hidden" id="price_no_tax_plus_options" name="price_no_tax" value="<?php echo $special_value; ?>"/> <input id="total_form" type="hidden" value="<?php echo $special;?>" name="total_fast"/> </div> <?php } ?> </div> </div> </div> </div> </div> <?php if ($options) { ?> <div class="col-sm-12"> <div class="option-fastorder"> <div class="options"> <?php foreach ($options as $option) { ?> <?php if ($option['type'] == 'select') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"><?php echo $option['name']; ?></label> <select name="option-fast[<?php echo $option['product_option_id']; ?>]" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control option"> <option value=""><?php echo $text_select; ?></option> <?php $opt_checked="checked"; ?> <?php foreach ($option['product_option_value'] as $option_value) { ?> <option value="<?php echo $option_value['product_option_value_id']; ?>" points="<?php echo (isset($option_value['points_value']) ? $option_value['points_value'] : 0); ?>" price_prefix="<?php echo $option_value['price_prefix']; ?>" price="<?php echo $option_value['price_value']; ?>"><?php echo $option_value['name']; ?> <?php if ($option_value['price']) { ?> (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>) <?php } ?> </option> <?php } ?> </select> </div> <?php } ?> <?php if ($option['type'] == 'radio') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label"><?php echo $option['name']; ?></label> <div id="input-option<?php echo $option['product_option_id']; ?>"> <?php $opt_checked="checked"; ?> <?php foreach ($option['product_option_value'] as $option_value) { ?> <div class="radio-checbox-options"> <input <?php echo (isset($opt_checked) ? $opt_checked : ''); $opt_checked=""; ?> type="radio" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" points="<?php echo (isset($option_value['points_value']) ? $option_value['points_value'] : 0); ?>" price_prefix="<?php echo $option_value['price_prefix']; ?>" price="<?php echo $option_value['price_value']; ?>" id="option-value-<?php echo $option['product_option_id']; ?>-<?php echo $option_value['product_option_value_id']; ?>" /> <label for="option-value-<?php echo $option['product_option_id']; ?>-<?php echo $option_value['product_option_value_id']; ?>"> <span class="option-name"><?php echo $option_value['name']; ?></span> <?php if ($option_value['price']) { ?> <span class="option-price"><?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?></span> <?php } ?> </label> </div> <?php } ?> </div> </div> <?php } ?> <?php if ($option['type'] == 'checkbox') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label"><?php echo $option['name']; ?></label> <div id="input-option<?php echo $option['product_option_id']; ?>"> <?php $opt_checked="checked"; ?> <?php foreach ($option['product_option_value'] as $option_value) { ?> <div class="radio-checbox-options"> <input type="checkbox" name="option-fast[<?php echo $option['product_option_id']; ?>][]" value="<?php echo $option_value['product_option_value_id']; ?>" points="<?php echo (isset($option_value['points_value']) ? $option_value['points_value'] : 0); ?>" price_prefix="<?php echo $option_value['price_prefix']; ?>" price="<?php echo $option_value['price_value']; ?>" id="option-value-<?php echo $option['product_option_id']; ?>-<?php echo $option_value['product_option_value_id']; ?>" /> <label for="option-value-<?php echo $option['product_option_id']; ?>-<?php echo $option_value['product_option_value_id']; ?>"> <span class="option-name"><?php echo $option_value['name']; ?></span> <?php if ($option_value['price']) { ?> <span class="option-price"><?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?></span> <?php } ?> </label> </div> <?php } ?> </div> </div> <?php } ?> <?php if ($option['type'] == 'image') { ?> <?php if ($option['status_color_type'] =='1') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label"><?php echo $option['name']; ?></label> <div id="input-option<?php echo $option['product_option_id']; ?>"> <?php $opt_checked="checked"; ?> <?php foreach ($option['product_option_value'] as $option_value) { ?> <div class="image-radio"> <label> <input <?php echo (isset($opt_checked) ? $opt_checked : ''); $opt_checked=""; ?> type="radio" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" points="<?php echo (isset($option_value['points_value']) ? $option_value['points_value'] : 0); ?>" price_prefix="<?php echo $option_value['price_prefix']; ?>" price="<?php echo $option_value['price_value']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>"/> <span class="color-option" data-toggle="tooltip" title="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" style="background-color:<?php echo $option_value['color']?>"></span> </label> </div> <?php } ?> </div> </div> <?php } else { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label"><?php echo $option['name']; ?></label> <div id="input-option<?php echo $option['product_option_id']; ?>"> <?php $opt_checked="checked"; ?> <?php foreach ($option['product_option_value'] as $option_value) { ?> <div class="image-radio"> <label> <input <?php echo (isset($opt_checked) ? $opt_checked : ''); $opt_checked=""; ?> type="radio" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" points="<?php echo (isset($option_value['points_value']) ? $option_value['points_value'] : 0); ?>" price_prefix="<?php echo $option_value['price_prefix']; ?>" price="<?php echo $option_value['price_value']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>"/> <img src="<?php echo $option_value['image']; ?>" alt="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" class="img-thumbnail" data-toggle="tooltip" title="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" /> </label> </div> <?php } ?> </div> </div> <?php } ?> <?php } ?> <?php if ($option['type'] == 'text') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"><?php echo $option['name']; ?></label> <input type="text" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['value']; ?>" placeholder="<?php echo $option['name']; ?>" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control" /> </div> <?php } ?> <?php if ($option['type'] == 'file') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <label class="control-label"><?php echo $option['name']; ?></label> <button type="button" id="button-upload<?php echo $option['product_option_id']; ?>" class="btn btn-default btn-block"><i class="fa fa-upload"></i> <?php echo $button_upload; ?></button> <input type="hidden" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="" id="input-option<?php echo $option['product_option_id']; ?>" /> </div> <?php } ?> <?php if ($option['type'] == 'date') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"><?php echo $option['name']; ?></label> <div class="input-group date"> <input type="text" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['value']; ?>" data-date-format="YYYY-MM-DD" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control" /> <span class="input-group-btn"> <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button> </span></div> </div> <?php } ?> <?php if ($option['type'] == 'datetime') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"><?php echo $option['name']; ?></label> <div class="input-group datetime"> <input type="text" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['value']; ?>" data-date-format="YYYY-MM-DD HH:mm" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control" /> <span class="input-group-btn"> <button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button> </span></div> </div> <?php } ?> <?php if ($option['type'] == 'time') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"><?php echo $option['name']; ?></label> <div class="input-group time"> <input type="text" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['value']; ?>" data-date-format="HH:mm" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control" /> <span class="input-group-btn"> <button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button> </span></div> </div> <?php } ?> <?php } ?> </div> </div> </div> <?php } ?> <?php if($on_off_fields_firstname == '1') { ?> <div class="form-group <?php echo $config_fields_firstname_requared == '1' ? 'sections_block_rquaired' : 'sections_block' ; ?>"> <div class="input-group margin-bottom-sm"> <input id="contact-name" class="form-control contact-name" type="text" placeholder="<?php echo $config_placeholder_fields_firstname[$lang_id]['config_placeholder_fields_firstname']; ?>" value="" name="name_fastorder"> <span class="input-group-addon"><i class="icon-append-1 fa fa-user fa-fw"></i></span> </div> </div> <?php } ?> <?php if($on_off_fields_phone == '1') { ?> <div class="form-group <?php echo $config_fields_phone_requared == '1' ? 'sections_block_rquaired' : 'sections_block' ; ?>"> <div class="input-group margin-bottom-sm"> <input id="contact-phone" class="form-control contact-phone" type="text" placeholder="<?php echo $config_placeholder_fields_phone[$lang_id]['config_placeholder_fields_phone']; ?>" value="" name="phone"> <span class="input-group-addon"><i class="icon-append-1 fa fa-phone-square fa-fw"></i></span> </div> </div> <?php } ?> <?php if($on_off_fields_email) { ?> <div class="form-group <?php echo $config_fields_email_requared == '1' ? 'sections_block_rquaired' : 'sections_block' ; ?>"> <div class="input-group margin-bottom-sm"> <input id="contact-email" class="form-control contact-email" id="contact-email" type="text" placeholder="<?php echo $config_placeholder_fields_email[$lang_id]['config_placeholder_fields_email'];?>" value="" name="email_buyer"> <span class="input-group-addon"><i class="icon-append-1 fa fa-envelope fa-fw"></i></span> </div> </div> <?php } ?> <?php if($on_off_fields_comment) { ?> <div class="form-group <?php echo $config_fields_comment_requared == '1' ? 'sections_block_rquaired' : 'sections_block' ; ?>"> <div class="input-group margin-bottom-sm"> <input id="contact-comment" class="form-control contact-comment-buyer" name="comment_buyer" id="contact_comment_buyer" placeholder="<?php echo $config_placeholder_fields_comment[$lang_id]['config_placeholder_fields_comment'];?>"/> <span class="input-group-addon"><i class="icon-append-1 fa fa-comment fa-fw"></i></span> </div> </div> <?php } ?> <input type="hidden" id="callback_url" value="" name="url_site" /> <input type="hidden" id="this_prod_id" value="<?php echo $product_id;?>" name="this_prod_id" /> </div> <?php } else { ?> <div class="col-sm-12"> <div class="well well-sm products" style="margin-top:10px;"> <div class="product"> <div class="row"> <div class="col-xs-12 col-sm-5"> <div class="image"> <?php if ($thumb_small) { ?><img src="<?php echo $thumb_small; ?>" alt="<?php echo $heading_title; ?>" /><?php } ?> </div> <div class="pr-name quick-cell"> <div class="quick-cell-content"> <?php echo $heading_title; ?> </div> </div> </div> <div class="col-xs-12 col-sm-7"> <div class="col-xs-6 quantity_quickorder quick-cell"> <div class="quick-cell-content pquantity"> <div class="input-group popup-quantity"> <span class="input-group-btn"> <input class="btn btn-update-popup" type="button" id="decrease_quickorder" value="-" onclick="btnminus_quickorder('1');recalculateprice_quickorder();" /> </span> <input type="text" class="form-control input-sm qty_quickorder" name="quantity" id="htop_quickorder" size="2" value="1" /> <span class="input-group-btn"> <input class="btn btn-update-popup" type="button" id="increase_quickorder" value="+" onclick="btnplus_quickorder();recalculateprice_quickorder();" /> </span> </div> </div> </div> <?php if (!$special) { ?> <script type="text/javascript"> function btnminus_quickorder(a){ document.getElementById("htop_quickorder").value>a?document.getElementById("htop_quickorder").value--:document.getElementById("htop_quickorder").value=a; } function btnplus_quickorder(){ document.getElementById("htop_quickorder").value++; }; </script> <?php } else { ?> <script type="text/javascript"> function btnminus_quickorder(a){ document.getElementById("htop_quickorder").value>a?document.getElementById("htop_quickorder").value--:document.getElementById("htop_quickorder").value=a; } function btnplus_quickorder(){ document.getElementById("htop_quickorder").value++; }; </script> <?php } ?> <div class="col-xs-6 text-center quick-cell"> <div class="quick-cell-content"> <?php if (!$special) { ?> <div class="price_fast"><span id="formated_price_quickorder" data-price="<?php echo $price_value; ?>"><?php echo $price; ?></span></div> <input type="hidden" id="price_tax_plus_options" name="price_tax" value="<?php echo $price; ?>"/> <input type="hidden" id="price_no_tax_plus_options" name="price_no_tax" value="<?php echo $price_value; ?>"/> <input id="total_form" type="hidden" value="<?php echo $price;?>" name="total_fast"/> <?php } else { ?> <div class="special_fast"> <div class="price-old"><span id="formated_price_quickorder" class="price-old" data-price="<?php echo $price_value; ?>"><?php echo $price;?></span></div> <div class="price-new"><span id="formated_special_quickorder" data-price="<?php echo $special_value; ?>"><?php echo $special;?></span></div> <input type="hidden" id="price_tax_plus_options" name="price_tax" value="<?php echo $special; ?>"/> <input type="hidden" id="price_no_tax_plus_options" name="price_no_tax" value="<?php echo $special_value; ?>"/> <input id="total_form" type="hidden" value="<?php echo $special;?>" name="total_fast"/> </div> <?php } ?> </div> </div> </div> </div> </div> </div> </div> <?php if ($options) { ?> <div class="col-sm-12"> <div class="option-fastorder"> <div class="options"> <?php foreach ($options as $option) { ?> <?php if ($option['type'] == 'select') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"><?php echo $option['name']; ?></label> <select name="option-fast[<?php echo $option['product_option_id']; ?>]" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control option"> <option value=""><?php echo $text_select; ?></option> <?php $opt_checked="checked"; ?> <?php foreach ($option['product_option_value'] as $option_value) { ?> <option value="<?php echo $option_value['product_option_value_id']; ?>" points="<?php echo (isset($option_value['points_value']) ? $option_value['points_value'] : 0); ?>" price_prefix="<?php echo $option_value['price_prefix']; ?>" price="<?php echo $option_value['price_value']; ?>"><?php echo $option_value['name']; ?> <?php if ($option_value['price']) { ?> (<?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?>) <?php } ?> </option> <?php } ?> </select> </div> <?php } ?> <?php if ($option['type'] == 'radio') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label"><?php echo $option['name']; ?></label> <div id="input-option<?php echo $option['product_option_id']; ?>"> <?php $opt_checked="checked"; ?> <?php foreach ($option['product_option_value'] as $option_value) { ?> <div class="radio-checbox-options"> <input <?php echo (isset($opt_checked) ? $opt_checked : ''); $opt_checked=""; ?> type="radio" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" points="<?php echo (isset($option_value['points_value']) ? $option_value['points_value'] : 0); ?>" price_prefix="<?php echo $option_value['price_prefix']; ?>" price="<?php echo $option_value['price_value']; ?>" id="option-value-<?php echo $option['product_option_id']; ?>-<?php echo $option_value['product_option_value_id']; ?>" /> <label for="option-value-<?php echo $option['product_option_id']; ?>-<?php echo $option_value['product_option_value_id']; ?>"> <span class="option-name"><?php echo $option_value['name']; ?></span> <?php if ($option_value['price']) { ?> <span class="option-price"><?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?></span> <?php } ?> </label> </div> <?php } ?> </div> </div> <?php } ?> <?php if ($option['type'] == 'checkbox') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label"><?php echo $option['name']; ?></label> <div id="input-option<?php echo $option['product_option_id']; ?>"> <?php $opt_checked="checked"; ?> <?php foreach ($option['product_option_value'] as $option_value) { ?> <div class="radio-checbox-options"> <input type="checkbox" name="option-fast[<?php echo $option['product_option_id']; ?>][]" value="<?php echo $option_value['product_option_value_id']; ?>" points="<?php echo (isset($option_value['points_value']) ? $option_value['points_value'] : 0); ?>" price_prefix="<?php echo $option_value['price_prefix']; ?>" price="<?php echo $option_value['price_value']; ?>" id="option-value-<?php echo $option['product_option_id']; ?>-<?php echo $option_value['product_option_value_id']; ?>" /> <label for="option-value-<?php echo $option['product_option_id']; ?>-<?php echo $option_value['product_option_value_id']; ?>"> <span class="option-name"><?php echo $option_value['name']; ?></span> <?php if ($option_value['price']) { ?> <span class="option-price"><?php echo $option_value['price_prefix']; ?><?php echo $option_value['price']; ?></span> <?php } ?> </label> </div> <?php } ?> </div> </div> <?php } ?> <?php if ($option['type'] == 'image') { ?> <?php if ($option['status_color_type'] =='1') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label"><?php echo $option['name']; ?></label> <div id="input-option<?php echo $option['product_option_id']; ?>"> <?php $opt_checked="checked"; ?> <?php foreach ($option['product_option_value'] as $option_value) { ?> <div class="image-radio"> <label> <input <?php echo (isset($opt_checked) ? $opt_checked : ''); $opt_checked=""; ?> type="radio" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" points="<?php echo (isset($option_value['points_value']) ? $option_value['points_value'] : 0); ?>" price_prefix="<?php echo $option_value['price_prefix']; ?>" price="<?php echo $option_value['price_value']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>"/> <span class="color-option" data-toggle="tooltip" title="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" style="background-color:<?php echo $option_value['color']?>"></span> </label> </div> <?php } ?> </div> </div> <?php } else { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label"><?php echo $option['name']; ?></label> <div id="input-option<?php echo $option['product_option_id']; ?>"> <?php $opt_checked="checked"; ?> <?php foreach ($option['product_option_value'] as $option_value) { ?> <div class="image-radio"> <label> <input <?php echo (isset($opt_checked) ? $opt_checked : ''); $opt_checked=""; ?> type="radio" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option_value['product_option_value_id']; ?>" points="<?php echo (isset($option_value['points_value']) ? $option_value['points_value'] : 0); ?>" price_prefix="<?php echo $option_value['price_prefix']; ?>" price="<?php echo $option_value['price_value']; ?>" id="option-value-<?php echo $option_value['product_option_value_id']; ?>"/> <img src="<?php echo $option_value['image']; ?>" alt="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" class="img-thumbnail" data-toggle="tooltip" title="<?php echo $option_value['name'] . ($option_value['price'] ? ' ' . $option_value['price_prefix'] . $option_value['price'] : ''); ?>" /> </label> </div> <?php } ?> </div> </div> <?php } ?> <?php } ?> <?php if ($option['type'] == 'text') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"><?php echo $option['name']; ?></label> <input type="text" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['value']; ?>" placeholder="<?php echo $option['name']; ?>" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control" /> </div> <?php } ?> <?php if ($option['type'] == 'file') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <label class="control-label"><?php echo $option['name']; ?></label> <button type="button" id="button-upload<?php echo $option['product_option_id']; ?>" class="btn btn-default btn-block"><i class="fa fa-upload"></i> <?php echo $button_upload; ?></button> <input type="hidden" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="" id="input-option<?php echo $option['product_option_id']; ?>" /> </div> <?php } ?> <?php if ($option['type'] == 'date') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"><?php echo $option['name']; ?></label> <div class="input-group date"> <input type="text" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['value']; ?>" data-date-format="YYYY-MM-DD" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control" /> <span class="input-group-btn"> <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button> </span></div> </div> <?php } ?> <?php if ($option['type'] == 'datetime') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"><?php echo $option['name']; ?></label> <div class="input-group datetime"> <input type="text" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['value']; ?>" data-date-format="YYYY-MM-DD HH:mm" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control" /> <span class="input-group-btn"> <button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button> </span></div> </div> <?php } ?> <?php if ($option['type'] == 'time') { ?> <div id="option-fast-<?php echo $option['product_option_id']; ?>" class="col-sm-6 col-xs-12 option form-group<?php echo ($option['required'] ? ' required' : ''); ?>"> <div class="text-danger option-error-<?php echo $option['product_option_id']; ?>"></div> <label class="control-label" for="input-option<?php echo $option['product_option_id']; ?>"><?php echo $option['name']; ?></label> <div class="input-group time"> <input type="text" name="option-fast[<?php echo $option['product_option_id']; ?>]" value="<?php echo $option['value']; ?>" data-date-format="HH:mm" id="input-option<?php echo $option['product_option_id']; ?>" class="form-control" /> <span class="input-group-btn"> <button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button> </span></div> </div> <?php } ?> <?php } ?> </div> </div> </div> <?php } ?> <?php if($on_off_fields_firstname == '1') { ?> <div class="col-sm-6 col-sm-12 form-group <?php echo $config_fields_firstname_requared == '1' ? 'sections_block_rquaired' : 'sections_block' ; ?>"> <div class="input-group margin-bottom-sm"> <input id="contact-name" class="form-control contact-name" type="text" placeholder="<?php echo $config_placeholder_fields_firstname[$lang_id]['config_placeholder_fields_firstname']; ?>" value="" name="name_fastorder"> <span class="input-group-addon"><i class="icon-append-1 fa fa-user fa-fw"></i></span> </div> </div> <?php } ?> <?php if($on_off_fields_phone == '1') { ?> <div class="col-sm-6 col-sm-12 form-group <?php echo $config_fields_phone_requared == '1' ? 'sections_block_rquaired' : 'sections_block' ; ?>"> <div class="input-group margin-bottom-sm"> <input id="contact-phone" class="form-control contact-phone" type="text" placeholder="<?php echo $config_placeholder_fields_phone[$lang_id]['config_placeholder_fields_phone']; ?>" value="" name="phone"> <span class="input-group-addon"><i class="icon-append-1 fa fa-phone-square fa-fw"></i></span> </div> </div> <?php } ?> <?php if($on_off_fields_email) { ?> <div class="col-sm-6 col-sm-12 form-group <?php echo $config_fields_email_requared == '1' ? 'sections_block_rquaired' : 'sections_block' ; ?>"> <div class="input-group margin-bottom-sm"> <input id="contact-email" class="form-control contact-email" id="contact-email" type="text" placeholder="<?php echo $config_placeholder_fields_email[$lang_id]['config_placeholder_fields_email'];?>" value="" name="email_buyer"> <span class="input-group-addon"><i class="icon-append-1 fa fa-envelope fa-fw"></i></span> </div> </div> <?php } ?> <?php if($on_off_fields_comment) { ?> <div class="col-sm-6 col-om-12 form-group <?php echo $config_fields_comment_requared == '1' ? 'sections_block_rquaired' : 'sections_block' ; ?>"> <div class="input-group margin-bottom-sm"> <input id="contact-comment" class="form-control contact-comment-buyer" name="comment_buyer" id="contact_comment_buyer" placeholder="<?php echo $config_placeholder_fields_comment[$lang_id]['config_placeholder_fields_comment'];?>"/> <span class="input-group-addon"><i class="icon-append-1 fa fa-comment fa-fw"></i></span> </div> </div> <?php } ?> <div class="col-sm-12 form-group text-center"><?php echo isset($config_text_before_button_send[$lang_id]) ? $config_text_before_button_send[$lang_id]['config_text_before_button_send'] : ''; ?></div> <input type="hidden" id="callback_url" value="" name="url_site" /> <input type="hidden" id="this_prod_id" value="<?php echo $product_id;?>" name="this_prod_id" /> <?php } ?> <?php if ($text_agree) { ?> <div class="col-xs-12 text-center"> <?php echo $text_agree; ?> <input type="checkbox" name="agree" value="1" /> <div class="error_agree"></div> </div> <?php } ?> </form> <div class="col-sm-12 form-group text-center"><?php echo isset($config_text_before_button_send[$lang_id]) ? $config_text_before_button_send[$lang_id]['config_text_before_button_send'] : ''; ?></div> </div> <div class="popup-footer"> <style> #quickorder_btn .btn-quickorder{ background-color: #<?php echo $background_button_send_fastorder;?> !important; border-color: #<?php echo $background_button_send_fastorder;?> !important; } #quickorder_btn .btn-quickorder:hover, #quickorder_btn .btn-quickorder:focus{ background-color:#<?php echo $background_button_send_fastorder_hover;?> !important; } </style> <div id="quickorder_btn"> <button type="button" onclick="quickorder_confirm();" class="btn btn-quickorder-one"><i class="<?php echo $icon_send_fastorder;?> fa-fw"></i> <?php echo $button_send; ?></button> </div> <?php if($config_any_text_at_the_bottom[$lang_id]['config_any_text_at_the_bottom'] !='') { ?> <div class="col-sm-12 form-group text-center" style="margin-top:10px;"><span style="color:#<?php echo $any_text_at_the_bottom_color;?>"><?php echo isset($config_any_text_at_the_bottom[$lang_id]) ? $config_any_text_at_the_bottom[$lang_id]['config_any_text_at_the_bottom'] : ''; ?></span></div> <?php } ?> </div> <script type="text/javascript"> $(document).ready(function() { <?php if ($mask_phone_number != '') { ?> $("#contact-phone").mask("<?php echo $mask_phone_number;?>"); <?php } ?> }); </script> <script type="text/javascript"><!-- function price_format(n) { c = <?php echo (empty($currency['decimals']) ? "0" : $currency['decimals'] ); ?>; d = '<?php echo $currency['decimal_point']; ?>'; // decimal separator t = '<?php echo $currency['thousand_point']; ?>'; // thousands separator s_left = '<?php echo $currency['symbol_left']; ?>'; s_right = '<?php echo $currency['symbol_right']; ?>'; n = n * <?php echo $currency['value']; ?>; //sign = (n < 0) ? '-' : ''; //extracting the absolute value of the integer part of the number and converting to string i = parseInt(n = Math.abs(n).toFixed(c)) + ''; j = ((j = i.length) > 3) ? j % 3 : 0; return s_left + (j ? i.substr(0, j) + t : '') + i.substr(j).replace(/(\d{3})(?=\d)/g, "$1" + t) + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : '') + s_right; } function calculate_tax(price) { <?php // Process Tax Rates if (isset($tax_rates) && $tax) { foreach ($tax_rates as $tax_rate) { if ($tax_rate['type'] == 'F') { echo 'price += '.$tax_rate['rate'].';'; } elseif ($tax_rate['type'] == 'P') { echo 'price += (price * '.$tax_rate['rate'].') / 100.0;'; } } } ?> return price; } function process_discounts(price, quantity) { <?php foreach ($dicounts_unf as $discount) { echo 'if ((quantity >= '.$discount['quantity'].') && ('.$discount['price'].' < price)) price = '.$discount['price'].';'."\n"; } ?> return price; } animate_delay = 20; main_price_final = calculate_tax(Number($('#formated_price_quickorder').attr('data-price'))); main_price_start = calculate_tax(Number($('#formated_price_quickorder').attr('data-price'))); main_step = 0; main_timeout_id = 0; function animateMainPrice_callback_quickorder() { main_price_start += main_step; if ((main_step > 0) && (main_price_start > main_price_final)){ main_price_start = main_price_final; } else if ((main_step < 0) && (main_price_start < main_price_final)) { main_price_start = main_price_final; } else if (main_step == 0) { main_price_start = main_price_final; } $('#formated_price_quickorder').html( price_format(main_price_start) ); $('#total').html( price_format(main_price_start) ); $('#total_form').val(main_price_start); if (main_price_start != main_price_final) { main_timeout_id = setTimeout(animateMainPrice_callback_quickorder, animate_delay); } } function animateMainPrice_quickorder(price) { main_price_start = main_price_final; main_price_final = price; main_step = (main_price_final - main_price_start) / 10; clearTimeout(main_timeout_id); main_timeout_id = setTimeout(animateMainPrice_callback_quickorder, animate_delay); } <?php if ($special) { ?> special_price_final = calculate_tax(Number($('#formated_special_quickorder').attr('data-price'))); special_price_start = calculate_tax(Number($('#formated_special_quickorder').attr('data-price'))); special_step = 0; special_timeout_id = 0; function animateSpecialPrice_callback_quickorder() { special_price_start += special_step; if ((special_step > 0) && (special_price_start > special_price_final)){ special_price_start = special_price_final; } else if ((special_step < 0) && (special_price_start < special_price_final)) { special_price_start = special_price_final; } else if (special_step == 0) { special_price_start = special_price_final; } $('#formated_special_quickorder').html( price_format(special_price_start) ); $('#total').html( price_format(special_price_start) ); $('#total_form').val(special_price_start); if (special_price_start != special_price_final) { special_timeout_id = setTimeout(animateSpecialPrice_callback_quickorder, animate_delay); } } function animateSpecialPrice_quickorder(price) { special_price_start = special_price_final; special_price_final = price; special_step = (special_price_final - special_price_start) / 10; clearTimeout(special_timeout_id); special_timeout_id = setTimeout(animateSpecialPrice_callback_quickorder, animate_delay); } <?php } ?> function recalculateprice_quickorder() { var main_price = Number($('#formated_price_quickorder').attr('data-price')); var input_quantity = $('input.qty_quickorder[name="quantity"]').val(); var special = Number($('#formated_special_quickorder').attr('data-price')); var tax = 0; if (isNaN(input_quantity)) input_quantity = 0; // Process Discounts. <?php if ($special) { ?> special = process_discounts(special, input_quantity); <?php } else { ?> main_price = process_discounts(main_price, input_quantity); <?php } ?> tax = process_discounts(tax, input_quantity); <?php if ($points) { ?> var points = Number($('#formated_points').attr('points')); $('.option input:checked').each(function() { points += Number($(this).attr('points')); }); $('.option option:selected').each(function() { points += Number($(this).attr('points')); }); $('#formated_points').html(points); <?php } ?> var option_price = 0; $('.option input:checked,option:selected').each(function() { if ($(this).attr('price_prefix') == '=') { option_price += Number($(this).attr('price')); main_price = 0; special = 0; } }); $('.option input:checked,option:selected').each(function() { if ($(this).attr('price_prefix') == '+') { option_price += Number($(this).attr('price')); } if ($(this).attr('price_prefix') == '-') { option_price -= Number($(this).attr('price')); } if ($(this).attr('price_prefix') == 'u') { pcnt = 1.0 + (Number($(this).attr('price')) / 100.0); option_price *= pcnt; main_price *= pcnt; special *= pcnt; } if ($(this).attr('price_prefix') == '*') { option_price *= Number($(this).attr('price')); main_price *= Number($(this).attr('price')); special *= Number($(this).attr('price')); } }); special += option_price; main_price += option_price; <?php if ($special) { ?> $('#price_no_tax_plus_options').val(special); <?php } else { ?> $('#price_no_tax_plus_options').val(main_price); <?php } ?> <?php if ($special) { ?> tax = special; <?php } else { ?> tax = main_price; <?php } ?> main_price = calculate_tax(main_price); special = calculate_tax(special); <?php if ($special) { ?> $('#price_tax_plus_options').val(special); <?php } else { ?> $('#price_tax_plus_options').val(main_price); <?php } ?> main_price *= input_quantity; special *= input_quantity; animateMainPrice_quickorder(main_price); <?php if ($special) { ?> animateSpecialPrice_quickorder(special); <?php } ?> <?php if ($tax) { ?> $('#formated_tax').html( price_format(tax) ); <?php } ?> } $(document).ready(function() { $('.option input[type="checkbox"]').bind('change', function() { recalculateprice_quickorder(); }); $('.option input[type="radio"]').bind('change', function() { recalculateprice_quickorder(); }); $('.option select').bind('change', function() { recalculateprice_quickorder(); }); $quantity = $('input.qty_quickorder[name="quantity"]'); $quantity.data('val', $quantity.val()); (function() { if ($quantity.val() != $quantity.data('val')){ $quantity.data('val',$quantity.val()); recalculateprice_quickorder(); } setTimeout(arguments.callee, 250); })(); recalculateprice_quickorder(); }); //--></script> <script type="text/javascript"><!-- $('.date').datetimepicker({ pickTime: false }); $('.datetime').datetimepicker({ pickDate: true, pickTime: true }); $('.time').datetimepicker({ pickDate: false }); $('button[id^=\'button-upload\']').on('click', function() { var node = this; $('#form-upload').remove(); $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input type="file" name="file" /></form>'); $('#form-upload input[name=\'file\']').trigger('click'); if (typeof timer != 'undefined') { clearInterval(timer); } timer = setInterval(function() { if ($('#form-upload input[name=\'file\']').val() != '') { clearInterval(timer); $.ajax({ url: 'index.php?route=tool/upload', type: 'post', dataType: 'json', data: new FormData($('#form-upload')[0]), cache: false, contentType: false, processData: false, beforeSend: function() { $(node).button('loading'); }, complete: function() { $(node).button('reset'); }, success: function(json) { $('.text-danger').remove(); if (json['error']) { $(node).parent().find('input').after('<div class="text-danger">' + json['error'] + '</div>'); } if (json['success']) { alert(json['success']); $(node).parent().find('input').attr('value', json['code']); } }, error: function(xhr, ajaxOptions, thrownError) { alert(thrownError + "\r\n" + xhr.statusText + "\r\n" + xhr.responseText); } }); } }, 500); }); //--></script> </div> newfastorder2.tpl
  11. Все хорошо но каждый раз при очистки системного кэша снова пропадает поле. Как это исправить???
  12. Добрый день. Подскажите пожалуйста есть ли реализация следующей задачи- Задаем стикер товарам к примеру "Ликвидация" Как можно вывести данные товары с стикером ликвидация на отдельную страницу. По типу вот этого https://tvoedetstvo.ru/specials/ - здесь все товары со скидкой.
  13. <?php echo $header; ?><?php echo $column_left; ?> <div id="content"> <div class="page-header"> <div class="container-fluid"> <div class="pull-right"> <button type="submit" form="form-product" data-toggle="tooltip" title="<?php echo $button_save; ?>" class="btn btn-primary"><i class="fa fa-save"></i></button> <a href="<?php echo $cancel; ?>" data-toggle="tooltip" title="<?php echo $button_cancel; ?>" class="btn btn-default"><i class="fa fa-reply"></i></a></div> <h1><?php echo $heading_title; ?></h1> <ul class="breadcrumb"> <?php foreach ($breadcrumbs as $breadcrumb) { ?> <li><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a></li> <?php } ?> </ul> </div> </div> <div class="container-fluid"> <?php if ($error_warning) { ?> <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?> <button type="button" class="close" data-dismiss="alert">&times;</button> </div> <?php } ?> <div class="panel panel-default"> <div class="panel-heading"> <h3 class="panel-title"><i class="fa fa-pencil"></i> <?php echo $text_form; ?></h3> </div> <div class="panel-body"> <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data" id="form-product" class="form-horizontal"> <ul class="nav nav-tabs"> <li class="active"><a href="#tab-general" data-toggle="tab"><?php echo $tab_general; ?></a></li> <li><a href="#tab-data" data-toggle="tab"><?php echo $tab_data; ?></a></li> <li><a href="#tab-links" data-toggle="tab"><?php echo $tab_links; ?></a></li> <li><a href="#tab-attribute" data-toggle="tab"><?php echo $tab_attribute; ?></a></li> <li><a href="#tab-option" data-toggle="tab"><?php echo $tab_option; ?></a></li> <li><a href="#tab-recurring" data-toggle="tab"><?php echo $tab_recurring; ?></a></li> <li><a href="#tab-discount" data-toggle="tab"><?php echo $tab_discount; ?></a></li> <li><a href="#tab-special" data-toggle="tab"><?php echo $tab_special; ?></a></li> <li><a href="#tab-image" data-toggle="tab"><?php echo $tab_image; ?></a></li> <li><a href="#tab-reward" data-toggle="tab"><?php echo $tab_reward; ?></a></li> <li><a href="#tab-design" data-toggle="tab"><?php echo $tab_design; ?></a></li> </ul> <div class="tab-content"> <div class="tab-pane active" id="tab-general"> <ul class="nav nav-tabs" id="language"> <?php foreach ($languages as $language) { ?> <li><a href="#language<?php echo $language['language_id']; ?>" data-toggle="tab"><img src="view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" /> <?php echo $language['name']; ?></a></li> <?php } ?> </ul> <div class="tab-content"> <?php foreach ($languages as $language) { ?> <div class="tab-pane" id="language<?php echo $language['language_id']; ?>"> <div class="form-group required"> <label class="col-sm-2 control-label" for="input-name<?php echo $language['language_id']; ?>"><?php echo $entry_name; ?></label> <div class="col-sm-10"> <input type="text" name="product_description[<?php echo $language['language_id']; ?>][name]" value="<?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['name'] : ''; ?>" placeholder="<?php echo $entry_name; ?>" id="input-name<?php echo $language['language_id']; ?>" class="form-control" /> <?php if (isset($error_name[$language['language_id']])) { ?> <div class="text-danger"><?php echo $error_name[$language['language_id']]; ?></div> <?php } ?> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-description<?php echo $language['language_id']; ?>"><?php echo $entry_description; ?></label> <div class="col-sm-10"> <textarea name="product_description[<?php echo $language['language_id']; ?>][description]" placeholder="<?php echo $entry_description; ?>" id="input-description<?php echo $language['language_id']; ?>"><?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['description'] : ''; ?></textarea> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-meta-title<?php echo $language['language_id']; ?>"><?php echo $entry_meta_title; ?></label> <div class="col-sm-10"> <input type="text" name="product_description[<?php echo $language['language_id']; ?>][meta_title]" value="<?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['meta_title'] : ''; ?>" placeholder="<?php echo $entry_meta_title; ?>" id="input-meta-title<?php echo $language['language_id']; ?>" class="form-control" /> <?php if (isset($error_meta_title[$language['language_id']])) { ?> <div class="text-danger"><?php echo $error_meta_title[$language['language_id']]; ?></div> <?php } ?> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-meta-h1<?php echo $language['language_id']; ?>"><?php echo $entry_meta_h1; ?></label> <div class="col-sm-10"> <input type="text" name="product_description[<?php echo $language['language_id']; ?>][meta_h1]" value="<?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['meta_h1'] : ''; ?>" placeholder="<?php echo $entry_meta_h1; ?>" id="input-meta-h1<?php echo $language['language_id']; ?>" class="form-control" /> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-meta-description<?php echo $language['language_id']; ?>"><?php echo $entry_meta_description; ?></label> <div class="col-sm-10"> <textarea name="product_description[<?php echo $language['language_id']; ?>][meta_description]" rows="5" placeholder="<?php echo $entry_meta_description; ?>" id="input-meta-description<?php echo $language['language_id']; ?>" class="form-control"><?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['meta_description'] : ''; ?></textarea> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-meta-keyword<?php echo $language['language_id']; ?>"><?php echo $entry_meta_keyword; ?></label> <div class="col-sm-10"> <textarea name="product_description[<?php echo $language['language_id']; ?>][meta_keyword]" rows="5" placeholder="<?php echo $entry_meta_keyword; ?>" id="input-meta-keyword<?php echo $language['language_id']; ?>" class="form-control"><?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['meta_keyword'] : ''; ?></textarea> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-tag<?php echo $language['language_id']; ?>"><span data-toggle="tooltip" title="<?php echo $help_tag; ?>"><?php echo $entry_tag; ?></span></label> <div class="col-sm-10"> <input type="text" name="product_description[<?php echo $language['language_id']; ?>][tag]" value="<?php echo isset($product_description[$language['language_id']]) ? $product_description[$language['language_id']]['tag'] : ''; ?>" placeholder="<?php echo $entry_tag; ?>" id="input-tag<?php echo $language['language_id']; ?>" class="form-control" /> </div> </div> </div> <?php } ?> </div> </div> <div class="tab-pane" id="tab-data"> <div class="form-group"> <label class="col-sm-2 control-label" for="input-image"><?php echo $entry_image; ?></label> <div class="col-sm-10"> <a href="" id="thumb-image" data-toggle="image" class="img-thumbnail"><img src="<?php echo $thumb; ?>" alt="" title="" data-placeholder="<?php echo $placeholder; ?>" /></a> <input type="hidden" name="image" value="<?php echo $image; ?>" id="input-image" /> </div> </div> <div class="form-group required"> <label class="col-sm-2 control-label" for="input-model"><?php echo $entry_model; ?></label> <div class="col-sm-10"> <input type="text" name="model" value="<?php echo $model; ?>" placeholder="<?php echo $entry_model; ?>" id="input-model" class="form-control" /> <?php if ($error_model) { ?> <div class="text-danger"><?php echo $error_model; ?></div> <?php } ?> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-sku"><span data-toggle="tooltip" title="<?php echo $help_sku; ?>"><?php echo $entry_sku; ?></span></label> <div class="col-sm-10"> <input type="text" name="sku" value="<?php echo $sku; ?>" placeholder="<?php echo $entry_sku; ?>" id="input-sku" class="form-control" /> </div> </div> <div class="form-group<?php echo ($hide_upc == true)? ' hide':''; ?>"> <label class="col-sm-2 control-label" for="input-upc"><span data-toggle="tooltip" title="<?php echo $help_upc; ?>"><?php echo $entry_upc; ?></span></label> <div class="col-sm-10"> <input type="text" name="upc" value="<?php echo $upc; ?>" placeholder="<?php echo $entry_upc; ?>" id="input-upc" class="form-control" /> </div> </div> <div class="form-group<?php echo ($hide_ean == true)? ' hide':''; ?>"> <label class="col-sm-2 control-label" for="input-ean"><span data-toggle="tooltip" title="<?php echo $help_ean; ?>"><?php echo $entry_ean; ?></span></label> <div class="col-sm-10"> <input type="text" name="ean" value="<?php echo $ean; ?>" placeholder="<?php echo $entry_ean; ?>" id="input-ean" class="form-control" /> </div> </div> <div class="form-group<?php echo ($hide_jan == true)? ' hide':''; ?>"> <label class="col-sm-2 control-label" for="input-jan"><span data-toggle="tooltip" title="<?php echo $help_jan; ?>"><?php echo $entry_jan; ?></span></label> <div class="col-sm-10"> <input type="text" name="jan" value="<?php echo $jan; ?>" placeholder="<?php echo $entry_jan; ?>" id="input-jan" class="form-control" /> </div> </div> <div class="form-group<?php echo ($hide_isbn == true)? ' hide':''; ?>"> <label class="col-sm-2 control-label" for="input-isbn"><span data-toggle="tooltip" title="<?php echo $help_isbn; ?>"><?php echo $entry_isbn; ?></span></label> <div class="col-sm-10"> <input type="text" name="isbn" value="<?php echo $isbn; ?>" placeholder="<?php echo $entry_isbn; ?>" id="input-isbn" class="form-control" /> </div> </div> <div class="form-group<?php echo ($hide_mpn == true)? ' hide':''; ?>"> <label class="col-sm-2 control-label" for="input-mpn"><span data-toggle="tooltip" title="<?php echo $help_mpn; ?>"><?php echo $entry_mpn; ?></span></label> <div class="col-sm-10"> <input type="text" name="mpn" value="<?php echo $mpn; ?>" placeholder="<?php echo $entry_mpn; ?>" id="input-mpn" class="form-control" /> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-location"><?php echo $entry_location; ?></label> <div class="col-sm-10"> <input type="text" name="location" value="<?php echo $location; ?>" placeholder="<?php echo $entry_location; ?>" id="input-location" class="form-control" /> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-price"><?php echo $entry_price; ?></label> <div class="col-sm-10"> <input type="text" name="price" value="<?php echo $price; ?>" placeholder="<?php echo $entry_price; ?>" id="input-price" class="form-control" /> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-tax-class"><?php echo $entry_tax_class; ?></label> <div class="col-sm-10"> <select name="tax_class_id" id="input-tax-class" class="form-control"> <option value="0"><?php echo $text_none; ?></option> <?php foreach ($tax_classes as $tax_class) { ?> <?php if ($tax_class['tax_class_id'] == $tax_class_id) { ?> <option value="<?php echo $tax_class['tax_class_id']; ?>" selected="selected"><?php echo $tax_class['title']; ?></option> <?php } else { ?> <option value="<?php echo $tax_class['tax_class_id']; ?>"><?php echo $tax_class['title']; ?></option> <?php } ?> <?php } ?> </select> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-quantity"><?php echo $entry_quantity; ?></label> <div class="col-sm-10"> <input type="text" name="quantity" value="<?php echo $quantity; ?>" placeholder="<?php echo $entry_quantity; ?>" id="input-quantity" class="form-control" /> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-minimum"><span data-toggle="tooltip" title="<?php echo $help_minimum; ?>"><?php echo $entry_minimum; ?></span></label> <div class="col-sm-10"> <input type="text" name="minimum" value="<?php echo $minimum; ?>" placeholder="<?php echo $entry_minimum; ?>" id="input-minimum" class="form-control" /> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-subtract"><?php echo $entry_subtract; ?></label> <div class="col-sm-10"> <select name="subtract" id="input-subtract" class="form-control"> <?php if ($subtract) { ?> <option value="1" selected="selected"><?php echo $text_yes; ?></option> <option value="0"><?php echo $text_no; ?></option> <?php } else { ?> <option value="1"><?php echo $text_yes; ?></option> <option value="0" selected="selected"><?php echo $text_no; ?></option> <?php } ?> </select> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-stock-status"><span data-toggle="tooltip" title="<?php echo $help_stock_status; ?>"><?php echo $entry_stock_status; ?></span></label> <div class="col-sm-10"> <select name="stock_status_id" id="input-stock-status" class="form-control"> <?php foreach ($stock_statuses as $stock_status) { ?> <?php if ($stock_status['stock_status_id'] == $stock_status_id) { ?> <option value="<?php echo $stock_status['stock_status_id']; ?>" selected="selected"><?php echo $stock_status['name']; ?></option> <?php } else { ?> <option value="<?php echo $stock_status['stock_status_id']; ?>"><?php echo $stock_status['name']; ?></option> <?php } ?> <?php } ?> </select> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label"><?php echo $entry_shipping; ?></label> <div class="col-sm-10"> <label class="radio-inline"> <?php if ($shipping) { ?> <input type="radio" name="shipping" value="1" checked="checked" /> <?php echo $text_yes; ?> <?php } else { ?> <input type="radio" name="shipping" value="1" /> <?php echo $text_yes; ?> <?php } ?> </label> <label class="radio-inline"> <?php if (!$shipping) { ?> <input type="radio" name="shipping" value="0" checked="checked" /> <?php echo $text_no; ?> <?php } else { ?> <input type="radio" name="shipping" value="0" /> <?php echo $text_no; ?> <?php } ?> </label> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-keyword"><span data-toggle="tooltip" title="<?php echo $help_keyword; ?>"><?php echo $entry_keyword; ?></span></label> <div class="col-sm-10"> <input type="text" name="keyword" value="<?php echo $keyword; ?>" placeholder="<?php echo $entry_keyword; ?>" id="input-keyword" class="form-control" /> <?php if ($error_keyword) { ?> <div class="text-danger"><?php echo $error_keyword; ?></div> <?php } ?> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-date-available"><?php echo $entry_date_available; ?></label> <div class="col-sm-3"> <div class="input-group date"> <input type="text" name="date_available" value="<?php echo $date_available; ?>" placeholder="<?php echo $entry_date_available; ?>" data-date-format="YYYY-MM-DD" id="input-date-available" class="form-control" /> <span class="input-group-btn"> <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button> </span></div> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-length"><?php echo $entry_dimension; ?></label> <div class="col-sm-10"> <div class="row"> <div class="col-sm-4"> <input type="text" name="length" value="<?php echo $length; ?>" placeholder="<?php echo $entry_length; ?>" id="input-length" class="form-control" /> </div> <div class="col-sm-4"> <input type="text" name="width" value="<?php echo $width; ?>" placeholder="<?php echo $entry_width; ?>" id="input-width" class="form-control" /> </div> <div class="col-sm-4"> <input type="text" name="height" value="<?php echo $height; ?>" placeholder="<?php echo $entry_height; ?>" id="input-height" class="form-control" /> </div> </div> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-length-class"><?php echo $entry_length_class; ?></label> <div class="col-sm-10"> <select name="length_class_id" id="input-length-class" class="form-control"> <?php foreach ($length_classes as $length_class) { ?> <?php if ($length_class['length_class_id'] == $length_class_id) { ?> <option value="<?php echo $length_class['length_class_id']; ?>" selected="selected"><?php echo $length_class['title']; ?></option> <?php } else { ?> <option value="<?php echo $length_class['length_class_id']; ?>"><?php echo $length_class['title']; ?></option> <?php } ?> <?php } ?> </select> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-weight"><?php echo $entry_weight; ?></label> <div class="col-sm-10"> <input type="text" name="weight" value="<?php echo $weight; ?>" placeholder="<?php echo $entry_weight; ?>" id="input-weight" class="form-control" /> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-weight-class"><?php echo $entry_weight_class; ?></label> <div class="col-sm-10"> <select name="weight_class_id" id="input-weight-class" class="form-control"> <?php foreach ($weight_classes as $weight_class) { ?> <?php if ($weight_class['weight_class_id'] == $weight_class_id) { ?> <option value="<?php echo $weight_class['weight_class_id']; ?>" selected="selected"><?php echo $weight_class['title']; ?></option> <?php } else { ?> <option value="<?php echo $weight_class['weight_class_id']; ?>"><?php echo $weight_class['title']; ?></option> <?php } ?> <?php } ?> </select> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-status"><?php echo $entry_status; ?></label> <div class="col-sm-10"> <select name="status" id="input-status" class="form-control"> <?php if ($status) { ?> <option value="1" selected="selected"><?php echo $text_enabled; ?></option> <option value="0"><?php echo $text_disabled; ?></option> <?php } else { ?> <option value="1"><?php echo $text_enabled; ?></option> <option value="0" selected="selected"><?php echo $text_disabled; ?></option> <?php } ?> </select> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-sort-order"><?php echo $entry_sort_order; ?></label> <div class="col-sm-10"> <input type="text" name="sort_order" value="<?php echo $sort_order; ?>" placeholder="<?php echo $entry_sort_order; ?>" id="input-sort-order" class="form-control" /> </div> </div> </div> <div class="tab-pane" id="tab-links"> <div class="form-group"> <label class="col-sm-2 control-label" for="input-manufacturer"><?php echo $entry_manufacturer; ?></label> <div class="col-sm-10"> <select id="input-manufacturer" name="manufacturer_id" class="form-control"> <option value="0" selected="selected"><?php echo $text_none; ?></option> <?php foreach ($manufacturers as $manufacturer) { ?> <?php if ($manufacturer['manufacturer_id'] == $manufacturer_id) { ?> <option value="<?php echo $manufacturer['manufacturer_id']; ?>" selected="selected"><?php echo $manufacturer['name']; ?></option> <?php } else { ?> <option value="<?php echo $manufacturer['manufacturer_id']; ?>"><?php echo $manufacturer['name']; ?></option> <?php } ?> <?php } ?> </select> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-category"><?php echo $entry_main_category; ?></label> <div class="col-sm-10"> <select id="main_category_id" name="main_category_id" class="form-control"> <option value="0" selected="selected"><?php echo $text_none; ?></option> <?php foreach($categories as $category) { ?> <?php if($category['category_id'] == $main_category_id) { ?> <option value="<?php echo $category['category_id']; ?>" selected="selected"><?php echo $category['name']; ?></option> <?php } else { ?> <option value="<?php echo $category['category_id']; ?>"><?php echo $category['name']; ?></option> <?php } ?> <?php } ?> </select> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-category"><?php echo $entry_category; ?></label> <div class="col-sm-10"> <div class="well well-sm" style="min-height: 150px;max-height: 500px;overflow: auto;"> <table class="table table-striped"> <?php foreach ($categories as $category) { ?> <tr> <td class="checkbox"> <label> <?php if (in_array($category['category_id'], $product_category)) { ?> <input type="checkbox" name="product_category[]" value="<?php echo $category['category_id']; ?>" checked="checked" /> <?php echo $category['name']; ?> <?php } else { ?> <input type="checkbox" name="product_category[]" value="<?php echo $category['category_id']; ?>" /> <?php echo $category['name']; ?> <?php } ?> </label> </td> </tr> <?php } ?> </table> </div> <a onclick="$(this).parent().find(':checkbox').prop('checked', true);"><?php echo $text_select_all; ?></a> / <a onclick="$(this).parent().find(':checkbox').prop('checked', false);"><?php echo $text_unselect_all; ?></a></div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-filter"><span data-toggle="tooltip" title="<?php echo $help_filter; ?>"><?php echo $entry_filter; ?></span></label> <div class="col-sm-10"> <input type="text" name="filter" value="" placeholder="<?php echo $entry_filter; ?>" id="input-filter" class="form-control" /> <div id="product-filter" class="well well-sm" style="height: 150px; overflow: auto;"> <?php foreach ($product_filters as $product_filter) { ?> <div id="product-filter<?php echo $product_filter['filter_id']; ?>"><i class="fa fa-minus-circle"></i> <?php echo $product_filter['name']; ?> <input type="hidden" name="product_filter[]" value="<?php echo $product_filter['filter_id']; ?>" /> </div> <?php } ?> </div> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label"><?php echo $entry_store; ?></label> <div class="col-sm-10"> <div class="well well-sm" style="height: 150px; overflow: auto;"> <div class="checkbox"> <label> <?php if (in_array(0, $product_store)) { ?> <input type="checkbox" name="product_store[]" value="0" checked="checked" /> <?php echo $text_default; ?> <?php } else { ?> <input type="checkbox" name="product_store[]" value="0" /> <?php echo $text_default; ?> <?php } ?> </label> </div> <?php foreach ($stores as $store) { ?> <div class="checkbox"> <label> <?php if (in_array($store['store_id'], $product_store)) { ?> <input type="checkbox" name="product_store[]" value="<?php echo $store['store_id']; ?>" checked="checked" /> <?php echo $store['name']; ?> <?php } else { ?> <input type="checkbox" name="product_store[]" value="<?php echo $store['store_id']; ?>" /> <?php echo $store['name']; ?> <?php } ?> </label> </div> <?php } ?> </div> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-download"><span data-toggle="tooltip" title="<?php echo $help_download; ?>"><?php echo $entry_download; ?></span></label> <div class="col-sm-10"> <input type="text" name="download" value="" placeholder="<?php echo $entry_download; ?>" id="input-download" class="form-control" /> <div id="product-download" class="well well-sm" style="height: 150px; overflow: auto;"> <?php foreach ($product_downloads as $product_download) { ?> <div id="product-download<?php echo $product_download['download_id']; ?>"><i class="fa fa-minus-circle"></i> <?php echo $product_download['name']; ?> <input type="hidden" name="product_download[]" value="<?php echo $product_download['download_id']; ?>" /> </div> <?php } ?> </div> </div> </div> <div class="form-group"> <label class="col-sm-2 control-label" for="input-related"><span data-toggle="tooltip" title="<?php echo $help_related; ?>"><?php echo $entry_related; ?></span></label> <div class="col-sm-10"> <input type="text" name="related" value="" placeholder="<?php echo $entry_related; ?>" id="input-related" class="form-control" /> <div id="product-related" class="well well-sm" style="height: 150px; overflow: auto;"> <?php foreach ($product_relateds as $product_related) { ?> <div id="product-related<?php echo $product_related['product_id']; ?>"><i class="fa fa-minus-circle"></i> <?php echo $product_related['name']; ?> <input type="hidden" name="product_related[]" value="<?php echo $product_related['product_id']; ?>" /> </div> <?php } ?> </div> </div> </div> </div> <div class="tab-pane" id="tab-attribute"> <div class="table-responsive"> <table id="attribute" class="table table-striped table-bordered table-hover"> <thead> <tr> <td class="text-left"><?php echo $entry_attribute; ?></td> <td class="text-left"><?php echo $entry_text; ?></td> <td></td> </tr> </thead> <tbody> <?php $attribute_row = 0; ?> <?php foreach ($product_attributes as $product_attribute) { ?> <tr id="attribute-row<?php echo $attribute_row; ?>"> <td class="text-left" style="width: 40%;"><input type="text" name="product_attribute[<?php echo $attribute_row; ?>][name]" value="<?php echo $product_attribute['name']; ?>" placeholder="<?php echo $entry_attribute; ?>" class="form-control" /> <input type="hidden" name="product_attribute[<?php echo $attribute_row; ?>][attribute_id]" value="<?php echo $product_attribute['attribute_id']; ?>" /></td> <td class="text-left"><?php foreach ($languages as $language) { ?> <div class="input-group"><span class="input-group-addon"><img src="view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" /></span> <textarea name="product_attribute[<?php echo $attribute_row; ?>][product_attribute_description][<?php echo $language['language_id']; ?>][text]" rows="5" placeholder="<?php echo $entry_text; ?>" class="form-control"><?php echo isset($product_attribute['product_attribute_description'][$language['language_id']]) ? $product_attribute['product_attribute_description'][$language['language_id']]['text'] : ''; ?></textarea> </div> <?php } ?></td> <td class="text-left"><button type="button" onclick="$('#attribute-row<?php echo $attribute_row; ?>').remove();" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td> </tr> <?php $attribute_row++; ?> <?php } ?> </tbody> <tfoot> <tr> <td colspan="2"></td> <td class="text-left"><button type="button" onclick="addAttribute();" data-toggle="tooltip" title="<?php echo $button_attribute_add; ?>" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td> </tr> </tfoot> </table> </div> </div> <div class="tab-pane" id="tab-option"> <div class="row"> <div class="col-sm-2"> <ul class="nav nav-pills nav-stacked" id="option"> <?php $option_row = 0; ?> <?php foreach ($product_options as $product_option) { ?> <li><a href="#tab-option<?php echo $option_row; ?>" data-toggle="tab"><i class="fa fa-minus-circle" onclick="$('a[href=\'#tab-option<?php echo $option_row; ?>\']').parent().remove(); $('#tab-option<?php echo $option_row; ?>').remove(); $('#option a:first').tab('show');"></i> <?php echo $product_option['name']; ?></a></li> <?php $option_row++; ?> <?php } ?> <li> <input type="text" name="option" value="" placeholder="<?php echo $entry_option; ?>" id="input-option" class="form-control" /> </li> </ul> </div> <div class="col-sm-10"> <div class="tab-content"> <?php $option_row = 0; ?> <?php $option_value_row = 0; ?> <?php foreach ($product_options as $product_option) { ?> <div class="tab-pane" id="tab-option<?php echo $option_row; ?>"> <input type="hidden" name="product_option[<?php echo $option_row; ?>][product_option_id]" value="<?php echo $product_option['product_option_id']; ?>" /> <input type="hidden" name="product_option[<?php echo $option_row; ?>][name]" value="<?php echo $product_option['name']; ?>" /> <input type="hidden" name="product_option[<?php echo $option_row; ?>][option_id]" value="<?php echo $product_option['option_id']; ?>" /> <input type="hidden" name="product_option[<?php echo $option_row; ?>][type]" value="<?php echo $product_option['type']; ?>" /> <div class="form-group"> <label class="col-sm-2 control-label" for="input-required<?php echo $option_row; ?>"><?php echo $entry_required; ?></label> <div class="col-sm-10"> <select name="product_option[<?php echo $option_row; ?>][required]" id="input-required<?php echo $option_row; ?>" class="form-control"> <?php if ($product_option['required']) { ?> <option value="1" selected="selected"><?php echo $text_yes; ?></option> <option value="0"><?php echo $text_no; ?></option> <?php } else { ?> <option value="1"><?php echo $text_yes; ?></option> <option value="0" selected="selected"><?php echo $text_no; ?></option> <?php } ?> </select> </div> </div> <?php if ($product_option['type'] == 'text') { ?> <div class="form-group"> <label class="col-sm-2 control-label" for="input-value<?php echo $option_row; ?>"><?php echo $entry_option_value; ?></label> <div class="col-sm-10"> <input type="text" name="product_option[<?php echo $option_row; ?>][value]" value="<?php echo $product_option['value']; ?>" placeholder="<?php echo $entry_option_value; ?>" id="input-value<?php echo $option_row; ?>" class="form-control" /> </div> </div> <?php } ?> <?php if ($product_option['type'] == 'textarea') { ?> <div class="form-group"> <label class="col-sm-2 control-label" for="input-value<?php echo $option_row; ?>"><?php echo $entry_option_value; ?></label> <div class="col-sm-10"> <textarea name="product_option[<?php echo $option_row; ?>][value]" rows="5" placeholder="<?php echo $entry_option_value; ?>" id="input-value<?php echo $option_row; ?>" class="form-control"><?php echo $product_option['value']; ?></textarea> </div> </div> <?php } ?> <?php if ($product_option['type'] == 'file') { ?> <div class="form-group" style="display: none;"> <label class="col-sm-2 control-label" for="input-value<?php echo $option_row; ?>"><?php echo $entry_option_value; ?></label> <div class="col-sm-10"> <input type="text" name="product_option[<?php echo $option_row; ?>][value]" value="<?php echo $product_option['value']; ?>" placeholder="<?php echo $entry_option_value; ?>" id="input-value<?php echo $option_row; ?>" class="form-control" /> </div> </div> <?php } ?> <?php if ($product_option['type'] == 'date') { ?> <div class="form-group"> <label class="col-sm-2 control-label" for="input-value<?php echo $option_row; ?>"><?php echo $entry_option_value; ?></label> <div class="col-sm-3"> <div class="input-group date"> <input type="text" name="product_option[<?php echo $option_row; ?>][value]" value="<?php echo $product_option['value']; ?>" placeholder="<?php echo $entry_option_value; ?>" data-date-format="YYYY-MM-DD" id="input-value<?php echo $option_row; ?>" class="form-control" /> <span class="input-group-btn"> <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button> </span></div> </div> </div> <?php } ?> <?php if ($product_option['type'] == 'time') { ?> <div class="form-group"> <label class="col-sm-2 control-label" for="input-value<?php echo $option_row; ?>"><?php echo $entry_option_value; ?></label> <div class="col-sm-10"> <div class="input-group time"> <input type="text" name="product_option[<?php echo $option_row; ?>][value]" value="<?php echo $product_option['value']; ?>" placeholder="<?php echo $entry_option_value; ?>" data-date-format="HH:mm" id="input-value<?php echo $option_row; ?>" class="form-control" /> <span class="input-group-btn"> <button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button> </span></div> </div> </div> <?php } ?> <?php if ($product_option['type'] == 'datetime') { ?> <div class="form-group"> <label class="col-sm-2 control-label" for="input-value<?php echo $option_row; ?>"><?php echo $entry_option_value; ?></label> <div class="col-sm-10"> <div class="input-group datetime"> <input type="text" name="product_option[<?php echo $option_row; ?>][value]" value="<?php echo $product_option['value']; ?>" placeholder="<?php echo $entry_option_value; ?>" data-date-format="YYYY-MM-DD HH:mm" id="input-value<?php echo $option_row; ?>" class="form-control" /> <span class="input-group-btn"> <button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button> </span></div> </div> </div> <?php } ?> <?php if ($product_option['type'] == 'select' || $product_option['type'] == 'radio' || $product_option['type'] == 'checkbox' || $product_option['type'] == 'image') { ?> <div class="table-responsive"> <table id="option-value<?php echo $option_row; ?>" class="table table-striped table-bordered table-hover"> <thead> <tr> <td class="text-left"><?php echo $entry_option_value; ?></td> <td class="text-right"><?php echo $entry_quantity; ?></td> <td class="text-left"><?php echo $entry_subtract; ?></td> <td class="text-right"><?php echo $entry_price; ?></td> <td class="text-right"><?php echo $entry_option_points; ?></td> <td class="text-right"><?php echo $entry_weight; ?></td> <td></td> </tr> </thead> <tbody> <?php foreach ($product_option['product_option_value'] as $product_option_value) { ?> <tr id="option-value-row<?php echo $option_value_row; ?>"> <td class="text-left"><select name="product_option[<?php echo $option_row; ?>][product_option_value][<?php echo $option_value_row; ?>][option_value_id]" class="form-control"> <?php if (isset($option_values[$product_option['option_id']])) { ?> <?php foreach ($option_values[$product_option['option_id']] as $option_value) { ?> <?php if ($option_value['option_value_id'] == $product_option_value['option_value_id']) { ?> <option value="<?php echo $option_value['option_value_id']; ?>" selected="selected"><?php echo $option_value['name']; ?></option> <?php } else { ?> <option value="<?php echo $option_value['option_value_id']; ?>"><?php echo $option_value['name']; ?></option> <?php } ?> <?php } ?> <?php } ?> </select> <input type="hidden" name="product_option[<?php echo $option_row; ?>][product_option_value][<?php echo $option_value_row; ?>][product_option_value_id]" value="<?php echo $product_option_value['product_option_value_id']; ?>" /></td> <td class="text-right"><input type="text" name="product_option[<?php echo $option_row; ?>][product_option_value][<?php echo $option_value_row; ?>][quantity]" value="<?php echo $product_option_value['quantity']; ?>" placeholder="<?php echo $entry_quantity; ?>" class="form-control" /></td> <td class="text-left"><select name="product_option[<?php echo $option_row; ?>][product_option_value][<?php echo $option_value_row; ?>][subtract]" class="form-control"> <?php if ($product_option_value['subtract']) { ?> <option value="1" selected="selected"><?php echo $text_yes; ?></option> <option value="0"><?php echo $text_no; ?></option> <?php } else { ?> <option value="1"><?php echo $text_yes; ?></option> <option value="0" selected="selected"><?php echo $text_no; ?></option> <?php } ?> </select></td> <td class="text-right"><select name="product_option[<?php echo $option_row; ?>][product_option_value][<?php echo $option_value_row; ?>][price_prefix]" class="form-control"> <?php if ($product_option_value['price_prefix'] == '+') { ?> <option value="+" selected="selected">+</option> <?php } else { ?> <option value="+">+</option> <?php } ?> <?php if ($product_option_value['price_prefix'] == '-') { ?> <option value="-" selected="selected">-</option> <?php } else { ?> <option value="-">-</option> <?php } ?> </select> <input type="text" name="product_option[<?php echo $option_row; ?>][product_option_value][<?php echo $option_value_row; ?>][price]" value="<?php echo $product_option_value['price']; ?>" placeholder="<?php echo $entry_price; ?>" class="form-control" /></td> <td class="text-right"><select name="product_option[<?php echo $option_row; ?>][product_option_value][<?php echo $option_value_row; ?>][points_prefix]" class="form-control"> <?php if ($product_option_value['points_prefix'] == '+') { ?> <option value="+" selected="selected">+</option> <?php } else { ?> <option value="+">+</option> <?php } ?> <?php if ($product_option_value['points_prefix'] == '-') { ?> <option value="-" selected="selected">-</option> <?php } else { ?> <option value="-">-</option> <?php } ?> </select> <input type="text" name="product_option[<?php echo $option_row; ?>][product_option_value][<?php echo $option_value_row; ?>][points]" value="<?php echo $product_option_value['points']; ?>" placeholder="<?php echo $entry_points; ?>" class="form-control" /></td> <td class="text-right"><select name="product_option[<?php echo $option_row; ?>][product_option_value][<?php echo $option_value_row; ?>][weight_prefix]" class="form-control"> <?php if ($product_option_value['weight_prefix'] == '+') { ?> <option value="+" selected="selected">+</option> <?php } else { ?> <option value="+">+</option> <?php } ?> <?php if ($product_option_value['weight_prefix'] == '-') { ?> <option value="-" selected="selected">-</option> <?php } else { ?> <option value="-">-</option> <?php } ?> </select> <input type="text" name="product_option[<?php echo $option_row; ?>][product_option_value][<?php echo $option_value_row; ?>][weight]" value="<?php echo $product_option_value['weight']; ?>" placeholder="<?php echo $entry_weight; ?>" class="form-control" /></td> <td class="text-left"><button type="button" onclick="$(this).tooltip('destroy');$('#option-value-row<?php echo $option_value_row; ?>').remove();" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td> </tr> <?php $option_value_row++; ?> <?php } ?> </tbody> <tfoot> <tr> <td colspan="6"></td> <td class="text-left"><button type="button" onclick="addOptionValue('<?php echo $option_row; ?>');" data-toggle="tooltip" title="<?php echo $button_option_value_add; ?>" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td> </tr> </tfoot> </table> </div> <select id="option-values<?php echo $option_row; ?>" style="display: none;"> <?php if (isset($option_values[$product_option['option_id']])) { ?> <?php foreach ($option_values[$product_option['option_id']] as $option_value) { ?> <option value="<?php echo $option_value['option_value_id']; ?>"><?php echo $option_value['name']; ?></option> <?php } ?> <?php } ?> </select> <?php } ?> </div> <?php $option_row++; ?> <?php } ?> </div> </div> </div> </div> <div class="tab-pane" id="tab-recurring"> <div class="table-responsive"> <table class="table table-striped table-bordered table-hover"> <thead> <tr> <td class="text-left"><?php echo $entry_recurring; ?></td> <td class="text-left"><?php echo $entry_customer_group; ?></td> <td class="text-left"></td> </tr> </thead> <tbody> <?php $recurring_row = 0; ?> <?php foreach ($product_recurrings as $product_recurring) { ?> <tr id="recurring-row<?php echo $recurring_row; ?>"> <td class="text-left"><select name="product_recurring[<?php echo $recurring_row; ?>][recurring_id]" class="form-control"> <?php foreach ($recurrings as $recurring) { ?> <?php if ($recurring['recurring_id'] == $product_recurring['recurring_id']) { ?> <option value="<?php echo $recurring['recurring_id']; ?>" selected="selected"><?php echo $recurring['name']; ?></option> <?php } else { ?> <option value="<?php echo $recurring['recurring_id']; ?>"><?php echo $recurring['name']; ?></option> <?php } ?> <?php } ?> </select></td> <td class="text-left"><select name="product_recurring[<?php echo $recurring_row; ?>][customer_group_id]" class="form-control"> <?php foreach ($customer_groups as $customer_group) { ?> <?php if ($customer_group['customer_group_id'] == $product_recurring['customer_group_id']) { ?> <option value="<?php echo $customer_group['customer_group_id']; ?>" selected="selected"><?php echo $customer_group['name']; ?></option> <?php } else { ?> <option value="<?php echo $customer_group['customer_group_id']; ?>"><?php echo $customer_group['name']; ?></option> <?php } ?> <?php } ?> </select></td> <td class="text-left"><button type="button" onclick="$('#recurring-row<?php echo $recurring_row; ?>').remove()" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td> </tr> <?php $recurring_row++; ?> <?php } ?> </tbody> <tfoot> <tr> <td colspan="2"></td> <td class="text-left"><button type="button" onclick="addRecurring()" data-toggle="tooltip" title="<?php echo $button_recurring_add; ?>" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td> </tr> </tfoot> </table> </div> </div> <div class="tab-pane" id="tab-discount"> <div class="table-responsive"> <table id="discount" class="table table-striped table-bordered table-hover"> <thead> <tr> <td class="text-left"><?php echo $entry_customer_group; ?></td> <td class="text-right"><?php echo $entry_quantity; ?></td> <td class="text-right"><?php echo $entry_priority; ?></td> <td class="text-right"><?php echo $entry_price; ?></td> <td class="text-left"><?php echo $entry_date_start; ?></td> <td class="text-left"><?php echo $entry_date_end; ?></td> <td></td> </tr> </thead> <tbody> <?php $discount_row = 0; ?> <?php foreach ($product_discounts as $product_discount) { ?> <tr id="discount-row<?php echo $discount_row; ?>"> <td class="text-left"><select name="product_discount[<?php echo $discount_row; ?>][customer_group_id]" class="form-control"> <?php foreach ($customer_groups as $customer_group) { ?> <?php if ($customer_group['customer_group_id'] == $product_discount['customer_group_id']) { ?> <option value="<?php echo $customer_group['customer_group_id']; ?>" selected="selected"><?php echo $customer_group['name']; ?></option> <?php } else { ?> <option value="<?php echo $customer_group['customer_group_id']; ?>"><?php echo $customer_group['name']; ?></option> <?php } ?> <?php } ?> </select></td> <td class="text-right"><input type="text" name="product_discount[<?php echo $discount_row; ?>][quantity]" value="<?php echo $product_discount['quantity']; ?>" placeholder="<?php echo $entry_quantity; ?>" class="form-control" /></td> <td class="text-right"><input type="text" name="product_discount[<?php echo $discount_row; ?>][priority]" value="<?php echo $product_discount['priority']; ?>" placeholder="<?php echo $entry_priority; ?>" class="form-control" /></td> <td class="text-right"><input type="text" name="product_discount[<?php echo $discount_row; ?>][price]" value="<?php echo $product_discount['price']; ?>" placeholder="<?php echo $entry_price; ?>" class="form-control" /></td> <td class="text-left" style="width: 20%;"><div class="input-group date"> <input type="text" name="product_discount[<?php echo $discount_row; ?>][date_start]" value="<?php echo $product_discount['date_start']; ?>" placeholder="<?php echo $entry_date_start; ?>" data-date-format="YYYY-MM-DD" class="form-control" /> <span class="input-group-btn"> <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button> </span></div></td> <td class="text-left" style="width: 20%;"><div class="input-group date"> <input type="text" name="product_discount[<?php echo $discount_row; ?>][date_end]" value="<?php echo $product_discount['date_end']; ?>" placeholder="<?php echo $entry_date_end; ?>" data-date-format="YYYY-MM-DD" class="form-control" /> <span class="input-group-btn"> <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button> </span></div></td> <td class="text-left"><button type="button" onclick="$('#discount-row<?php echo $discount_row; ?>').remove();" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td> </tr> <?php $discount_row++; ?> <?php } ?> </tbody> <tfoot> <tr> <td colspan="6"></td> <td class="text-left"><button type="button" onclick="addDiscount();" data-toggle="tooltip" title="<?php echo $button_discount_add; ?>" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td> </tr> </tfoot> </table> </div> </div> <div class="tab-pane" id="tab-special"> <div class="table-responsive"> <table id="special" class="table table-striped table-bordered table-hover"> <thead> <tr> <td class="text-left"><?php echo $entry_customer_group; ?></td> <td class="text-right"><?php echo $entry_priority; ?></td> <td class="text-right"><?php echo $entry_price; ?></td> <td class="text-left"><?php echo $entry_date_start; ?></td> <td class="text-left"><?php echo $entry_date_end; ?></td> <td></td> </tr> </thead> <tbody> <?php $special_row = 0; ?> <?php foreach ($product_specials as $product_special) { ?> <tr id="special-row<?php echo $special_row; ?>"> <td class="text-left"><select name="product_special[<?php echo $special_row; ?>][customer_group_id]" class="form-control"> <?php foreach ($customer_groups as $customer_group) { ?> <?php if ($customer_group['customer_group_id'] == $product_special['customer_group_id']) { ?> <option value="<?php echo $customer_group['customer_group_id']; ?>" selected="selected"><?php echo $customer_group['name']; ?></option> <?php } else { ?> <option value="<?php echo $customer_group['customer_group_id']; ?>"><?php echo $customer_group['name']; ?></option> <?php } ?> <?php } ?> </select></td> <td class="text-right"><input type="text" name="product_special[<?php echo $special_row; ?>][priority]" value="<?php echo $product_special['priority']; ?>" placeholder="<?php echo $entry_priority; ?>" class="form-control" /></td> <td class="text-right"><input type="text" name="product_special[<?php echo $special_row; ?>][price]" value="<?php echo $product_special['price']; ?>" placeholder="<?php echo $entry_price; ?>" class="form-control" /></td> <td class="text-left" style="width: 20%;"><div class="input-group date"> <input type="text" name="product_special[<?php echo $special_row; ?>][date_start]" value="<?php echo $product_special['date_start']; ?>" placeholder="<?php echo $entry_date_start; ?>" data-date-format="YYYY-MM-DD" class="form-control" /> <span class="input-group-btn"> <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button> </span></div></td> <td class="text-left" style="width: 20%;"><div class="input-group date"> <input type="text" name="product_special[<?php echo $special_row; ?>][date_end]" value="<?php echo $product_special['date_end']; ?>" placeholder="<?php echo $entry_date_end; ?>" data-date-format="YYYY-MM-DD" class="form-control" /> <span class="input-group-btn"> <button class="btn btn-default" type="button"><i class="fa fa-calendar"></i></button> </span></div></td> <td class="text-left"><button type="button" onclick="$('#special-row<?php echo $special_row; ?>').remove();" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td> </tr> <?php $special_row++; ?> <?php } ?> </tbody> <tfoot> <tr> <td colspan="5"></td> <td class="text-left"><button type="button" onclick="addSpecial();" data-toggle="tooltip" title="<?php echo $button_special_add; ?>" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td> </tr> </tfoot> </table> </div> </div> <div class="tab-pane" id="tab-image"> <div class="table-responsive"> <table id="images" class="table table-striped table-bordered table-hover"> <thead> <tr> <td class="text-left"><?php echo $entry_image; ?></td> <td class="text-right"><?php echo $entry_sort_order; ?></td> <td></td> </tr> </thead> <tbody> <?php $image_row = 0; ?> <?php foreach ($product_images as $product_image) { ?> <tr id="image-row<?php echo $image_row; ?>"> <td class="text-left"><a href="" id="thumb-image<?php echo $image_row; ?>" data-toggle="image" class="img-thumbnail"><img src="<?php echo $product_image['thumb']; ?>" alt="" title="" data-placeholder="<?php echo $placeholder; ?>" /></a><input type="hidden" name="product_image[<?php echo $image_row; ?>][image]" value="<?php echo $product_image['image']; ?>" id="input-image<?php echo $image_row; ?>" /></td> <td class="text-right"><input type="text" name="product_image[<?php echo $image_row; ?>][sort_order]" value="<?php echo $product_image['sort_order']; ?>" placeholder="<?php echo $entry_sort_order; ?>" class="form-control" /></td> <td class="text-left"><button type="button" onclick="$('#image-row<?php echo $image_row; ?>').remove();" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td> </tr> <?php $image_row++; ?> <?php } ?> </tbody> <tfoot> <tr> <td colspan="2"></td> <td class="text-left"><button type="button" onclick="addImage();" data-toggle="tooltip" title="<?php echo $button_image_add; ?>" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td> </tr> </tfoot> </table> </div> </div> <div class="tab-pane" id="tab-reward"> <div class="form-group"> <label class="col-sm-2 control-label" for="input-points"><span data-toggle="tooltip" title="<?php echo $help_points; ?>"><?php echo $entry_points; ?></span></label> <div class="col-sm-10"> <input type="text" name="points" value="<?php echo $points; ?>" placeholder="<?php echo $entry_points; ?>" id="input-points" class="form-control" /> </div> </div> <div class="table-responsive"> <table class="table table-bordered table-hover"> <thead> <tr> <td class="text-left"><?php echo $entry_customer_group; ?></td> <td class="text-right"><?php echo $entry_reward; ?></td> </tr> </thead> <tbody> <?php foreach ($customer_groups as $customer_group) { ?> <tr> <td class="text-left"><?php echo $customer_group['name']; ?></td> <td class="text-right"><input type="text" name="product_reward[<?php echo $customer_group['customer_group_id']; ?>][points]" value="<?php echo isset($product_reward[$customer_group['customer_group_id']]) ? $product_reward[$customer_group['customer_group_id']]['points'] : ''; ?>" class="form-control" /></td> </tr> <?php } ?> </tbody> </table> </div> </div> <div class="tab-pane" id="tab-design"> <div class="table-responsive"> <table class="table table-bordered table-hover"> <thead> <tr> <td class="text-left"><?php echo $entry_store; ?></td> <td class="text-left"><?php echo $entry_layout; ?></td> </tr> </thead> <tbody> <tr> <td class="text-left"><?php echo $text_default; ?></td> <td class="text-left"><select name="product_layout[0]" class="form-control"> <option value=""></option> <?php foreach ($layouts as $layout) { ?> <?php if (isset($product_layout[0]) && $product_layout[0] == $layout['layout_id']) { ?> <option value="<?php echo $layout['layout_id']; ?>" selected="selected"><?php echo $layout['name']; ?></option> <?php } else { ?> <option value="<?php echo $layout['layout_id']; ?>"><?php echo $layout['name']; ?></option> <?php } ?> <?php } ?> </select></td> </tr> <?php foreach ($stores as $store) { ?> <tr> <td class="text-left"><?php echo $store['name']; ?></td> <td class="text-left"><select name="product_layout[<?php echo $store['store_id']; ?>]" class="form-control"> <option value=""></option> <?php foreach ($layouts as $layout) { ?> <?php if (isset($product_layout[$store['store_id']]) && $product_layout[$store['store_id']] == $layout['layout_id']) { ?> <option value="<?php echo $layout['layout_id']; ?>" selected="selected"><?php echo $layout['name']; ?></option> <?php } else { ?> <option value="<?php echo $layout['layout_id']; ?>"><?php echo $layout['name']; ?></option> <?php } ?> <?php } ?> </select></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </form> </div> </div> </div> <script type="text/javascript"><!-- <?php foreach ($languages as $language) { ?> <?php if ($ckeditor) { ?> ckeditorInit('input-description<?php echo $language['language_id']; ?>', '<?php echo $token; ?>'); <?php } else { ?> $('#input-description<?php echo $language['language_id']; ?>').summernote({height: 300, lang:'<?php echo $lang; ?>'}); <?php } ?> <?php } ?> //--></script> <script type="text/javascript"><!-- // Filter $('input[name=\'filter\']').autocomplete({ 'source': function(request, response) { $.ajax({ url: 'index.php?route=catalog/filter/autocomplete&token=<?php echo $token; ?>&filter_name=' + encodeURIComponent(request), dataType: 'json', success: function(json) { response($.map(json, function(item) { return { label: item['name'], value: item['filter_id'] } })); } }); }, 'select': function(item) { $('input[name=\'filter\']').val(''); $('#product-filter' + item['value']).remove(); $('#product-filter').append('<div id="product-filter' + item['value'] + '"><i class="fa fa-minus-circle"></i> ' + item['label'] + '<input type="hidden" name="product_filter[]" value="' + item['value'] + '" /></div>'); } }); $('#product-filter').delegate('.fa-minus-circle', 'click', function() { $(this).parent().remove(); }); // Downloads $('input[name=\'download\']').autocomplete({ 'source': function(request, response) { $.ajax({ url: 'index.php?route=catalog/download/autocomplete&token=<?php echo $token; ?>&filter_name=' + encodeURIComponent(request), dataType: 'json', success: function(json) { response($.map(json, function(item) { return { label: item['name'], value: item['download_id'] } })); } }); }, 'select': function(item) { $('input[name=\'download\']').val(''); $('#product-download' + item['value']).remove(); $('#product-download').append('<div id="product-download' + item['value'] + '"><i class="fa fa-minus-circle"></i> ' + item['label'] + '<input type="hidden" name="product_download[]" value="' + item['value'] + '" /></div>'); } }); $('#product-download').delegate('.fa-minus-circle', 'click', function() { $(this).parent().remove(); }); // Related $('input[name=\'related\']').autocomplete({ 'source': function(request, response) { $.ajax({ url: 'index.php?route=catalog/product/autocomplete&token=<?php echo $token; ?>&filter_name=' + encodeURIComponent(request), dataType: 'json', success: function(json) { response($.map(json, function(item) { return { label: item['name'], value: item['product_id'] } })); } }); }, 'select': function(item) { $('input[name=\'related\']').val(''); $('#product-related' + item['value']).remove(); $('#product-related').append('<div id="product-related' + item['value'] + '"><i class="fa fa-minus-circle"></i> ' + item['label'] + '<input type="hidden" name="product_related[]" value="' + item['value'] + '" /></div>'); } }); $('#product-related').delegate('.fa-minus-circle', 'click', function() { $(this).parent().remove(); }); //--></script> <script type="text/javascript"><!-- var attribute_row = <?php echo $attribute_row; ?>; function addAttribute() { html = '<tr id="attribute-row' + attribute_row + '">'; html += ' <td class="text-left" style="width: 20%;"><input type="text" name="product_attribute[' + attribute_row + '][name]" value="" placeholder="<?php echo $entry_attribute; ?>" class="form-control" /><input type="hidden" name="product_attribute[' + attribute_row + '][attribute_id]" value="" /></td>'; html += ' <td class="text-left">'; <?php foreach ($languages as $language) { ?> html += '<div class="input-group"><span class="input-group-addon"><img src="view/image/flags/<?php echo $language['image']; ?>" title="<?php echo $language['name']; ?>" /></span><textarea name="product_attribute[' + attribute_row + '][product_attribute_description][<?php echo $language['language_id']; ?>][text]" rows="5" placeholder="<?php echo $entry_text; ?>" class="form-control"></textarea></div>'; <?php } ?> html += ' </td>'; html += ' <td class="text-left"><button type="button" onclick="$(\'#attribute-row' + attribute_row + '\').remove();" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>'; html += '</tr>'; $('#attribute tbody').append(html); attributeautocomplete(attribute_row); attribute_row++; } function attributeautocomplete(attribute_row) { $('input[name=\'product_attribute[' + attribute_row + '][name]\']').autocomplete({ 'source': function(request, response) { $.ajax({ url: 'index.php?route=catalog/attribute/autocomplete&token=<?php echo $token; ?>&filter_name=' + encodeURIComponent(request), dataType: 'json', success: function(json) { response($.map(json, function(item) { return { category: item.attribute_group, label: item.name, value: item.attribute_id } })); } }); }, 'select': function(item) { $('input[name=\'product_attribute[' + attribute_row + '][name]\']').val(item['label']); $('input[name=\'product_attribute[' + attribute_row + '][attribute_id]\']').val(item['value']); } }); } $('#attribute tbody tr').each(function(index, element) { attributeautocomplete(index); }); //--></script> <script type="text/javascript"><!-- var option_row = <?php echo $option_row; ?>; $('input[name=\'option\']').autocomplete({ 'source': function(request, response) { $.ajax({ url: 'index.php?route=catalog/option/autocomplete&token=<?php echo $token; ?>&filter_name=' + encodeURIComponent(request), dataType: 'json', success: function(json) { response($.map(json, function(item) { return { category: item['category'], label: item['name'], value: item['option_id'], type: item['type'], option_value: item['option_value'] } })); } }); }, 'select': function(item) { html = '<div class="tab-pane" id="tab-option' + option_row + '">'; html += ' <input type="hidden" name="product_option[' + option_row + '][product_option_id]" value="" />'; html += ' <input type="hidden" name="product_option[' + option_row + '][name]" value="' + item['label'] + '" />'; html += ' <input type="hidden" name="product_option[' + option_row + '][option_id]" value="' + item['value'] + '" />'; html += ' <input type="hidden" name="product_option[' + option_row + '][type]" value="' + item['type'] + '" />'; html += ' <div class="form-group">'; html += ' <label class="col-sm-2 control-label" for="input-required' + option_row + '"><?php echo $entry_required; ?></label>'; html += ' <div class="col-sm-10"><select name="product_option[' + option_row + '][required]" id="input-required' + option_row + '" class="form-control">'; html += ' <option value="1"><?php echo $text_yes; ?></option>'; html += ' <option value="0"><?php echo $text_no; ?></option>'; html += ' </select></div>'; html += ' </div>'; if (item['type'] == 'text') { html += ' <div class="form-group">'; html += ' <label class="col-sm-2 control-label" for="input-value' + option_row + '"><?php echo $entry_option_value; ?></label>'; html += ' <div class="col-sm-10"><input type="text" name="product_option[' + option_row + '][value]" value="" placeholder="<?php echo $entry_option_value; ?>" id="input-value' + option_row + '" class="form-control" /></div>'; html += ' </div>'; } if (item['type'] == 'textarea') { html += ' <div class="form-group">'; html += ' <label class="col-sm-2 control-label" for="input-value' + option_row + '"><?php echo $entry_option_value; ?></label>'; html += ' <div class="col-sm-10"><textarea name="product_option[' + option_row + '][value]" rows="5" placeholder="<?php echo $entry_option_value; ?>" id="input-value' + option_row + '" class="form-control"></textarea></div>'; html += ' </div>'; } if (item['type'] == 'file') { html += ' <div class="form-group" style="display: none;">'; html += ' <label class="col-sm-2 control-label" for="input-value' + option_row + '"><?php echo $entry_option_value; ?></label>'; html += ' <div class="col-sm-10"><input type="text" name="product_option[' + option_row + '][value]" value="" placeholder="<?php echo $entry_option_value; ?>" id="input-value' + option_row + '" class="form-control" /></div>'; html += ' </div>'; } if (item['type'] == 'date') { html += ' <div class="form-group">'; html += ' <label class="col-sm-2 control-label" for="input-value' + option_row + '"><?php echo $entry_option_value; ?></label>'; html += ' <div class="col-sm-3"><div class="input-group date"><input type="text" name="product_option[' + option_row + '][value]" value="" placeholder="<?php echo $entry_option_value; ?>" data-date-format="YYYY-MM-DD" id="input-value' + option_row + '" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></div>'; html += ' </div>'; } if (item['type'] == 'time') { html += ' <div class="form-group">'; html += ' <label class="col-sm-2 control-label" for="input-value' + option_row + '"><?php echo $entry_option_value; ?></label>'; html += ' <div class="col-sm-10"><div class="input-group time"><input type="text" name="product_option[' + option_row + '][value]" value="" placeholder="<?php echo $entry_option_value; ?>" data-date-format="HH:mm" id="input-value' + option_row + '" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></div>'; html += ' </div>'; } if (item['type'] == 'datetime') { html += ' <div class="form-group">'; html += ' <label class="col-sm-2 control-label" for="input-value' + option_row + '"><?php echo $entry_option_value; ?></label>'; html += ' <div class="col-sm-10"><div class="input-group datetime"><input type="text" name="product_option[' + option_row + '][value]" value="" placeholder="<?php echo $entry_option_value; ?>" data-date-format="YYYY-MM-DD HH:mm" id="input-value' + option_row + '" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></div>'; html += ' </div>'; } if (item['type'] == 'select' || item['type'] == 'radio' || item['type'] == 'checkbox' || item['type'] == 'image') { html += '<div class="table-responsive">'; html += ' <table id="option-value' + option_row + '" class="table table-striped table-bordered table-hover">'; html += ' <thead>'; html += ' <tr>'; html += ' <td class="text-left"><?php echo $entry_option_value; ?></td>'; html += ' <td class="text-right"><?php echo $entry_quantity; ?></td>'; html += ' <td class="text-left"><?php echo $entry_subtract; ?></td>'; html += ' <td class="text-right"><?php echo $entry_price; ?></td>'; html += ' <td class="text-right"><?php echo $entry_option_points; ?></td>'; html += ' <td class="text-right"><?php echo $entry_weight; ?></td>'; html += ' <td></td>'; html += ' </tr>'; html += ' </thead>'; html += ' <tbody>'; html += ' </tbody>'; html += ' <tfoot>'; html += ' <tr>'; html += ' <td colspan="6"></td>'; html += ' <td class="text-left"><button type="button" onclick="addOptionValue(' + option_row + ');" data-toggle="tooltip" title="<?php echo $button_option_value_add; ?>" class="btn btn-primary"><i class="fa fa-plus-circle"></i></button></td>'; html += ' </tr>'; html += ' </tfoot>'; html += ' </table>'; html += '</div>'; html += ' <select id="option-values' + option_row + '" style="display: none;">'; for (i = 0; i < item['option_value'].length; i++) { html += ' <option value="' + item['option_value']['option_value_id'] + '">' + item['option_value']['name'] + '</option>'; } html += ' </select>'; html += '</div>'; } $('#tab-option .tab-content').append(html); $('#option > li:last-child').before('<li><a href="#tab-option' + option_row + '" data-toggle="tab"><i class="fa fa-minus-circle" onclick="$(\'a[href=\\\'#tab-option' + option_row + '\\\']\').parent().remove(); $(\'#tab-option' + option_row + '\').remove(); $(\'#option a:first\').tab(\'show\')"></i> ' + item['label'] + '</li>'); $('#option a[href=\'#tab-option' + option_row + '\']').tab('show'); $('.date').datetimepicker({ pickTime: false }); $('.time').datetimepicker({ pickDate: false }); $('.datetime').datetimepicker({ pickDate: true, pickTime: true }); option_row++; } }); //--></script> <script type="text/javascript"><!-- var option_value_row = <?php echo $option_value_row; ?>; function addOptionValue(option_row) { html = '<tr id="option-value-row' + option_value_row + '">'; html += ' <td class="text-left"><select name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][option_value_id]" class="form-control">'; html += $('#option-values' + option_row).html(); html += ' </select><input type="hidden" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][product_option_value_id]" value="" /></td>'; html += ' <td class="text-right"><input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][quantity]" value="" placeholder="<?php echo $entry_quantity; ?>" class="form-control" /></td>'; html += ' <td class="text-left"><select name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][subtract]" class="form-control">'; html += ' <option value="1"><?php echo $text_yes; ?></option>'; html += ' <option value="0"><?php echo $text_no; ?></option>'; html += ' </select></td>'; html += ' <td class="text-right"><select name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][price_prefix]" class="form-control">'; html += ' <option value="+">+</option>'; html += ' <option value="-">-</option>'; html += ' </select>'; html += ' <input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][price]" value="" placeholder="<?php echo $entry_price; ?>" class="form-control" /></td>'; html += ' <td class="text-right"><select name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][points_prefix]" class="form-control">'; html += ' <option value="+">+</option>'; html += ' <option value="-">-</option>'; html += ' </select>'; html += ' <input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][points]" value="" placeholder="<?php echo $entry_points; ?>" class="form-control" /></td>'; html += ' <td class="text-right"><select name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][weight_prefix]" class="form-control">'; html += ' <option value="+">+</option>'; html += ' <option value="-">-</option>'; html += ' </select>'; html += ' <input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][weight]" value="" placeholder="<?php echo $entry_weight; ?>" class="form-control" /></td>'; html += ' <td class="text-left"><button type="button" onclick="$(this).tooltip(\'destroy\');$(\'#option-value-row' + option_value_row + '\').remove();" data-toggle="tooltip" rel="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>'; html += '</tr>'; $('#option-value' + option_row + ' tbody').append(html); $('[rel=tooltip]').tooltip(); option_value_row++; } //--></script> <script type="text/javascript"><!-- var discount_row = <?php echo $discount_row; ?>; function addDiscount() { html = '<tr id="discount-row' + discount_row + '">'; html += ' <td class="text-left"><select name="product_discount[' + discount_row + '][customer_group_id]" class="form-control">'; <?php foreach ($customer_groups as $customer_group) { ?> html += ' <option value="<?php echo $customer_group['customer_group_id']; ?>"><?php echo addslashes($customer_group['name']); ?></option>'; <?php } ?> html += ' </select></td>'; html += ' <td class="text-right"><input type="text" name="product_discount[' + discount_row + '][quantity]" value="" placeholder="<?php echo $entry_quantity; ?>" class="form-control" /></td>'; html += ' <td class="text-right"><input type="text" name="product_discount[' + discount_row + '][priority]" value="" placeholder="<?php echo $entry_priority; ?>" class="form-control" /></td>'; html += ' <td class="text-right"><input type="text" name="product_discount[' + discount_row + '][price]" value="" placeholder="<?php echo $entry_price; ?>" class="form-control" /></td>'; html += ' <td class="text-left" style="width: 20%;"><div class="input-group date"><input type="text" name="product_discount[' + discount_row + '][date_start]" value="" placeholder="<?php echo $entry_date_start; ?>" data-date-format="YYYY-MM-DD" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></td>'; html += ' <td class="text-left" style="width: 20%;"><div class="input-group date"><input type="text" name="product_discount[' + discount_row + '][date_end]" value="" placeholder="<?php echo $entry_date_end; ?>" data-date-format="YYYY-MM-DD" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></td>'; html += ' <td class="text-left"><button type="button" onclick="$(\'#discount-row' + discount_row + '\').remove();" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>'; html += '</tr>'; $('#discount tbody').append(html); $('.date').datetimepicker({ pickTime: false }); discount_row++; } //--></script> <script type="text/javascript"><!-- var special_row = <?php echo $special_row; ?>; function addSpecial() { html = '<tr id="special-row' + special_row + '">'; html += ' <td class="text-left"><select name="product_special[' + special_row + '][customer_group_id]" class="form-control">'; <?php foreach ($customer_groups as $customer_group) { ?> html += ' <option value="<?php echo $customer_group['customer_group_id']; ?>"><?php echo addslashes($customer_group['name']); ?></option>'; <?php } ?> html += ' </select></td>'; html += ' <td class="text-right"><input type="text" name="product_special[' + special_row + '][priority]" value="" placeholder="<?php echo $entry_priority; ?>" class="form-control" /></td>'; html += ' <td class="text-right"><input type="text" name="product_special[' + special_row + '][price]" value="" placeholder="<?php echo $entry_price; ?>" class="form-control" /></td>'; html += ' <td class="text-left" style="width: 20%;"><div class="input-group date"><input type="text" name="product_special[' + special_row + '][date_start]" value="" placeholder="<?php echo $entry_date_start; ?>" data-date-format="YYYY-MM-DD" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></td>'; html += ' <td class="text-left" style="width: 20%;"><div class="input-group date"><input type="text" name="product_special[' + special_row + '][date_end]" value="" placeholder="<?php echo $entry_date_end; ?>" data-date-format="YYYY-MM-DD" class="form-control" /><span class="input-group-btn"><button type="button" class="btn btn-default"><i class="fa fa-calendar"></i></button></span></div></td>'; html += ' <td class="text-left"><button type="button" onclick="$(\'#special-row' + special_row + '\').remove();" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>'; html += '</tr>'; $('#special tbody').append(html); $('.date').datetimepicker({ pickTime: false }); special_row++; } //--></script> <script type="text/javascript"><!-- var image_row = <?php echo $image_row; ?>; function addImage() { html = '<tr id="image-row' + image_row + '">'; html += ' <td class="text-left"><a href="" id="thumb-image' + image_row + '"data-toggle="image" class="img-thumbnail"><img src="<?php echo $placeholder; ?>" alt="" title="" data-placeholder="<?php echo $placeholder; ?>" /><input type="hidden" name="product_image[' + image_row + '][image]" value="" id="input-image' + image_row + '" /></td>'; html += ' <td class="text-right"><input type="text" name="product_image[' + image_row + '][sort_order]" value="" placeholder="<?php echo $entry_sort_order; ?>" class="form-control" /></td>'; html += ' <td class="text-left"><button type="button" onclick="$(\'#image-row' + image_row + '\').remove();" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></button></td>'; html += '</tr>'; $('#images tbody').append(html); image_row++; } //--></script> <script type="text/javascript"><!-- var recurring_row = <?php echo $recurring_row; ?>; function addRecurring() { recurring_row++; html = ''; html += '<tr id="recurring-row' + recurring_row + '">'; html += ' <td class="left">'; html += ' <select name="product_recurring[' + recurring_row + '][recurring_id]" class="form-control">>'; <?php foreach ($recurrings as $recurring) { ?> html += ' <option value="<?php echo $recurring['recurring_id']; ?>"><?php echo $recurring['name']; ?></option>'; <?php } ?> html += ' </select>'; html += ' </td>'; html += ' <td class="left">'; html += ' <select name="product_recurring[' + recurring_row + '][customer_group_id]" class="form-control">>'; <?php foreach ($customer_groups as $customer_group) { ?> html += ' <option value="<?php echo $customer_group['customer_group_id']; ?>"><?php echo $customer_group['name']; ?></option>'; <?php } ?> html += ' <select>'; html += ' </td>'; html += ' <td class="left">'; html += ' <a onclick="$(\'#recurring-row' + recurring_row + '\').remove()" data-toggle="tooltip" title="<?php echo $button_remove; ?>" class="btn btn-danger"><i class="fa fa-minus-circle"></i></a>'; html += ' </td>'; html += '</tr>'; $('#tab-recurring table tbody').append(html); } //--></script> <script type="text/javascript"><!-- $('.date').datetimepicker({ pickTime: false }); $('.time').datetimepicker({ pickDate: false }); $('.datetime').datetimepicker({ pickDate: true, pickTime: true }); //--></script> <script type="text/javascript"><!-- $('#language a:first').tab('show'); $('#option a:first').tab('show'); //--></script></div> <?php echo $footer; ?>
  14. При использовании мультиредактора поле налог нормально отображается а так же в базе sql тоже все ок. Но в карточке товара нет.
×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.