View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0006887||OXID eShop (all versions)||1.02. Price calculations (discounts, coupons, additional costs etc.)||public||2018-08-15 10:11||2018-08-15 14:47|
|Target Version||Fixed in Version|
|Summary||0006887: Deletion of an account by the user can make discount apply to all articles|
|Description||If you allow users to delete their accounts and have a discount that is only valid for one user, the discount will apply to all articles of the shop once that user deletes his account.|
The obvious workaround for this is to never assign discounts to users directly and rather use user groups for that.
I don't have a good solution to fix the problem. Maybe disable the discount if there are no assigned users left after a user account is deleted?
|Steps To Reproduce||1. Register a new account|
2. Create a new discount with any discount value, assign the discount to the registered user
3. Allow users to delete their account in the shop settings
4. Login with the new user and delete the account
5. The discount is global now
|Tags||No tags attached.|
|PHP Version||Not defined|
|MySQL Version||Not defined|