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

Display the number of favorites next to the link (Feature request) #14

Open
catalin88 opened this issue Feb 26, 2017 · 1 comment
Open

Comments

@catalin88
Copy link

Any suggestions on how I could add the number of products favorited next to the link to favorites page ?

@catalin88 catalin88 changed the title Feature request Display the number of favorites next to the link (Feature request) Feb 26, 2017
@tanmay3011
Copy link
Member

@catalin88
You can override add_link_to_mark_product_as_favorite.rb deface and use favorite_users_count attribute on product to show how many people have marked it favorite.

In case you want to add number of favorite products with respect to user just next to favorite products tab you can override add_link_to_users_favorite_products.rb deface and use spree_current_user.favorite_products.count.

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

2 participants