Перейти до вмісту
Пошук в
  • Детальніше...
Шукати результати, які ...
Шукати результати в ...

ocdroid

Користувачі
  
  • Публікації

    152
  • З нами

Усі публікації користувача ocdroid

  1. $.ajax({ type: 'POST', url: 'index.php?route=sale/order?ord_export&token=<?php echo $token; ?>', data: {}, }); ?
  2. <span>Ближайшая доставка:</span> <script type="text/javascript"> var Deldate=new Date() var hours=Deldate.getHours() if (hours>=5&&hours<=11) document.write('<b>сегодня</b>') else if (hours>=12&&hours<=17) document.write('<b>сегодня ночью</b>') else if (hours>=17&&hours<=23) document.write('<b>завтра утром</b>') else if (hours>=23&&hours<=5) document.write('<b>сегодня вечером</b>') </script> Но это быстрый костыль, без учета выходных.
  3. https://www.opencart.com/index.php?route=marketplace/extension/info&extension_id=31501&filter_member=Landsman
  4. Сабж. Пусть ваш праздник длится круглый год
  5. Версія 1.0

    117 завантажень

    Дополнение добавляет к сайту окно с текстом снизу. Нажатие на крестик закрывает окно для текущей сессии. Нажатие на кнопку подтверждения закрывает окно на один год. Мультиязычные настройки. Demo Распространяется as is
    Безкоштовне
  6. ocdroid

    logo

    @Rubik в шаблоне <img src="{{ logo }}" alt="{{ store_name }}" style="margin-bottom: 20px; border: none;" />
  7. ocdroid

    logo

    catalog\controller\mail\register.php $data['store_id'] = $this->config->get('config_store_id'); if ($data['store_id']) { $data['store_url'] = $this->config->get('config_url'); } else { if ($this->request->server['HTTPS']) { $data['store_url'] = HTTPS_SERVER; } else { $data['store_url'] = HTTP_SERVER; } } $data['logo'] = $data['store_url'] . 'image/' . $this->config->get('config_logo');
  8. было <td style="font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;">{{ product.name }} стало <td style="max-width:350px; font-size: 12px; border-right: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; text-align: left; padding: 7px;">{{ product.name }}
  9. Можно сделать разные группы покупателей и для них разнести цены. И с ценой для покупателя и с НДС никаких проблем не будет.
  10. ТСу нужна просто форма с отправкой на почту. Без калькуляции. Насколько я понял Возможно, пригодится:
  11. @Yamaradg Навскидку писал. Значит, нужно добавить в контроллере получение неформатированных данных типа if ($product_info['weight'] <= 0) { $pure_weight = false; } else { $pure_weight = $product_info['weight']; } . . . 'pure_weight' => $pure_weight, а затем уже в шаблоне условие на показ вроде <?php if ($product['pure_weight'];) { ?>
  12. catalog\controller\product\product.php если заменить 'required' => $option['required'] на 'required' => 1 то опции будут обязательными
  13. catalog\view\theme\default\template\product\compare.tpl <tr> <td><?php echo $text_dimension; ?></td> <?php foreach ($products as $product) { ?> <td><?php echo $product['length']; ?> x <?php echo $product['width']; ?> x <?php echo $product['height']; ?></td> <?php } ?> </tr> заменить на <tr> <?php if (($product['length'];) && ($product['width'];) && ($product['height'];)) { ?> <td><?php echo $text_dimension; ?></td> <?php foreach ($products as $product) { ?> <td><?php echo $product['length']; ?> x <?php echo $product['width']; ?> x <?php echo $product['height']; ?></td> <?php } ?> <?php } else { ?> <td></td> <?php foreach ($products as $product) { ?> <td></td> <?php } ?> <?php } ?> </tr> как то так
  14. admin\view\template\catalog\product_form.twig html += ' <td class="text-right"><input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][quantity]" value="" placeholder="{{ entry_quantity }}" class="form-control" /></td>'; заменить на html += ' <td class="text-right"><input type="text" name="product_option[' + option_row + '][product_option_value][' + option_value_row + '][quantity]" value="1" placeholder="{{ 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">{{ text_yes }}</option>'; html += ' <option value="0">{{ text_no }}</option>'; заменить на 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">{{ text_yes }}</option>'; html += ' <option value="0" selected="selected">{{ text_no }}</option>'; все. изменения лучше проводить модификатором, конечно.
  15. категории {% if thumb or description %} <div class="row"> {% if thumb %} <div class="col-sm-2"><img src="{{ thumb }}" alt="{{ heading_title }}" title="{{ heading_title }}" class="img-thumbnail" /></div> {% endif %} {% if description %} <div class="col-sm-10">{{ description }}</div> {% endif %}</div> <hr> {% endif %} и {% if categories %} <h3>{{ text_refine }}</h3> {% if categories|length <= 5 %} <div class="row"> <div class="col-sm-3"> <ul> {% for category in categories %} <li><a href="{{ category.href }}">{{ category.name }}</a></li> {% endfor %} </ul> </div> </div> {% else %} <div class="row">{% for category in categories|batch((categories|length / 4)|round(1, 'ceil')) %} <div class="col-sm-3"> <ul> {% for child in category %} <li><a href="{{ child.href }}">{{ child.name }}</a></li> {% endfor %} </ul> </div> {% endfor %}</div> <br /> {% endif %} {% endif %} поменять местами За дополнительные картинки в товаре отвечает код: {% if images %} {% for image in images %} <li class="image-additional"><a class="thumbnail" href="{{ image.popup }}" title="{{ heading_title }}"> <img src="{{ image.thumb }}" title="{{ heading_title }}" alt="{{ heading_title }}" /></a></li> {% endfor %} {% endif %}
  16. catalog\controller\product\category.php if ($category_info['image']) { $data['thumb'] = $this->model_tool_image->resize($category_info['image'], $this->config->get('theme_' . $this->config->get('config_theme') . '_image_category_width'), $this->config->get('theme_' . $this->config->get('config_theme') . '_image_category_height')); } else { $data['thumb'] = ''; } заменить на if ($category_info['image']) { if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) { $data['thumb'] = return $this->config->get('config_ssl') . 'image/' . $category_info['image']; } else { $data['thumb'] = return $this->config->get('config_url') . 'image/' . $category_info['image']; } } else { $data['thumb'] = ''; }
  17. @PiratRu , изменил путь, спасибо за внимательность. По поводу разных шаблонов... Например у Вас сейчас есть возможность выложить решение под Moneymaker :)
  18. catalog\controller\product\product.php $data['credit_price_calc'] = (($product_info['price'] + (($product_info['price'] * 20) / 100)) / 12); $data['credit_price'] = $this->currency->format($data['credit_price_calc'], $this->session->data['currency']); catalog\view\theme\*\template\product\product.tpl <?php echo $credit_price; ?>
×
×
  • Створити...

Important Information

На нашому сайті використовуються файли cookie і відбувається обробка деяких персональних даних користувачів, щоб поліпшити користувальницький інтерфейс. Щоб дізнатися для чого і які персональні дані ми обробляємо перейдіть за посиланням . Якщо Ви натиснете «Я даю згоду», це означає, що Ви розумієте і приймаєте всі умови, зазначені в цьому Повідомленні про конфіденційність.