Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

fanatic

Users
  • Posts

    4,905
  • Joined

  • Last visited

Everything posted by fanatic

  1. // add image start $this->load->model('tool/image'); if ($product_info['image']) { $image = $this->model_tool_image->resize($product_info['image'], 100, 100); } else { $image = $this->model_tool_image->resize('placeholder.png', 100, 100); } // add image end $data['products'][] = array( // add image and llnk start 'image'=> $image, 'href' => $this->url->link('product/product', 'product_id=' . $product_info['product_id']), // add image and llnk end 'name' => $product['name'], 'model' => $product['model'], 'option' => $option_data, 'quantity' => $product['quantity'], 'price' => $this->currency->format($product['price'] + ($this->config->get('config_tax') ? $product['tax'] : 0), $order_info['currency_code'], $order_info['currency_value']), 'total' => $this->currency->format($product['total'] + ($this->config->get('config_tax') ? ($product['tax'] * $product['quantity']) : 0), $order_info['currency_code'], $order_info['currency_value']), 'reorder' => $reorder, 'return' => $this->url->link('account/return/add', 'order_id=' . $order_info['order_id'] . '&product_id=' . $product['product_id'], true) ); }
  2. так у вас 1.5 предупреждать нужно
  3. контроллер $query_review = $this->db->query("SELECT COUNT(*) as count FROM " . DB_PREFIX . "review"); $data['count_review'] = $query_review->row['count']; шаблон <?php echo $count_review; ?>
  4. как два пальца об асфальт только, еще нужно устранить ошибки и переписать на mysqli or pdo
  5. а в чем плохое отношение? заявленный функционал работает? да а доделывать под ваши хотелки, это уже свобода выбора.(имхо)
  6. не модификатор, а модифицированный файл а прописывает, как раз модификатор. ищите в - дополнения->менеджер дополнений
  7. если уверены, что по запросу точно есть товары, нужно смотреть что намудрили в контроллере\модели
  8. не понял. кто\что\куда не передает?
  9. вот как это сделано в методе resize класс image if (isset($this->request->server['HTTPS']) && (($this->request->server['HTTPS'] == 'on') || ($this->request->server['HTTPS'] == '1'))) { return $this->config->get('config_ssl') . 'image/' . $new_image; } else { return $this->config->get('config_url') . 'image/' . $new_image; }
×
×
  • Create New...

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.