spree/spree — pull request #2045 by msevestre (2012-10-03 15:08:46+00:00)
Title: Updating product price when when variant is selected

This PR contains a fix to a problem described in the user group here
https://groups.google.com/forum/?hl=en&fromgroups=#!topic/spree-user/J2AtlPciyuc

There is a new preference `show_variant_full_price`. When set to `false (default)` the behavior is the same as before (i.e price is displayed a difference from master price). When set to `true` the full price is displayed (only if all variant prices differs from master price)

In all case, the price is also being updated when a variant is selected (added a new method to product.js.coffee)

I have an issue making a test pass. It works in sandbox but not in the test environment. Any pointers on that would be appreciated

I commented the test out for now
https://github.com/msevestre/spree/pull/new/spree:master...variant_full_price#L4R49

Please let me know if there is anything I should change or improve. Thanks