New products are not displayed in the featured products block

Created by Robin Hoang, Modified on Fri, 06 Oct 2017 at 11:14 AM by Robin Hoang

Question:

The new products after installing Multiple Store View Pricing extension aren't displayed in featured products.


Answer:

The root of the issue is due to the prices are got from an old table while they are actually saved in a new table when the module is enabled.

In order to fix this, could you please add the codes below in the collection which call out the product collection?

edit app/code/local/Magiccart/Magicproduct/Block/Product/Grid.php

add line 121 to 134 :

if(Mage::helper('multistoreviewpricing')->isScopePrice()) {

                $fromPart = $collection->getSelect()->getPart(Zend_Db_Select::FROM);

                if (isset($fromPart['price_index'])) {

                    $indexTable = $collection->getTable('catalog/product_index_price');

                    $indexTableStore = $collection->getTable('multistoreviewpricingpriceindexer/product_index_price');


                    $select = $collection->getSelect();

                    if($fromPart['price_index']['tableName'] == $indexTable) {

                        $fromPart['price_index']['tableName'] = $indexTableStore;

                        $select->setPart(Zend_Db_Select::FROM, $fromPart);

                        $select->where('price_index.store_id = ?', $collection->getStoreId());

                    }

                }

            }


For more information about product, please refer Multiple Store View Pricing page.

If you need any further assistance, please feel free to contact us.

Please visit our site for more useful Magento 1 Extensions: https://bsscommerce.com/extensions.html

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article