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

ivan18

Newbie
  
  • Posts

    2
  • Joined

  • Last visited

ivan18's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. проблему решил, оказалось, вызывал функцию https://gist.github.com/kalinichenko88/03f8fdddefb685e19098 не в том месте
  2. Д.день нужно получить минимальную цену в категории товара, чтоб например название было ктегория1 цены от минцена рублей у меня опенкарт 1.5.4 пробовал делать по пример отсюда https://gist.github.com/kalinichenko88/03f8fdddefb685e19098 но почему-то не работает, суть тоже не ясна зачем писать код в product.php если есть такой файл category.php попробовал написать такую функцию в model/category.php public function getMinPriceFromCategory($category_id) { $category_data[] = array(); $query = $this->db->query("SELECT product.price FROM product LEFT JOIN product_to_category ON product.product_id=product_to_category.product_id WHERE product_to_category.category_id=$category_id ORDER BY product.price ASC LIMIT 1"); foreach ($query->rows as $result) { $category_data['min_price'] = $result; } } но она тоже не отработала, хотя сам запрос верный, подскажите как мне получить мин цену товара в категории
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.