1

I've implemented a custom product slider in my Magento store. Sometimes the product titles in the slider are in English instead of Dutch on the Dutch storeview.

When I empty the cache everything works normal (titles back to Dutch) for about 1-2 hours and then after a period of time, the product titles go back to English.

This is the code that is used for the product collection in the sliders:

protected function _getProductCollection()
{
    $productCollection = null;

    $category = $this->getCategory();
    if ($this->getCategory() != null && $category->getId()) {
        $productCollection = $category->getProductCollection()
            ->addStoreFilter()
            ->setPageSize(11)
            ->setCurPage(1);

        Mage::getSingleton('catalog/product_visibility')
            ->addVisibleInCatalogFilterToCollection($productCollection);

        $this->_addProductAttributesAndPrices($productCollection);
    }

    return $productCollection;
}

Sidenote: We've recently implemented a hreflang module in our store. After this implementation, the problems seem to have started.

  • Can you share your phtml code for this ? – ParulThakkar Jun 17 at 6:07
  • 1
    Disable the hreflang module and check if you face the same issue. So you can identify if module causing the issue. – Bhaumik Upadhyay Jun 18 at 16:50
  • 1
    Just confirm hreflang module creating issue or not, If yes please connect to support team of hreflang module and get this fix. – Jack Jun 21 at 5:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.