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

update products when sales is disabled #8

Open
wants to merge 95 commits into
base: master
Choose a base branch
from

Conversation

kascote
Copy link

@kascote kascote commented Feb 2, 2016

ericsaupe and others added 30 commits October 6, 2014 09:39
	modified:   app/views/spree/shared/_original_price_display_item_added.html.erb
	modified:   app/helpers/spree/products_helper_decorator.rb
…the function of this plugin that has diverged in the community a fair bit.

This commit incorporates work that allows the plugin to function properly for sale items.

The major issue is that Variants were not correctly announcing themselves as on_sale?=true

When the 'price' was being copied to a line item it was always copied as a the full item price because on_sale? would always report false.

This set of fixes allows the variant to correctly report its status.
Big ole stinking hacky fix of a merge of open source work to improve the...
Fix show percentage savings on cart page
…al price line-through

	modified:   app/overrides/add_original_price_to_products_index.rb
	modified:   app/views/spree/shared/_original_price_display.html.erb
	modified:   app/views/spree/shared/_original_price_display_item_added.html.erb
	modified:   app/views/spree/shared/_original_price_display_variant.html.erb
	modified:   spree_sale_pricing.gemspec
…g-with-multiple-variants

Add original price override to variant-listing
	new file:   app/overrides/add_original_price_to_variant_options.rb
	new file:   app/views/spree/shared/_original_price_display_variant_options.html.erb
	modified:   app/views/spree/shared/_original_price_display_variant_options.html.erb
	modified:   spree_sale_pricing.gemspec
@ericsaupe
Copy link

@kascote this also needs to be opened against deseretbook:2-3-stable

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

Successfully merging this pull request may close these issues.

9 participants