Skip to content

Fix: correct wishlist total count in Get All API #562#576

Open
rohansingh754 wants to merge 1 commit into
bagisto:mainfrom
rohansingh754:wishlist-pagination-total-count
Open

Fix: correct wishlist total count in Get All API #562#576
rohansingh754 wants to merge 1 commit into
bagisto:mainfrom
rohansingh754:wishlist-pagination-total-count

Conversation

@rohansingh754
Copy link
Copy Markdown
Contributor

The wishlist Get All API was returning incorrect pagination totals due to row duplication caused by joining the product_flat table, which contains multiple records per product.

This change removes the join-based filtering and uses relationship-based constraints instead, ensuring accurate wishlist totals and correct paginator metadata.

@harshit-webkul
Copy link
Copy Markdown

@rohansingh754
PR is working fine.

Image

#562 (comment)

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

Successfully merging this pull request may close these issues.

2 participants