test: Recommendations, Reviews and Wishlist

- Tests for verified and unverified item reviewers
- Test for recommended items and their prices
- Test for adding removing items from Wishlist
- Bug: Wishlist deletes all entries of an item code irrespective of user
- Get Item reviews only if enabled
- Removed price fields from Wishlist Item and made fields read only
- Removed unused price stored as data on Wishlist buttons
- Customer Reviews page checks if reviews are enabled else shows No Reviews
- Moved price stock fetching in Wishlist in separate function
- Made fields read only in Item Review
This commit is contained in:
marination
2021-08-09 21:00:31 +05:30
parent 4d254a7ad3
commit b4529b8511
17 changed files with 417 additions and 125 deletions

View File

@@ -231,7 +231,7 @@
{{ average_rating or 0 }}
</h2>
<div class="mb-2" style="margin-top: -.5rem;">
{{ frappe.utils.cstr(total_reviews) + " " + _("ratings") }}
{{ frappe.utils.cstr(total_reviews or 0) + " " + _("ratings") }}
</div>
<!-- Ratings Summary -->