Marica
ff7d81020c
Merge pull request #30578 from marination/e-com-acessibility
...
chore: Accessibility for E-commerce Doctypes
2022-04-05 18:11:59 +05:30
marination
065623ce25
chore: Add Prices, Stock and E-com Settings access from Website Item
2022-04-05 12:30:02 +05:30
Marica
bfb2fbea5f
Merge branch 'develop' into redisearch-app-install
2022-04-04 13:27:50 +05:30
marination
3445682563
fix: Payload incorrect data (pass item_group.name)
2022-04-04 12:33:25 +05:30
marination
7ef1ccbe84
fix: Add default score of 1 to Item Group Autocompleter
...
- If score 0 is inserted into suggestions, RS does not consider that suggestion
2022-04-04 12:04:35 +05:30
marination
97e3a855f7
fix: Convert payload to string before adding to autocompleter
2022-04-04 11:32:49 +05:30
marination
ea036e4958
fix: Better Exception Handling and vaeiabl naming
...
- Function to handle RS exceptions (create log and raise error)
- Handle `ResponseError` where it is anticipated
- Misc: Better variables
2022-04-04 11:07:53 +05:30
marination
07f17453cd
fix: Use Payload in AutoCompleter (categories in search) and misc
...
- Separate Item group and Item autocomplete dict definition
- Add payload along with Item group, containing namke and route
- Pass weightage while defining item group autocomplete dict (auto sort)
- Use payload while getting results for categories in search
- Remove check to show categories, always show
- Search fields mandatory if reidsearch enabled
- Code separation (rough)
2022-04-01 18:47:01 +05:30
Ankush Menat
257623509d
perf: use cached single docs ( #30536 )
...
frappe.local is request specific thread local, hence is almost as good
as no caching.
2022-04-01 11:55:19 +05:30
marination
7e207c8901
fix: Call Redisearch index creation functions on enabling redisearch in settings
2022-03-31 16:29:18 +05:30
Ankush Menat
494bd9ef78
style: format code with black
2022-03-28 18:52:46 +05:30
Marica
d24458ab77
fix: (ux) Add is_group=0 filter on website warehouse ( #30396 )
...
- It does not support group warehouses right now and it is misleading
2022-03-24 12:56:57 +05:30
Ankush Menat
c9dcf31cf7
test: ensure super()setUpClass is called
2022-03-23 19:46:50 +05:30
marination
f6e64c2cac
fix: Product Filters Lookup
...
- bind the right classes to the filter lookup field
- make class names more descriptive
- make filter lookup field more visible with white bg and border
- bind lookup input field js in `views.js`
- make filter lookup field functioning for atribute filters too
- added placeholder to lookup field
2022-03-21 17:58:39 +05:30
marination
8264d6b0bc
fix: Sub-Categpry Routing in Item Group Page Listing pills
...
- Use absolute route even 3-4 sub-category levels down
- Remove scroll from category pills due to accessibility issues
- Arrange sub-category pills alphabetically
2022-03-15 16:53:46 +05:30
marination
a13e06156b
fix: 'save_quotations_as_draft' checkbox not honoured
...
- Make sure `request_for_quotation` considers `save_quotations_as_draft`
- Added test for checkout disabled quote
2022-03-10 13:54:00 +05:30
marination
3507cf5985
test: Test include_descendants in Item Group Product Listing
...
- Also made include_descendants field's visibility dependant on show_in_website
2022-03-09 13:50:24 +05:30
marination
b2755f6fdd
feat: Include child item group products in Item Group Page & cleanup
...
- Added 'Include descendants' checkbox, which will pull child item group products too
- Build item group filters in query engine file
- Include logic in filter engine
- Clean up Website section of Item Group page (UX)
- Add util to fetch child item groups including self
2022-03-07 13:02:08 +05:30
Ankush Menat
b0d1e6db54
test(refactor): use FrappeTestCase
2022-02-28 17:23:32 +05:30
Marica
e8e9bc4daa
Merge pull request #29733 from dj12djdjs/fix-user-unique-cart
...
fix(e-commerce): Unique Shopping Cart Per Logged In User
2022-02-25 16:35:14 +05:30
Ankush Menat
9c7df2eec5
fix: ignore duplicates explicitly
2022-02-23 14:27:45 +05:30
marination
29c576e144
chore: Remove commented out code
2022-02-16 12:41:39 +05:30
Devin Slauenwhite
49bee568a1
fix: get cart items for logged in user.
2022-02-09 12:03:05 -05:00
Devin Slauenwhite
34ad5b1abf
fix: get cart for logged in user.
2022-02-09 10:53:24 -05:00
Devin Slauenwhite
d636c3fb04
test: many users linked to customer shopping cart
2022-02-09 10:52:38 -05:00
marination
4f5a0b8941
chore: Fix flaky test test_exact_match_with_price
...
- Clear cart settings in cache to avoid stale values
2022-02-08 12:02:02 +05:30
marination
a64228741d
fix: Trim spaces from attributes (multi-variant creation) & explicit method for building cache
...
- Multiple Item Variants creation fails due to extra spaces in attributes from popup. Clean them before passing to server side
- Mention explicit method to build variants cache to avoid ambiguity between old method path (pre-refactor)
2022-02-08 11:15:19 +05:30
marination
26bd3053d1
perf: Weed out disabled variants via sql query instead of pythonic looping separately
...
- If the number of variants are large (almost 2lakhs), the query to get variants and attribute data takes time
- If the no.of disabled attributes is large as well, the list comprehension weeding out disabled variants takes forever
- We dont need to loop over the variants data so many times
- Avoid any `if a in list(b)` is best when the iterables have tremendous data
2022-02-04 17:38:20 +05:30
marination
4b62d2d7fe
fix: (Linter) Write queries using QB/ORM and other minor lines for semgrep to skip
2022-02-02 12:58:31 +05:30
marination
2933cf243a
fix: Failing test, sider and linter
...
- Remove unused imports
- fix test `test_product_list_attribute_filter_builder`
2022-02-01 12:08:33 +05:30
marination
1d7f313b92
debug: CI
2022-02-01 11:12:05 +05:30
marination
00752ca01d
fix: Wrong variable name breaks Cart Items rendering
2022-02-01 11:11:58 +05:30
marination
143ff715e7
fix: (test) set user for price test
2022-02-01 11:11:38 +05:30
marination
606f23b667
fix: Sider and Linter
2022-02-01 11:11:29 +05:30
marination
4f7ec25bbe
tests: Variant without web item price fetch and add to cart
...
- Also, optionally get image from template web item for cart if variant has no image
2022-02-01 11:11:18 +05:30
marination
47c8ad0b94
fix: Cart Logic of Item variant without Website Item
2022-02-01 11:11:11 +05:30
marination
f2fbe9049f
fix: Server Side test - teardown correctly
2022-02-01 11:10:04 +05:30
marination
2623046ba7
test: Variant Selector - Fetch next valid Attribute values fetching after selection of one
2022-02-01 11:09:46 +05:30
marination
5a462db207
test: Variant Selector - Attribute Value fetching
2022-02-01 11:09:35 +05:30
marination
6c7b3026c9
fix: Behaviour if Item Variants Cache generation
...
- Revert to old behaviour where variant doesnt need to be published
- Delete unused functions
2022-02-01 11:08:30 +05:30
marination
20c71edc84
fix: Exclude unpublished items while fetching items from other item groups
2022-02-01 11:07:53 +05:30
Devin Slauenwhite
49cdf9b7b0
fix(e-commerce): shopping cart total quantity ( #29076 )
...
* fix: shopping cart total quantity
* fix: linter error
2022-02-01 11:06:33 +05:30
marination
456f27724c
fix: Convert Item links to Website Item links in Item Card Group template data
...
- Changed link option to Website Item in Item card group template
- patch to convert pre-existing data
2022-02-01 11:02:48 +05:30
Devin Slauenwhite
262fcbd9fb
fix(test): e-commerce fetch logged-in user item price.
2022-02-01 11:00:37 +05:30
Devin Slauenwhite
18e70e8229
test: e-commerce customer pricing rule
2022-02-01 11:00:28 +05:30
Dany Robert
d4c74b546d
fix: no module named 'redisearch' ( #28818 )
...
* chore: rename file to avoid the overriding
* fix: rename ref #1
* fix: rename ref in e_commerce_settings
* fix: rename ref in product_search.py
* chore: rename rsearch.py to redisearch_utils.py
* chore: rename rsearch to redisearch_utils in product_search
2022-02-01 10:58:18 +05:30
marination
02d92070be
fix: search_box_id instead of search_box_class
2022-02-01 10:55:37 +05:30
marination
6583a83dd3
fix: Sider (missing semicolon)
2022-02-01 10:55:27 +05:30
marination
f63f250630
feat: Allow addition of custom search box
...
- allow passing custom search box class to bind search actions on
- this allows users to inject and get a custom search box running on any page
2022-02-01 10:55:05 +05:30
marination
7bc087ed44
fix: Merge conflicts, Linter and Server Test
...
- Resolve inconsistency due to conflict with https://github.com/frappe/erpnext/pull/27050
- Resolve Linter issues (imports and spaces)
- Include customer_reviews.js in bundle, move it to /public/js
2022-02-01 10:51:50 +05:30