New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicated product features in Feature loop #2484
Comments
That "if" doesn not affect on what you talk about. It only need to show all features (not only attached to product) in backend (admin). And that filter speedup product page in frontend when you have A LOT features in one template. Nothing about grouping... |
Removing the Can you tell us more about this commit, why did you add this, etc... ? What's wrong with only filtering by product's template ID ? |
If you have A LOT features in one product template (imported from some another source for ex.), product page load was very long.
I think it is side effect, not solving. PS: Original PR was #1912 |
No the problem is on front-end pages, on a product page with a loop like this:
|
It means, that problem was before #1912 |
je pense que j'ai le meme problème, quand je duplique un produit qui a 2 déclinaison A et B elle deviennent B et A dans le duplication meme les photos associé à ces déclinaisons s'inversent |
Я тоже могу разговаривать на не понятном тебе языке, но толку ? |
@zorn-v, gimlyGVD can't speak english. Fortunately, his comment is not directly related related to the issue. |
In the
Feature
loop, if a product is linked to X feature values of an Y feature, the Y feature is returned X times by the loop.This comes from this : https://github.com/thelia/thelia/blob/2.3.4/core/lib/Thelia/Core/Template/Loop/Feature.php#L126
See commit 998b5c0 by @zorn-v to get details about why it has been done.
If the
if
added by this commit is necessary, maybe the query should use agroup by
to avoid duplicated features in the query's results ?The text was updated successfully, but these errors were encountered: