optokuppler Posted January 21, 2015 Posted January 21, 2015 Добрый день. Суть проблемы в том, что все папки одной категории располагаются в левом блоке и без картинок, как вывести в пустую середину категории конкретной категории, и картинку добавить к ней, к примеру есть тапочки а подразделы тапочки, лапти и сандали, вот все это у меня левом узком меню а в середине ничего, в середине появится только товары при выборе категории из левого меню Помогите друзья. Спасибо Share this post Link to post Share on other sites More sharing options...
Kerm Posted January 21, 2015 Posted January 21, 2015 Есть модули для этого, погугли на тему "prestashop home category" видел три различных модуля с подобным функционалом, правда все они были платные. Share this post Link to post Share on other sites More sharing options...
optokuppler Posted January 21, 2015 Posted January 21, 2015 Есть такой модуль даже бесплатный тут на форуме Homepage Categories for v1.5 если мы про то говорим что я написал, этот модуль только на главной выводит а мне внутри категории нужно может еще варианты есть? Share this post Link to post Share on other sites More sharing options...
optokuppler Posted January 22, 2015 Posted January 22, 2015 кто поможет с выводом папок категорий (не на главной) ? Share this post Link to post Share on other sites More sharing options...
amwaykem Posted January 22, 2015 Posted January 22, 2015 Не совсем понял вопрос, если можно сделай скрин как есть у тебя сейчас, а потом ка ты хочешь чтобы было.У меня на сайте вот так сделано, вроде похоже на твой вопрос http://prntscr.com/5vitu6 1 Share this post Link to post Share on other sites More sharing options...
optokuppler Posted January 22, 2015 Posted January 22, 2015 Не совсем понял вопрос, если можно сделай скрин как есть у тебя сейчас, а потом ка ты хочешь чтобы было. У меня на сайте вот так сделано, вроде похоже на твой вопрос http://prntscr.com/5vitu6 Да да да да мужик еще раз Да!! В точку 100% как так сделать, хоть кто то понял меня, скрин не вижу в данном случае делать, поможешь? Share this post Link to post Share on other sites More sharing options...
Kerm Posted January 22, 2015 Posted January 22, 2015 (edited) кто поможет с выводом папок категорий (не на главной) ? Если я правильно понял Вы говорите о выводе подкатегорий выбранной категории в центре страницы, с изображениями? Данная возможность реализована в стандартном функционале престашопа. Edited January 22, 2015 by Kerm (see edit history) 1 Share this post Link to post Share on other sites More sharing options...
optokuppler Posted January 22, 2015 Posted January 22, 2015 Если я правильно понял Вы говорите о выводе подкатегорий выбранной категории в центре страницы, с изображениями? Данная возможность реализована в стандартном функционале престашопа. В каких настройках это сделать подскажите пожалуйста? Share this post Link to post Share on other sites More sharing options...
Kerm Posted January 22, 2015 Posted January 22, 2015 В каких настройках это сделать подскажите пожалуйста? Посмотри, я прикрепил изображение. Так смысл какой, для категорий добавляешь изображения, далее заходишь в категорию которая имеет скажем 10 подкатегорий, тогда в центре с верху товаров ты должен увидеть ссылки и изображения этих подкатегорий. Share this post Link to post Share on other sites More sharing options...
optokuppler Posted January 22, 2015 Posted January 22, 2015 не получилось, может подробнее подскажете, давно пытаюсь эту проблему решить, как Вы описали у меня не выводится Share this post Link to post Share on other sites More sharing options...
Kerm Posted January 22, 2015 Posted January 22, 2015 Все зависит от версии престашопа и от шаблона, так в последней версии престы, список подкатегорий выводиться в файле category.tpl, следующим кодом: {if isset($subcategories)} {if (isset($display_subcategories) && $display_subcategories eq 1) || !isset($display_subcategories) } <!-- Subcategories --> <div id="subcategories"> <p class="subcategory-heading">{l s='Subcategories'}</p> <ul class="clearfix"> {foreach from=$subcategories item=subcategory} <li> <div class="subcategory-image"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}{$lang_iso}-default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> </div> <h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'|truncate:350}</a></h5> {if $subcategory.description} <div class="cat_desc">{$subcategory.description}</div> {/if} </li> {/foreach} </ul> </div> {/if} {/if} Share this post Link to post Share on other sites More sharing options...
optokuppler Posted January 22, 2015 Posted January 22, 2015 этот код у Вас к какой версии? он уже доработанный или придется самому дорабатывать? у меня 1.6.0.9 и шаблон дефолтовый Share this post Link to post Share on other sites More sharing options...
amwaykem Posted January 22, 2015 Posted January 22, 2015 Кеrm все правильно написал. У меня стоит такая же преста что и у вас 1.6.0.9 шаблон дефолтовый с небольшими модификациями вот мой файл category.tpl, сравни со своим {* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA *} {include file="$tpl_dir./errors.tpl"} {if isset($category)} {if $category->id AND $category->active} {if $scenes || $category->description || $category->id_image} <div class="content_scene_cat"> {if $scenes} <div class="content_scene"> <!-- Scenes --> {include file="$tpl_dir./scenes.tpl" scenes=$scenes} {if $category->description} <div class="cat_desc rte"> {if Tools::strlen($category->description) > 350} <div id="category_description_short">{$description_short}</div> <div id="category_description_full" class="unvisible">{$category->description}</div> <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a> {else} <div>{$category->description}</div> {/if} </div> {/if} </div> {else} <!-- Category image --> <div class="content_scene_cat_bg"> {if $category->description} <div class="cat_desc"> <span class="category-name"> {strip} {$category->name|escape:'html':'UTF-8'} {if isset($categoryNameComplement)} {$categoryNameComplement|escape:'html':'UTF-8'} {/if} {/strip} </span> {if Tools::strlen($category->description) > 350} <div id="category_description_short" class="rte">{$description_short}</div> <div id="category_description_full" class="unvisible rte">{$category->description}</div> <a href="{$link->getCategoryLink($category->id_category, $category->link_rewrite)|escape:'html':'UTF-8'}" class="lnk_more">{l s='More'}</a> {else} <div class="rte">{$category->description}</div> {/if} </div> {/if} </div> {/if} </div> {/if} <!--h1 class="page-heading{if (isset($subcategories) && !$products) || (isset($subcategories) && $products) || !isset($subcategories) && $products} product-listing{/if}"><span class="cat-name">{$category->name|escape:'html':'UTF-8'}{if isset($categoryNameComplement)} {$categoryNameComplement|escape:'html':'UTF-8'}{/if}</span>{include file="$tpl_dir./category-count.tpl"}</h1--> {if isset($subcategories)} {if (isset($display_subcategories) && $display_subcategories eq 1) || !isset($display_subcategories) } <!-- Subcategories --> <div id="subcategories"> <p class="subcategory-heading">{l s='Subcategories'}</p> <ul class="clearfix"> {foreach from=$subcategories item=subcategory} <li> <div class="subcategory-image"> <a href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}" title="{$subcategory.name|escape:'html':'UTF-8'}" class="img"> {if $subcategory.id_image} <img class="replace-2x" src="{$link->getCatImageLink($subcategory.link_rewrite, $subcategory.id_image, 'medium_default')|escape:'html':'UTF-8'}" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}default-medium_default.jpg" alt="" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {/if} </a> </div> <h5><a class="subcategory-name" href="{$link->getCategoryLink($subcategory.id_category, $subcategory.link_rewrite)|escape:'html':'UTF-8'}">{$subcategory.name|truncate:25:'...'|escape:'html':'UTF-8'|truncate:350}</a></h5> {if $subcategory.description} <div class="cat_desc">{$subcategory.description}</div> {/if} </li> {/foreach} </ul> </div> {/if} {/if} {if $products} <div class="content_sortPagiBar clearfix"> <div class="sortPagiBar clearfix"> {include file="./product-sort.tpl"} {include file="./nbr-product-page.tpl"} </div> <div class="top-pagination-content clearfix"> {include file="./product-compare.tpl"} {include file="$tpl_dir./pagination.tpl"} </div> </div> {include file="./product-list.tpl" products=$products} <div class="content_sortPagiBar"> <div class="bottom-pagination-content clearfix"> {include file="./product-compare.tpl" paginationId='bottom'} {include file="./pagination.tpl" paginationId='bottom'} </div> </div> {/if} {elseif $category->id} <p class="alert alert-warning">{l s='This category is currently unavailable.'}</p> {/if} {/if} Share this post Link to post Share on other sites More sharing options...
optokuppler Posted January 22, 2015 Posted January 22, 2015 у меня точно такой же код, но подкатегорий в центре нет, должен быть еще какой то метод Kerm какие еще варианты могут быть? Share this post Link to post Share on other sites More sharing options...
optokuppler Posted January 22, 2015 Posted January 22, 2015 код такой же щас скрин сделаю Share this post Link to post Share on other sites More sharing options...
optokuppler Posted January 22, 2015 Posted January 22, 2015 вот скрин, слева в колонке отображаются а в центре пусто, миниатюры пытался добавить к категориям - не помогло Share this post Link to post Share on other sites More sharing options...
Kerm Posted January 22, 2015 Posted January 22, 2015 В Вашем случае нужно смотреть более детально специалисту или же установить по умолчанию оригинальную месту к Вашей версии престашопа. А вообще, Вы после манипуляций с файлами кеш сайта чистите? Share this post Link to post Share on other sites More sharing options...
optokuppler Posted January 23, 2015 Posted January 23, 2015 Какие еще могут быть варианты? Кэш очищаю Share this post Link to post Share on other sites More sharing options...
amwaykem Posted January 23, 2015 Posted January 23, 2015 Глянь еще в "Конфигуратор темы" там есть опция отображать подкатегории: 1 Share this post Link to post Share on other sites More sharing options...
optokuppler Posted January 23, 2015 Posted January 23, 2015 amwaykem ТЫ гений - сработало. Спасибо, все реально оказалось проще чем было, спасибо за помощь еще раз, нужно эту инфу закрепить, реально в конфигураторе темы нужно было включить вывод подкатегорий Share this post Link to post Share on other sites More sharing options...
amwaykem Posted January 23, 2015 Posted January 23, 2015 Рад что смог вам помочь Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now