Skip to content
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

/catalog/model/catalog/product.php function getPopularProducts() doesn't sort correctly #433

Closed
ClearThinking opened this issue Feb 7, 2013 · 1 comment

Comments

@ClearThinking
Copy link

It doesn't sort by popularity -- it needs this change:

REPLACE:
ORDER BY p.viewed, p.date_added DESC

WITH:
ORDER BY p.viewed DESC, p.date_added DESC

hkulekci pushed a commit to hkulekci/opencart that referenced this issue Feb 8, 2013
opencart pushed a commit that referenced this issue Feb 9, 2013
fix pull request for #433, because mysql "order by" default is ASC.
@opencart
Copy link
Collaborator

opencart commented Feb 9, 2013

fixed

@opencart opencart closed this as completed Feb 9, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant