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

Frost56rus

Newbie
  
  • Posts

    19
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Frost56rus's Achievements

Apprentice

Apprentice (3/14)

  • First Post
  • Collaborator
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

1

Reputation

  1. Все заработало, спасибо)
  2. Добрый день всем. Хочу в модуле вывести id категории для товара. Помогите реализовать вывод, сейчас такой код: $querys = $this->db->query("SELECT category_id FROM " . DB_PREFIX . "product_to_category WHERE product_id = '" . $product_info['product_id'] . "'"); $data['products'][] = array( 'product_id' => $product_info['product_id'], 'thumb' => $image, 'name' => $product_info['name'], 'description' => utf8_substr(strip_tags(html_entity_decode($product_info['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..', 'price' => $price, 'special' => $special, 'tax' => $tax, 'rating' => $rating, 'href' => $this->url->link('product/product', 'product_id=' . $product_info['product_id']), 'catid' => $querys Выводит так: Array ( [product_id] => 50 [thumb] => http://infinifine.com/image/cache/catalog/logo-109x146.png [name] => тест товар [description] => тест товар.. [price] => 100р. [special] => [tax] => [rating] => 0 [href] => http://infinifine.com/index.php?route=product/product&product_id=50 [catid] => stdClass Object ( [num_rows] => 1 [row] => Array ( [category_id] => 75 ) [rows] => Array ( [0] => Array ( [category_id] => 75 ) ) ) ) Как мне вывести чтобы в цикле было [catid] => 75 ? Знаю что в 'catid' => Надо делать типа $this->row->category_id() Но это не помогает, ошибку дает
  3. Нашел то что хотел, быстрее чем мучатся с модулем. http://s-engineer.ru/dobavlyaem-novuyu-stranicu-sxemu-v-opencart/
  4. Ладно, придумаю что нибудь, спасибо за то что старались помочь
  5. бред какой-то, подожду ответов по созданию произвольной страницы из 4 файлов.
  6. Допустим я на php делаю только обработчик с небольшой частью html.
  7. А как потом редактировать файл на FTP ? Все страницы информации пишутся в mysql и подгружаются в 1 файл. А мне бы отдельный файл.
  8. Как добавить произвольную страницу в OC 2.3. Не нашел информацию вообще по 2 версии, киньте ссылкой в меня. Модули не предлагать. Помню что как то надо 4 файла создать в language, controller, module и .tpl создать, но что и как по содержимому не помню.
  9. Да это к примеру было, основной задачей было вывести колонку свою
  10. Тему можно закрывать, нашел я где все формируется
  11. [products] => Array ( [0] => Array ( [product_id] => 50 [image] => http://gowo.com/image/cache/catalog/banner-2-40x40.png [name] => test1 [model] => test1 [price] => 232323232.0000 [special] => [quantity] => 1 [status] => Enabled [edit] => http://gowo.com/admin/index.php?route=catalog/product/edit&token=6209a4904cae0ed015d4895931af9f8e&product_id=50 ) [1] => Array ( [product_id] => 51 [image] => http://gowo.com/image/cache/catalog/favicon-40x40.png [name] => tet1 [model] => tet1 [price] => 222.0000 [special] => [quantity] => 122 [status] => Enabled [edit] => http://gowo.com/admin/index.php?route=catalog/product/edit&token=6209a4904cae0ed015d4895931af9f8e&product_id=51 ) Как в products добавить свое значение? Где именно копать?
  12. Место я найду, не беда, я создал колонку в product таблице, мне надо как то сделать запрос общий к БД и вывести значение этой колонки возле товара в шаблоне админки
  13. Место я найду, не беда, я создал колонку в product таблице, мне надо как то сделать запрос общий к БД и вывести значение этой колонки возле товара в шаблоне админки
Guest
×
  • 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.