tkirgiz Posted August 18, 2014 Share Posted August 18, 2014 Kategori ikonuna bastığımda önce alt kategoriler altında ise ürünler gözükmekte ben alt kategorilerin gözükmesini istemiyorum direk ürünler gözüksün.çok fazla alt kategori var ürünler çok altta kalıyor .Yardımlarınız için şimdiden teşekkürler Link to comment Share on other sites More sharing options...
MEG Venture Posted August 18, 2014 Share Posted August 18, 2014 Hangi Prestashop versiyonunu kullanıyorsunuz? Link to comment Share on other sites More sharing options...
tkirgiz Posted August 18, 2014 Author Share Posted August 18, 2014 1.6 default tema Link to comment Share on other sites More sharing options...
MEG Venture Posted August 18, 2014 Share Posted August 18, 2014 themes>default-bootstrap>category.tpl'ye girin ve aşağıdaki kod satırını silin. Kaydedin, çıkın. Başlamadan önce category.tpl dosyasını yedeklemenizi tavsiye ederim. {if isset($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} Link to comment Share on other sites More sharing options...
tkirgiz Posted August 18, 2014 Author Share Posted August 18, 2014 Ornegin hepsinimi siliyorum 1 Link to comment Share on other sites More sharing options...
Şahin YILDIZ Posted August 18, 2014 Share Posted August 18, 2014 Açtığınız tüm konuları inceledim...naçizane tavsiyem, kendinize uygun ücretli bir şablon alın...istemiş olduğunuz özellikleri böyle modifiyelerle yakalayamazsınız... Link to comment Share on other sites More sharing options...
tkirgiz Posted August 19, 2014 Author Share Posted August 19, 2014 Meg Ventura ya teşekkür ederiz sorun çözüldü. Konu sabitlenebilir. Link to comment Share on other sites More sharing options...
bybilgili Posted March 8, 2016 Share Posted March 8, 2016 (edited) ben yaptım olmadı hocam benim hangilerini silmem gerekir {* * 2007-2015 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-2015 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 not-animated" data-animate="fadeInDown" data-delay="300"> {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"> <div class="cat-image"> <img src="{$link->getCatImageLink($category->link_rewrite, $category->id_image, 'category_default')|escape:'html'}" alt="{$category->name|escape:'htmlall':'UTF-8'}" title="{$category->name|escape:'htmlall':'UTF-8'}" id="categoryImage" /> </div> {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} not-animated" data-animate="fadeInDown" data-delay="300"><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" class="not-animated" data-animate="fadeInDown" data-delay="300"> <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, 'small_default')|escape:'html':'UTF-8'}" alt="" /> {else} <img class="replace-2x" src="{$img_cat_dir}default-small_default.jpg" alt=""/> {/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-compare.tpl"} {include file="./product-sort.tpl"} {include file="./nbr-product-page.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} Edited March 8, 2016 by bybilgili (see edit history) Link to comment Share on other sites More sharing options...
MEG Venture Posted March 9, 2016 Share Posted March 9, 2016 {if isset($subcategories)} {if (isset($display_subcategories) && $display_subcategories eq 1) || !isset($display_subcategories) } <!-- Subcategories --> <div id="subcategories" class="not-animated" data-animate="fadeInDown" data-delay="300"> <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, 'small_default')|escape:'html':'UTF-8'}" alt="" /> {else} <img class="replace-2x" src="{$img_cat_dir}default-small_default.jpg" alt=""/> {/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} Yukarıdaki bölümü silerek deneyiniz. Link to comment Share on other sites More sharing options...
bybilgili Posted March 9, 2016 Share Posted March 9, 2016 teşekkürler cevap için hocam. bu şekilde yaptım olmamıştı tekrar gözden geçirerek yine yaptım bu sefer hiç göstermiyor resimdeki şekilde çıkıyor. Link to comment Share on other sites More sharing options...
MEG Venture Posted March 9, 2016 Share Posted March 9, 2016 Kategoride ürün olduğuna emin misiniz? Silinen yerleri geri getirdiğinizde ürünler geliyor mu? Link to comment Share on other sites More sharing options...
bybilgili Posted March 9, 2016 Share Posted March 9, 2016 kategoride ürün var hocam yo sadece kategoriler gözüküyor Link to comment Share on other sites More sharing options...
MEG Venture Posted March 10, 2016 Share Posted March 10, 2016 Düzelttiğinizde ürünler yine görünmüyorsa, o kategoride ürün olmayabilir ya da ürünler aktif olmayabilir. Bir yerlerde bir hata var. Özelden yönetim paneli ve FTP bilgisi gönderirseniz yardımcı olabilirim. Link to comment Share on other sites More sharing options...
SahinSOLMAZ Posted March 11, 2016 Share Posted March 11, 2016 Merhabalar, Ek olarak naçizane tavsiyem; Alt kategorileri tamamen kaldırmaktan ziyade ürünlerin altına taşıyabilirsiniz. Yani şöyle ki: X kategorisi açıldığında sayfanın en üstünde o kategorideki ürünler ve ürünler bittiğinde o kategoriye ait alt kategoriler gelebilir. Bu şekilde uyarlamak isteyenler olursa Çağlar Bey (MEG Venture) 'in göstermiş olduğu kod blogunu kesip, <div class="content_sortPagiBar"> etkiketi kapanışına yapıştırmalılar. İlgili dosya yolu: anadizin/themes/default-bootstrap/category.tpl 1.6.x versiyonu için varsayılan temanın category.tpl sayfasında 73. satır (farklı tema kullananlar da kodların ilk kısımlarını aratarak bulabilirler muhtemelen diğer etiket kısımları aynı olacaktır zaten ama her ihtimale karşı kontrol etmenizde fayda var.) Kesin: {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="{$subcategory.name|escape:'html':'UTF-8'}" width="{$mediumSize.width}" height="{$mediumSize.height}" /> {else} <img class="replace-2x" src="{$img_cat_dir}{$lang_iso}-default-medium_default.jpg" alt="{$subcategory.name|escape:'html':'UTF-8'}" 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'}</a></h5> {if $subcategory.description} <div class="cat_desc">{$subcategory.description}</div> {/if} </li> {/foreach} </ul> </div> {/if} {/if} Burayı bulun ve hemen altına yapıştırın: (112. satır) <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> Başarılar Link to comment 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