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. так задайте конкретно вопрос почему нет таблицы?
  2. table `mega.oc_ua_money_payment`doesn't exist Таблица `mega.oc_ua_money_payment` не существует
  3. вставьте код как у меня в сообщении это перед этим а вы вставили перед циклом foreach ($results as $result) { конечно будет
  4. фильтр, симплу, оплату все равно докупать
  5. непонятно, зачем покупать шаблон и потом натягивать на него новый дизайн?
  6. а вам о чем? при добавлении в корзину пишем проверку
  7. что значит вылезло? не было, а потом вдруг откуда не возьмись появилось? feofan это плохо, удалить
  8. родительская категория, у кат. 2 уровня, точно добавлена
  9. $product_category = $this->model_catalog_product->getCategories($result['product_id']); $categories = array(); $fl = false; $parentcat = array(70, 71, 72); foreach ($product_category as $c) { if(in_array($c['category_id'], $parentcat)){ $fl = true; break; } } $data['products'][] = array( // добавляем флаг 'fl' => $fl, 'quantity' => $result['quantity'], 'minimum' => $result['minimum'], 'product_id' => $result['product_id'], 'thumb' => $image, 'name' => $result['name'], 'model' => $result['model'], 'description' => utf8_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, $this->config->get('config_product_description_length')) . '..', 'price' => $price, 'quantity' => $result['quantity'], 'special' => $special, 'manufacturer' => $result['manufacturer'], 'manufacturer_img' => $manufacturer_img, 'tax' => $tax, 'minimum' => $result['minimum'] > 0 ? $result['minimum'] : 1, 'rating' => $result['rating'], 'length' => round($result['length'], 2), 'width' => round($result['width'], 2), 'height' => round($result['height'], 2), 'href' => $this->url->link('product/product', 'manufacturer_id=' . $result['manufacturer_id'] . '&product_id=' . $result['product_id'] . $url) ); <?php foreach ($products as $product) { if($product['fl']){ // если соответствует категория }else{ // не соответсвует } ?> .......................
  10. что вы хотите сделать? на странице товаров производителя, вывести товары из определенных категорий как-то особо?
  11. интересно, откуда на странице производителей в $_GET возьмется product_id ?
×
×
  • 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.