Maximum quantity a product(-bundle) can be bought per customer
Hey there!
is there an out of the box solution to define a maximum amount a product(-bundle) can be bought by a customer?
If not, what would be a good approach here? I could imagine a table that uses SKU and customer number mapping to count how often a particular SKU has already been purchased by a particular customer. But this table could possibly become quite inperformant. This information would also have to be available in the frontend in order to hide articles accordingly or at least prevent them from being added to the cart and purchased.
I would be happy to get some ideas :)
Best Answer
-
hi, nice to see you in our Community!
I would still go with the separate table to account and limit number of purchases.
Additionally, I'd include this data into the product data (both Redis and ES) in order to have it available instantly.
I'm not sure what you mean by performance issues here, since this property is not much more complex then, let's say, measurement units or attributes.
1
Answers
-
hi, nice to see you in our Community!
I would still go with the separate table to account and limit number of purchases.
Additionally, I'd include this data into the product data (both Redis and ES) in order to have it available instantly.
I'm not sure what you mean by performance issues here, since this property is not much more complex then, let's say, measurement units or attributes.
1 -
Hey Andrey! Nice to see you too ;)
Thank you very much for your answer.
In the meantime, I implement it in exactly this way.
Do you know if Spryker has plans to introduce such a feature?
Best, David
0 -
I'm glad that the answer has helped!
I'm sorry to say, but this feature is not yet planned.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 919 Developer Corner
- 779 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 34 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K 📜 Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 69 Spryker Safari Questions
- 50 Random