-
Notifications
You must be signed in to change notification settings - Fork 113
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
Partial only ever displays master variant pricing #59
Comments
@jhirbour I tried to parse this issue today but I couldn't. Can you show me some screenshots of what is happening? I think that would help me understand. |
Setup 2 variants with volume pricing:
It seems like there needs to be some javascript in this Gem like the javascript in store/product.js that re-renders the price and pictures |
Steps to repeat:
Install spree 2.1
load spree sample data
Install this gem (2.1)
Create examples in the admin interface (these examples from the README.md)
Create your own product page (copy it from the spree gem): app/views/spree/products/show.html.erb
add the partial to you overridden product page
start your webserver
Navigate to the product page
The problem:
Strictly a display issue only: clicking the different images of the product changes the product image, but the partial only ever displays the pricing from the master.
As far as I can tell the correct price is used when you click the variant and add to your cart, but it'd be confusing for a user if you had different volume prices per variant but they are only displayed the master one.
Gemfile
The text was updated successfully, but these errors were encountered: