Strona główna forum Wsparcie Problemy z działaniem catalog_onsale - brak minimal price

catalog_onsale - brak minimal price

Wszystkie problemy związane z działaniem sklepu...


Posty: 27
Gadu-Gadu: 0

Witam
czy ktoś korzysta z modułu catalog_onsale?
bardzo ładnie pobiera produkty z sale rules, lecz problem jest w przypadku configurable products i minimal price (wyświetla produkty, ale bez minimal price)
moduł posiada własny xml oraz phtml, wyświetlanie wzoruje się na oryginalnym list.phtml oraz price.phtml ... ale coś jest nie tak
może powinienem dodać COŚ do xml?

xml po modyfikacjach
<?xml version="1.0"?>
<layout version="0.1.0">
    <default>
        <block type="catalog/product_price_template" name="catalog_product_price_template" />
    </default>
<catalogsale_index_index>
   <reference name="root">
      <action method="setTemplate"><template>page/2columns-left.phtml</template></action>
   </reference>
   <reference name="left">
      <block type="catalogsale/layer" name="catalogsale.leftnav" after="currency" template="catalog/layer/view.phtml"/>
   </reference>
   <reference name="footer_links">
      <action method="addLink" translate="label title" module="catalogsale">
         <label>Wyprzedaże</label>
         <url helper="catalogsale/getCatalogSaleUrl" />
         <title>Wyprzedaże</title>
      </action>
   </reference>
   <reference name="content">
      <block type="catalogsale/view" name="categorysale.products" template="catalog/product/sale.phtml">
         <block type="catalog/product_list" name="sale_product_list" template="catalog/product/list.phtml">
                    <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"/>
                        <!-- The following code shows how to set your own pager increments -->
                            <action method="setDefaultListPerPage"><limit>10</limit></action>
                            <action method="setDefaultGridPerPage"><limit>8</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>10</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>20</limit></action>
                            <action method="addPagerLimit"><mode>list</mode><limit>30</limit></action>
                            <action method="addPagerLimit" translate="label"><mode>list</mode><limit>all</limit><label>All</label></action>
                            <action method="addPagerLimit"><mode>grid</mode><limit>8</limit></action>
                            <action method="addPagerLimit"><mode>grid</mode><limit>16</limit></action>
                            <action method="addPagerLimit"><mode>grid</mode><limit>24</limit></action>
                            <action method="addPagerLimit" translate="label"><mode>grid</mode><limit>all</limit><label>All</label></action>
                    </block>
            <action method="setColumnCount"><columns>4</columns></action>
            <action method="setToolbarBlockName"><name>product_list_toolbar</name></action>
         </block>
         <action method="setListCollection"/>
      </block>
   </reference>
</catalogsale_index_index></layout>


phtml po modyfikacjach
<?php
    $_helper    = $this->helper('catalog/output');
    $_category  = $this->getCurrentCategory();
?>
<div class="padder"><?php echo $this->getMessagesBlock()->getGroupedHtml() ?></div>
<div class="category-head">
  <?php if($this->IsRssCatalogEnable()): ?>
    <a href="<?php echo $this->getRssLink() ?>" class="link-feed right"><?php echo $this->__('Subscribe to RSS Feed') ?></a>
  <?php endif; ?>
  <h2><?php echo 'Wyprzedaże' ?></h2>
</div>
<?php echo $this->getCmsBlockHtml() ?>
<?php echo $this->getProductListHtml() ?>

catalog_onsale - brak minimal price

PostTeraz jest 29 mar 2024, o 03:39
Google

Posty: 427
Lokalizacja: Internet


Posty: 27
Gadu-Gadu: 0

w model/layer.php

w linii 47:
addAttributeToSelect($productAttributes, 'left')

zamieniamy na:
//->addAttributeToSelect($productAttributes, 'left')
->addAttributeToSelect($productAttributes)
->addMinimalPrice()
->addFinalPrice()
->addTaxPercents()


Powrót do Problemy z działaniem



cron