Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4049334
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:55:55+00:00 2026-05-20T13:55:55+00:00

We have a website with 2 store views: FR and EN. For some products

  • 0

We have a website with 2 store views: FR and EN. For some products after import catalog_product_flat for EN store view is not refreshed. In EAV tables everything is fine. Data re-index should truncate this flat table and fill it with updated data. Somehow it doesn’t work for some items.

Did anyone of you had a similar problem? I’d appreciate for any clues or advices on this topic.

EDIT

I have made further checks and I was wrong about EAV tables. It turns out that catalog_product_entity_varchar is consistent with catalog_product_flat. So flat table has the same data as EAV table but in the Admin Panel values are wrong. For EN store view they are the same as default values, only for some products (magic? ;)). On my local PC I didn’t encounter such issue. This is only on our production environment. As far as I know we do not use any DB replication (which could be the issue here).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T13:55:56+00:00Added an answer on May 20, 2026 at 1:55 pm

    I was wrong about what’s wrong. And everything is OK with database. The problem was an order of attributes that are retrieved from DB.

    In Mage_Eav_Model_Entity_Abstract we can find:

    
    $selects = array();
    foreach ($this->getAttributesByTable() as $table=>$attributes) {
       $selects[] = $this->_getLoadAttributesSelect($object, $table);
    }
    if (!empty($selects)) {
       $values = $this->_getReadAdapter()->fetchAll(implode(' UNION ', $selects));
    
       foreach ($values as $valueRow) {
          $this->_setAttribteValue($object, $valueRow);
       }
    }
    

    Line implode(' UNION ', $selects) concatenates all select statements. But there is no ORDER BY, so data can be retrieved in random order. As a matter of fact, for some of the products it is like this. That select takes values of attributes for store view 0 (always) and selected store view (current one).

    Array $values contains of arrays with attributes properties. Order does matter here, because if attribute (for example ‘name’) for store view e.g. 1 will be proceed before one for store view 0, then it will be overwritten.

    Solution is to add ORDER BY clause to the $selects or sort $values array.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a website with 5 stores, with one store view (German) for each.
I have a website where people can view some places on a google map,
I have a website form that collects url of users to store in a
I'm about to create a user based website and will have to store photo,
I have website on the server, which is not precompiled (with source code, so
i have some specific question to solve but i can not think. I have
I'm using rails to build a website. I have a yaml file contails some
I have a website that lets people view rows in a table (each row
I have this stack trace error when I try view some data in my
i have a website that will have customized designs, depending on what store was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.