Basil Dubyk
5e1986388f
Fix non-exclusive offers with count condition
Issue: https://github.com/django-oscar/django-oscar/issues/3162
* Checking of `offer.benefit.max_affected_items` removed from the
`available` method of `LineOfferConsumer` class - available items should
not be limited by related benefit (it should be considered when applying
the offer).
* Improved `apply` method of `PercentageDiscountBenefit` - affected
items must include "quantities with discount applied".
* `is_satisfied` method of `CountCondition` updated to pass `offer`
instead of `None` to `line.quantity_without_offer_discount` - this
change is required to fix the initial issue.
* Updated `test_available_with_offer` test - initially this test was
added to check the lines that we removed from the `available` method of
`LineOfferConsumer` class (See fda27a183d/).
* Added tests to confirm that the initial issue is fixed.
5 роки тому
Voxin Muyli
def485209b
Fix querying of products within subcategories in RangeQuerySet.contains_product (#3543)
5 роки тому
Victor Munene
5b67f56c87
Refactor order search form to be inclusive of orders placed on 'to' date
5 роки тому
Victor Munene
2fe4036bf7
Make option group required for option and multi-option attribute types.
5 роки тому
Samir Shah
a11bd4d5d1
Add Github Actions workflows for tests, remove Travis CI config.
5 роки тому
Basil Dubyk
0f3df5fca9
Fix rendering of upsell messages for exclusive offers (#3548)
* Improve `available` method of `LineOfferConsumer` class
* Add `quantity_available_for_offer` method to `AbstractLine` class
* Improve conditions: "Get num matches" methods updated to use `quantity_available_for_offer`
method of `Line` model.
* Improve conditions: `get_upsell_message` methods updated to show upsell message only in
the cases where `delta` > 0.
* Ensure basket upsell messages are not `None`
5 роки тому
Orinda Harrison(Mitch)
af4054be25
Pass currency to Benefit.round method, so that rounding can vary based on currency (#3575)
5 роки тому
Joseph Wayodi
d0796cdc2b
Fix checkout.ThankYouView.get_object to never raise DoesNotExist error
Also fix "is_anonymous" attribute value in WebTestCase subclass.
5 роки тому
Basil Dubyk
7c5f745919
Improve `test_post_process_urls_adds_decorator`
Use function as the return value of `get_url_decorator`. This change
needed because `get_url_decorator` method of `OscarConfigMixin` class
returns function or `None` and not string.
5 роки тому
Orinda Harrison(Mitch)
2599135e93
Add SEO fields to product and category models and make editable in the dashboard (#3534)
5 роки тому
Samir Shah
4bdf5df9b1
Port all core templates and styles to Bootstrap 4.
Co-authored-by: Basil Dubyk <samitnuk.work@gmail.com >
Co-authored-by: Alexander Gaevsky <sasha@sasha0.ru >
Co-authored-by: Joseph Wayodi <jwayodi@gmail.com >
5 роки тому
Jan Fabry
c91f910445
Add support for Django 3.1 (#3516)
5 роки тому
Basil Dubyk
6d9e6dd99d
Modify `test_is_public_on` and `test_is_public_off`
Instead of checking for truthiness we should check for equality
(because any status code is `True`).
5 роки тому
Basil Dubyk
819a6a3a8c
Modify `BasketThresholdTest` class
`override_settings` used instead of updating setting in `setUp`/`tearDown`.
5 роки тому
Basil Dubyk
d4748cdb33
Remove useless line
5 роки тому
Alexander Gaevsky
18eca6f76c
Refactor report generators to be easier to extend, and fix date range filtering in CSV exports (#3501)
5 роки тому
Basil Dubyk
b14cb7ff59
Add test to check adding/removing of a voucher
5 роки тому
Viggo de Vries
603944d1dd
Add method get_attribute_values to Product model which also fetches parent product attributes (#3514)
5 роки тому
Samir Shah
3d88f81428
Order reviews by date created by default in the dashboard. (#3512)
5 роки тому
Alexander Gaevsky
19a88f8d11
Add a custom LoginView for the dashboard so that the success redirect URL can be controlled more precisely (#3507)
5 роки тому
Alexander Gaevsky
31c935cf1d
Change checkout thank you view to redirect to the homepage if order not found in the session. (#3506)
5 роки тому
Alexander Gaevsky
044509e82e
Fix database password extraction from environment variables in the tests settings.
5 роки тому
Samir Shah
f6157f2268
Make ProductAttributesContainer a lazy object so that initialisation is simpler.
Fixes #3258 .
5 роки тому
Paul J Stevens
1d0c704185
Add support for restricted offer combinations
Non-exclusive offers that only allow combination with specific other offers
6 роки тому
Alexander Gaevsky
680e05bf4b
Respect old-style 5-digit postal codes for Israel, which are still in use by customers.
5 роки тому
Samir Shah
10dce286bc
Replace uses of django.conf.urls.url with django.urls.path/re_path
5 роки тому
Viggo de Vries
81ec4da73a
Pass shipping charge as a kwarg to the surcharge calculator (#3481)
5 роки тому
pyup-bot
3a677f9952
Define default ordering on several models.
5 роки тому
PlayDay
dd5a151af2
Add new type field for product.Option and enhanced form rendering for options based on their type.
6 роки тому
Samir Shah
d5d5c9d6fc
Remove/rename several deprecated model fields from order and partner apps.
6 роки тому
Samir Shah
9766eb07d4
Update isort configuration, and fix imports that are not at the top of modules.
5 роки тому
Samir Shah
25b2c0765e
Exclude non-public child products from public views.
5 роки тому
Samir Shah
2f9b52f58f
Restore basket if order placement fails for any reason.
5 роки тому
Francisco Ceruti
81fd3798e0
Fix bug where conditions can be created just providing one of range, type or value (#3377)
5 роки тому
Viggo de Vries
24b349836e
Add new feature Surcharges.
6 роки тому
Joseph Wayodi
d778f8f1dd
Delete both valid and invalid basket lines marked for deletion
Currently, if a valid basket line is marked for deletion, any other
invalid basket lines on the formset prevent it from being deleted.
5 роки тому
Basil Dubyk
8e7ee62a2e
🚧 WIP - Improve `apply` method of `MultibuyDiscountBenefit` (#3343)
Fix handling of count conditions in `MultibuyDiscountBenefit`
5 роки тому
capelito
da355e422b
Delete auto-generated offer when a voucher is deleted.
6 роки тому
Michał Mazur
24bb6f1663
Fix use of removed browsable manager in product lookup view (#3324)
5 роки тому
Craig Loftus
5ac86e359d
Remove calls to six
6 роки тому
Alexander Gaevsky
61ce21e09c
Do not allow boolean product attribute be required.
6 роки тому
Joseph Wayodi
628bd1e108
Add "default_app_config" when forking app
6 роки тому
Samir Shah
52480d98d1
Remove UnicodeCSVReader and a few other Python 2 compatibility shims.
6 роки тому
Samir Shah
93e7e66c2b
Add support for Django 3, drop support for Django 1.11
6 роки тому
Samir Shah
9eae894cf9
Drop deprecated functionality scheduled for removal in Oscar 2.1
6 роки тому
Samir Shah
c74c8fe1f4
Fix time-dependent tests.
Switch to using freezegun for tests that depend on date.
6 роки тому
Roel Bruggink
810eaa9a9d
Add is_public to Category and hide non-public categories from frontend views.
6 роки тому
Samir Shah
0ec4d7f378
Use parent class get_users() method in PasswordResetForm.
6 роки тому
samitnuk
2af6753c67
Add a new Communication app that manages all of Oscar's communications.
8 роки тому
Basil Dubyk
62998f2c09
Add Oscar apps to `INSTALLED_APPS` as recommended by Django
6 роки тому