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

Dead

Newbie
  
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Dead

  1. Добрался в /catalog/controller/product/category.php Вот часть кода, которая формирует данные о товаре. $this->data['products'][] = array( 'name' => $result['name'], 'model' => $result['model'], 'rating' => $rating, 'stars' => sprintf($this->language->get('text_stars'), $rating), 'thumb' => $this->model_tool_image->resize($image, $this->config->get('config_image_product_width'), $this->config->get('config_image_product_height')), 'price' => $price, 'stk' => $result['stk'], 'options' => $options, 'special' => $special, // 'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&path=' . $this->request->get['path'] . '&product_id=' . $result['product_id']), 'href' => $this->model_tool_seo_url->rewrite(HTTP_SERVER . 'index.php?route=product/product&product_id=' . $result['product_id']), 'add' => $add ); } А вот часть кода, которая формирует ЧПУ: Ситуация такая, если я перехожу в категорию у меня там выводятся не только субкатегории, но так же и товары из этой категории, так вот если раскомментировать закомментированную строчку, то в категориях товары в урле не будут иметь субкатегорий. Т.е допустим товар принадлежит к категории cat1 и субкатегории sub1, в категориях этот товар будет иметь вид А нужно чтоб имел
  2. Спасибо. Есть шиблон category.tpl в нем можно использовать переменную пхп $products(array) как можно туда добавить элемент, который бы содержал строку вида category/subcategory/ где category - категория товара, subcategory - субкатегория товара?
  3. В данный момент категории имеют вид: site.ru/category/ site.ru/category/subcategory/ Товары имеют вид site.ru/product1.html Субкатегории есть не во всех категориях. Как привести урл товара к виду, если есть субкатегории: site.ru/category/subcategory/product1.html Соответственно, если нету то к виду: site.ru/category/product1.html
×
×
  • 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.