Commit Graph
10921 Commits
Author SHA1 Message Date
Mira Weller 9cb708cf6f fix typing 2024-07-19 14:21:24 +02:00
Mira Weller e18c699529 formatting, refactoring 2024-07-19 14:21:24 +02:00
Mira Weller 9c3150ccde add license header 2024-07-19 14:21:24 +02:00
Mira Weller 923798ea5f fix cross-selling recommendation logic bug 2024-07-19 14:21:24 +02:00
Mira Weller b8d2372cf6 store apply_discounts result for use in test cases 2024-07-19 14:21:24 +02:00
Mira Weller e01e9151c3 correct type annotation 2024-07-19 14:21:24 +02:00
Mira Weller 09398ad7c7 add more test cases 2024-07-19 14:21:24 +02:00
Mira Weller d1de8f5863 remove redundant check
(this is already checked using the 'if not self.condition_min_count or self.condition_min_value' condition directly above)
2024-07-19 14:21:24 +02:00
Mira Weller bee0eaa2fa add some unit tests for cross-selling logic 2024-07-19 14:21:24 +02:00
Mira Weller ac771b8ca8 refactor cross-selling logic into its own module 2024-07-19 14:21:24 +02:00
Mira Weller cb635b2c37 add TODO for known error 2024-07-19 14:21:24 +02:00
Mira Weller 3fe6919bef add typing 2024-07-19 14:21:24 +02:00
Mira Weller 8cfb69c265 clarifications 2024-07-19 14:21:24 +02:00
Mira Weller 77fc13605e new sales channel compat 2024-07-19 14:21:24 +02:00
Mira Weller a95976ed50 translate comments 2024-07-19 14:21:24 +02:00
Mira Weller 2e3a611498 isort 2024-07-19 14:21:24 +02:00
Mira Weller 6bf16f1510 Use namedtuple 2024-07-19 14:21:24 +02:00
Mira Weller d29b183801 fix test case 2024-07-19 14:21:24 +02:00
Mira Weller 188ef5f463 isort 2024-07-19 14:21:24 +02:00
Mira Weller a7e292ea58 fix case 2024-07-19 14:21:24 +02:00
Mira Weller d04b855cce category_type refactoring 2024-07-19 14:21:24 +02:00
Mira Weller 01b535a0af cache potential discount information
relevant if shop has multiple categories with cross_selling_condition=discounts
2024-07-19 14:21:23 +02:00
Mira Weller d9f31aae8c better var names 2024-07-19 14:21:23 +02:00
Mira Weller 715347cb35 filter non-buyable items from list 2024-07-19 14:21:23 +02:00
Mira Weller 32cc45f19a make cross-selling-applicable more specific and cache state
(only show if really applicable, e.g. don't show if product can't be bought due to order_max)
2024-07-19 14:21:23 +02:00
Mira Weller cadf8dd39d better order_max handling 2024-07-19 14:21:23 +02:00
Mira Weller b136ac37c8 Hide addon text if only cross-selling, no addons in addon step 2024-07-19 14:21:23 +02:00
Mira Weller 8627eefebc first round of cleanup 2024-07-19 14:21:23 +02:00
Mira Weller e71d3e21ca display discounted prices, limit number of products according to discount rule 2024-07-19 14:21:23 +02:00
Mira Weller a18adb8a88 wip 2024-07-19 14:21:23 +02:00
Mira Weller f56d67ec9c add todo notes 2024-07-19 14:21:23 +02:00
Mira Weller c156581ad1 fix discount collection (?) 2024-07-19 14:21:23 +02:00
Mira Weller 8791280d0b Implement discount prediction (very WIP!) 2024-07-19 14:21:23 +02:00
Mira Weller 97925e2d77 migration, show category type in ui 2024-07-19 14:21:23 +02:00
Mira Weller a0d865cf4f implement cross_selling_visibility "always" and "products" 2024-07-19 14:21:21 +02:00
Mira Weller 2cd5d87da4 Refactor fragment_product_list.html 2024-07-19 14:21:00 +02:00
Mira Weller e5c7c85e75 Allow adding products from multiple subevents to the cart at once 2024-07-19 14:21:00 +02:00
Mira Weller 3e0992a7a7 Make the comments in cart.py less incorrect 2024-07-19 14:21:00 +02:00
Mira Weller f19e5bef72 Cross-selling category configuration 2024-07-19 14:21:00 +02:00
Richard SchreiberandGitHub c49f42301c Fix file-type check for product image 2024-07-19 12:44:49 +02:00
Reece NeedhamandRaphael Michel 2ae0a16e67 Translations: Update Spanish
Currently translated at 100.0% (231 of 231 strings)

Translation: pretix/pretix (JavaScript parts)
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix-js/es/

powered by weblate
2024-07-19 11:52:27 +02:00
Reece NeedhamandRaphael Michel 6b06fdf822 Translations: Update Spanish
Currently translated at 88.6% (5045 of 5690 strings)

Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/es/

powered by weblate
2024-07-19 11:52:27 +02:00
Reece NeedhamandRaphael Michel ea3f4e5f62 Translations: Update Spanish
Currently translated at 100.0% (231 of 231 strings)

Translation: pretix/pretix (JavaScript parts)
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix-js/es/

powered by weblate
2024-07-19 11:52:27 +02:00
Reece NeedhamandRaphael Michel d71c23f7e0 Translations: Update Spanish
Currently translated at 87.5% (4983 of 5690 strings)

Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/es/

powered by weblate
2024-07-19 11:52:27 +02:00
NikolaiandRaphael Michel 5ed7b0032b Translations: Update Danish
Currently translated at 49.4% (2815 of 5690 strings)

Translation: pretix/pretix
Translate-URL: https://translate.pretix.eu/projects/pretix/pretix/da/

powered by weblate
2024-07-19 11:52:27 +02:00
Martin Gross a77f2d01a7 CartManager: Allow to explicitly set an order expiration 2024-07-19 11:38:36 +02:00
Raphael Michel ca4f511cde Voucher import: Fix subevent column 2024-07-19 10:56:17 +02:00
Raphael MichelandGitHub 83b1c2ea7e Do not take "optional" as part of error message label (#4309) 2024-07-18 14:57:25 +02:00
Richard SchreiberandGitHub c91eb2e20d Set cursor to not-allowed on labels for disabled checkboxes 2024-07-18 11:54:43 +02:00
Richard SchreiberandGitHub bfb480a288 UI: in plugin-list only show border-top when necessary (#4314) 2024-07-18 11:43:24 +02:00