-
Публікації
51 -
З нами
-
Відвідування
Відвідувачі профілю
Блок відвідувачів профілю відключений і не буде доступний широкому іншим користувачам
HeLL0's Achievements
-
Все, сам разобрался, спасибо
-
Ребят, помогите, пожалуйста, с контролером и tpl-кой( Вот часть кода, отвечающая за вывод результатов. Что с shipping делать?(( <tbody> <?php if ($products) { ?> <?php foreach ($products as $product) { ?> <tr> <td class="text-center"><?php if (in_array($product['product_id'], $selected)) { ?> <input type="checkbox" name="selected[]" value="<?php echo $product['product_id']; ?>" checked="checked" /> <?php } else { ?> <input type="checkbox" name="selected[]" value="<?php echo $product['product_id']; ?>" /> <?php } ?></td> <td class="text-center"><?php if ($product['image']) { ?> <img src="<?php echo $product['image']; ?>" alt="<?php echo $product['name']; ?>" class="img-thumbnail" /> <?php } else { ?> <span class="img-thumbnail list"><i class="fa fa-camera fa-2x"></i></span> <?php } ?></td> <td class="text-left"><?php echo $product['name']; ?></td> <td class="text-left"><?php echo $product_info['shipping']; ?></td> <td class="text-left"><?php echo $product['model']; ?></td> <td class="text-left"><?php if ($product['special']) { ?> <span style="text-decoration: line-through;"><?php echo $product['price']; ?></span><br/> <div class="text-danger"><?php echo $product['special']; ?></div> <?php } else { ?> <?php echo $product['price']; ?> <?php } ?></td> <td class="text-right"><?php if ($product['quantity'] <= 0) { ?> <span class="label label-warning"><?php echo $product['quantity']; ?></span> <?php } elseif ($product['quantity'] <= 5) { ?> <span class="label label-danger"><?php echo $product['quantity']; ?></span> <?php } else { ?> <span class="label label-success"><?php echo $product['quantity']; ?></span> <?php } ?></td> <td class="text-left"><?php echo $product['status']; ?></td> <td class="text-right"><a href="<?php echo $product['edit']; ?>" data-toggle="tooltip" title="<?php echo $button_edit; ?>" class="btn btn-primary"><i class="fa fa-pencil"></i></a></td> </tr> <?php } ?> <?php } else { ?> <tr> <td class="text-center" colspan="8"><?php echo $text_no_results; ?></td> </tr> <?php } ?> </tbody> эта часть из product_form.tpl, может, пригодится <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>
-
Друзья, подскажите, пожалуйста, как реализовать следующее: мне нужно, чтобы на странице со списком товаров выводилась еще одна колонка (вернее её результат), а именно пункт 'Требуется доставка? Да - Нет" К примеру, Изображения Название товара Модель Цена на сайте Количество Статус Доставка 3D Комплект постельного белья «ADVENTURE» HT-3DBLS-34 41.0000 10000 НЕТ как подобное реализовать?
-
Друзья, opencart 2.0.1.0 - в заказе не отображаются выбранные покупателем опции, каким образом возможно это реализовать?
-
Вы - лучший!!!! Спасибо огромное!!!!!!!! 3 часа игрался, а тут все так просто оказывается!
-
ладно, я разобрался чутка. один вопрос. вот как сделать так, чтобы это описание поддерживало html?
-
ну как все же перетащить описание продукта в это модальное окно?(
-
я заметил, что убрав строки 'description' => mb_substr(strip_tags(html_entity_decode($product['description'], ENT_QUOTES, 'UTF-8')), 0, 1000) . '..', и $this->data['description'] = html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8'); краткое описание все равно остаётся. Значит ли это что оно вызывается из другого файла?
-
Дорогие друзья, помогите пожалуйста!!! Уже мозги набекрень!! Есть модуль новые поступления, при нажатии на лупу, открывается модальное окно. Я хочу, чтобы там вместо краткого описания выводилось полное. Сайт Никак не могу это реализовать вот файл lastest.php <?php class ControllerModuleLatest extends Controller { public function index($setting) { $this->load->language('module/latest'); $data['heading_title'] = $this->language->get('heading_title'); $data['text_tax'] = $this->language->get('text_tax'); $data['button_cart'] = $this->language->get('button_cart'); $data['button_wishlist'] = $this->language->get('button_wishlist'); $data['button_compare'] = $this->language->get('button_compare'); $this->load->model('catalog/product'); $this->load->model('tool/image'); $data['products'] = array(); $filter_data = array( 'sort' => 'p.date_added', 'order' => 'DESC', 'start' => 0, 'limit' => $setting['limit'] ); $results = $this->model_catalog_product->getProducts($filter_data); if ($results) { foreach ($results as $result) { if ($result['image']) { $image = $this->model_tool_image->resize($result['image'], $setting['width'], $setting['height']); } else { $image = $this->model_tool_image->resize('placeholder.png', $setting['width'], $setting['height']); } $this->data['attribute_groups'] = $this->model_catalog_product->getProductAttributes($result['product_id']); $this->data['description'] = html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8'); if (($this->config->get('config_customer_price') && $this->customer->isLogged()) || !$this->config->get('config_customer_price')) { $price = $this->currency->format($this->tax->calculate($result['price'], $result['tax_class_id'], $this->config->get('config_tax'))); } else { $price = false; } if ((float)$result['special']) { $special = $this->currency->format($this->tax->calculate($result['special'], $result['tax_class_id'], $this->config->get('config_tax'))); } else { $special = false; } if ($this->config->get('config_tax')) { $tax = $this->currency->format((float)$result['special'] ? $result['special'] : $result['price']); } else { $tax = false; } if ($this->config->get('config_review_status')) { $rating = $result['rating']; } else { $rating = false; } $data['products'][] = array( 'product_id' => $result['product_id'], 'thumb' => $image, 'name' => $result['name'], 'description' => mb_substr(strip_tags(html_entity_decode($product['description'], ENT_QUOTES, 'UTF-8')), 0, 1000) . '..', 'attribute_groups' => $this->model_catalog_product->getProductAttributes($result['product_id']), 'price' => $price, 'special' => $special, 'tax' => $tax, 'rating' => $rating, 'href' => $this->url->link('product/product', 'product_id=' . $result['product_id']), ); } if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/module/latest.tpl')) { return $this->load->view($this->config->get('config_template') . '/template/module/latest.tpl', $data); } else { return $this->load->view('default/template/module/latest.tpl', $data); } } } } а это отрывок latest.tpl <div class="col-sm-12"> <div class="quickview_description description"> <?php echo $product['description'];?> </div> </div> Помогите, пожалуйста!!!
-
К сожалению, напрямую внес, но ручные правки, к счастью, не пропали
-
О, все!!! Спасибо огромное!!!!
-
нет, не применились Что необходимо сделать для того, чтобы применились?
-
Всем привет! Никто не подскажет, почему opencart не хочет ресайзить изображения в опциях? /catalog/controller/product/product.php изменил строчку 'image' => $this->model_tool_image->resize($option_value['image'], 50, 50), на 'image' => $this->model_tool_image->resize($option_value['image'], 100, 100), но ничего не меняется... про очистку кэша рассказывать не надо, про cache тоже. Может. что-то не так сделал или не доделал??