2016-10-14 47 views
1

在我的Magento的網站是不是在底部displying頁碼上....在這個網站,我有大約6-7類別和每個類別大約有50種產品Magento的分頁不顯示目錄頁

變化我已經到了Magento管理面板製造是:

下管理 - >目錄 - >目錄 - >前端 Catalog

並下設管理 - >常規 - >設計 - >分頁

Pagination

I'hv只發產品頁面上的這些 儘管如此頁面數量的變化沒有出現在這裏

Landing Page

任何想法,爲什麼它的發生?

編輯:

這是我frontend\mgstheme\luxury\template\catalog/category/view.phtml

<?php 
$_helper = $this->helper('catalog/output'); 
$_category = $this->getCurrentCategory(); 
$_imgHtml = ''; 
if ($_imgUrl = $_category->getImageUrl()) { 
    $_imgHtml = '<p class="category-image"><img class="img-responsive" src="' . $_imgUrl . '" alt="' . $this->escapeHtml($_category->getName()) . '" title="' . $this->escapeHtml($_category->getName()) . '" /></p>'; 
    $_imgHtml = $_helper->categoryAttribute($_category, $_imgHtml, 'image'); 
} 

$settingDescPosition = 1; 
$setting = Mage::getModel('mpanel/setting')->load($_category->getId()); 
if($setting){ 
    if($setting->getRatio()!=''){ 
     $settingDescPosition = $setting->getDescPosition(); 
    } 
} 

?> 
<div class="page-title category-title"> 
    <?php if ($this->IsRssCatalogEnable() && $this->IsTopCategory()): ?> 
     <a href="<?php echo $this->getRssLink() ?>" class="link-rss"><?php echo $this->__('Subscribe to RSS Feed') ?></a> 
    <?php endif; ?> 
</div> 

<?php echo $this->getMessagesBlock()->getGroupedHtml() ?> 
<?php $helper = $this->helper('mpanel'); ?> 
<div class="custom"> 
    <div class="container"> 
     <span><a href="127.0.0.1/demo"><i class="fa fa-home"></i></a>/<span><a href="#">Products</a></span>/<span><strong><?php echo $this->getCurrentCategory()->getName(); ?></strong></span></span> 
    </div> 
</div> 
<?php if ($this->isContentMode()): ?> 
    <?php echo $this->getCmsBlockHtml() ?> 

<?php elseif ($this->isMixedMode()): ?> 
    <?php echo $this->getCmsBlockHtml() ?> 
    <div id="product-list-container"> 
     <?php echo $this->getProductListHtml() ?> 
    </div> 
<?php else: ?> 
    <div id="product-list-container"> 
     <?php echo $this->getProductListHtml() ?> 
    </div> 
<?php endif; ?> 

<?php if ($helper->acceptToUsePanel()): ?> 
    <?php // description position below product list ?> 
    <?php if($settingDescPosition==2): ?> 
     <div class="builder-container inline-builder"> 
      <?php if ($_description = $this->getCurrentCategory()->getDescription()): ?> 
       <div class="category-description std"> 
        <?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?> 
       </div> 
       <?php echo $helper->getEditCategoryDescription($_category->getId()) ?> 
      <?php else: ?> 
       <div class="category-description std"> 
        <span class="placeholder">Add description for this category</span> 
       </div> 
       <?php echo $helper->getEditCategoryDescription($_category->getId()) ?> 
      <?php endif; ?> 
     </div> 
    <?php endif ?> 

<?php else: ?> 
    <?php // description position below product list ?> 
    <?php if($settingDescPosition==2): ?> 
     <?php if ($_description = $this->getCurrentCategory()->getDescription()): ?> 
      <div class="category-description std"> 
       <?php echo $_helper->categoryAttribute($_category, $_description, 'description') ?> 
      </div> 
     <?php endif; ?> 
    <?php endif ?> 
<?php endif; ?> 

回答

1

解決

將此代碼添加到view.phtml

<?php echo $this->getToolbarBlock()->setTemplate('catalog/product/list/bottom_toolbar.phtml')->toHtml(); ?>

0

檢查在catalog.xml中是否已稱爲XML的分頁。該XML應該如下

<block type="catalog/product_list_toolbar" name="product_list_toolbar" template="catalog/product/list/toolbar.phtml"> 
<block type="page/html_pager" name="product_list_toolbar_pager"/> 
</block> 

根據你的截圖,你正在使用的自定義主題,請重新檢查所有PHTML文件是否有與分頁相關的文件夾中。

如果你仍然都面臨着同樣的問題,請參見下面的鏈接,這將有助於你: https://support.webcto.eu/index.php/Knowledgebase/Article/View/43/8/paginating-not-shown-in-magento

+0

我'hv沒有在我的代碼中找到任何代碼分頁...你可以檢查一次...我'hv更新我的代碼 – parish

+0

僅供參考,它不是你在喲提到的正確文件你的帖子: 前端\ mgstheme \豪華\模板\目錄/類別/ view.phtml 請檢查以下位置和文件: - 佈局: app/design/frontend/default/<您的主題/佈局/目錄。 xml Template: app/design/frontend/default/ /template/catalog/product/list/toolbar.phtml Block File: app \ code \ core \ Mage \ Catalog \ Block \ Product \ List \ Toolbar.php –

+0

分頁使用參考「catalog_category_default」 」catalog/product/list/toolbar.phtml「 < HTM l_pager「name =」product_list_toolbar_pager「/> –