Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working with 100's of quantities and adjustments #56

Closed
ddanninger opened this issue Sep 16, 2020 · 1 comment
Closed

Working with 100's of quantities and adjustments #56

ddanninger opened this issue Sep 16, 2020 · 1 comment

Comments

@ddanninger
Copy link

Hi there,

thanks for this great addition to sylius.

Did anyone expierence already some issues with 100's of quantities?
We planned to use this plugin for like quantities of 250 - 1000 units.

The problem what i expierenced is that for all of those quantities it would run as many adjustments on the pricings and applieng coupons and stuff just makes it a huge mess and comes into database lock issues etc. For now i handled that with Memcache to not run in locking issues.

Did anybody solve that? Did you turn off automatic adjustments then? Or any suggestions how to handle 100's of quantities?

@mamazu
Copy link
Collaborator

mamazu commented Sep 17, 2020

Thanks for using our plugin.

Sadly we don't have a ready made solution for you. Currently Sylius creates for every product in the cart one object in the database. Messing with such a core behaviour is probably not a good idea. One simple to implement solution would be to create the article in tiers:

Like you have a product called nails. And you have a variant called 100 nails one called 10 Nails, one called 1 nail. If you do it like that you don't need tierpricing because you can customize that after generating the variants.

@mamazu mamazu closed this as completed Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants