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

Cart prices are not showing properly #111

Open
Tashows opened this issue Nov 20, 2018 · 1 comment
Open

Cart prices are not showing properly #111

Tashows opened this issue Nov 20, 2018 · 1 comment

Comments

@Tashows
Copy link

Tashows commented Nov 20, 2018

I created a variant volume price and added the 2x products of that variant to the cart. The price is not affected at all, until I change the item amount to 3x, update the cart and then change it back to 2x.

The price volume has a range of 2..2. I want to make a discount when you just get two items instead of one.

Any clues?

@Tashows
Copy link
Author

Tashows commented Nov 20, 2018

The problem seems to be coming from this file: https://github.com/spree-contrib/spree_volume_pricing/blob/master/app/models/spree/line_item_decorator.rb
There is a check that updates the line_item price only if the quantity was changed. Commenting that condition out, seems to have solved my issue. Now adding 2x of a variant displays the right price.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant