Closed emilian closed 10 years ago
Take a look at the following code:
https://github.com/diefenbach/django-lfs/blob/master/lfs/catalog/models.py#L1813
Then take a look at the code when the cart is refreshed:
https://github.com/diefenbach/django-lfs/blob/master/lfs/cart/views.py#L423
The refresh cart function is expecting a a boolean return value, but instead the get_active_packing_unit method returns the actual value from the database (0, 2 or 3) which evaluates to true, even though the product is set to "no" (false).
This is also an issue with the get_active_base_price method as well:
https://github.com/diefenbach/django-lfs/blob/master/lfs/catalog/models.py#L899
Fixed by @pigletto
Take a look at the following code:
https://github.com/diefenbach/django-lfs/blob/master/lfs/catalog/models.py#L1813
Then take a look at the code when the cart is refreshed:
https://github.com/diefenbach/django-lfs/blob/master/lfs/cart/views.py#L423
The refresh cart function is expecting a a boolean return value, but instead the get_active_packing_unit method returns the actual value from the database (0, 2 or 3) which evaluates to true, even though the product is set to "no" (false).