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

Leaderboard

Popular Content

Showing content with the highest reputation on 08/04/2018 in Posts

  1. 2 points
  2. $products = $this->cart->getProducts(); foreach($products as $product) { $categories = $this->model_catalog_product->getCategories($product['product_id']); $product_categories = array(); foreach($categories as $category) { $product_categories[] = $category['category_id']; } if (!in_array(20, $product_categories)) { $status = false; } } Не проверял, но должно работать.
    1 point
  3. Единственный вариант, в настройках модуля вкладка Фильтр выбрать таблицу product_attribute и выбрать поле text, назовите его к примеру - значение атрибута, оно появится во вкладке Фильтр в секции дополнительно, соответственно там сможете выбирать условие для фильтрации по значению атрибута.
    1 point
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.