Open jhirbour opened 10 years ago
@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:
Verify in the DB
sqlite> SELECT * FROM spree_volume_prices WHERE variant_id IN (24,17); id variant_id name range amount position created_at updated_at discount_type ---------- ---------- ---------- ---------- ---------- ---------- -------------------------- -------------------------- ------------- 3 17 10-20 (11..20) 5 1 2014-03-06 15:06:04.838933 2014-03-06 15:38:44.739249 price 4 17 0-10 (1..10) 3 2 2014-03-06 15:06:04.842051 2014-03-06 15:38:44.742184 price 11 24 10-20 (11..20) 20 3 2014-03-26 13:24:59.829500 2014-03-26 13:24:59.829500 price 12 24 0-10 (1..10) 10 1 2014-03-26 13:24:59.834423 2014-03-26 13:24:59.834423 price sqlite>
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:
Create examples in the admin interface (these examples from the README.md)
add the partial to you overridden 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