Jump to content

25. Страница производителя при отдельном шаблоне главной


KoVaLsKy

Recommended Posts

Возьмем ситуацию:

Вы используете отдельный шаблон главной страницы для VAMSHOP, и он, было бы логично, отличается от остальных страниц. Отличается некими элементами и иногда стилистикой, в том числе количеством колонок.

Если Мы выбираем производителя, например на странице товара, то страница выходит с использованием шаблона главной. Как лечить?

открываем index.php

находим

$template = (file_exists('templates/'.CURRENT_TEMPLATE.'/'.FILENAME_DEFAULT.'_'.$cID.'.html') ? CURRENT_TEMPLATE.'/'.FILENAME_DEFAULT.'_'.$cID.'.html' : CURRENT_TEMPLATE.'/index.html');

ниже добавляем

if ($_GET['manufacturers_id'] !=''){$template = CURRENT_TEMPLATE.'/index.html';}

Или можно вместо

index.html

Создать собственный шаблон для товаров производителя

 

Статья: http://iamstudy.ru/vamshop/7-stranica-proizvoditelya-pri-otdelnom-shablone-glavnoj/

Больше статей по ВАМШОП тут

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...