ZeroDay Posted September 8, 2012 Share Posted September 8, 2012 (edited) Hello everyone, I'm trying to modify cart to add an option to add every available discount for each user. I don't want to let user to apply discount, I wan't to add discounts to cart automatically. My questions are: 1. How to get array/list of available discounts for each user? 2. How to check, if discounts are correct? (minimum price is reached, etc.) 3. How to add the discount to cart without user action? Simple scheme: User adds new product/changing amount of product --> Shop checks every possible discounts --> Shop validates every discount --> Shop adds discounts to cart. EDIT: I found one simple help. Every discount when they are applied to cart, they're in database in _cart_discount, so now it'll be a little bit easier, but still I'm looking for answers. Edited September 8, 2012 by BGM58 (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now