-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #151 from nebulab/mfrecchiami/move_price_under_pro…
…duct_info Move price under product info
- Loading branch information
Showing
6 changed files
with
23 additions
and
19 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
app/assets/stylesheets/spree/frontend/components/products/_product_price.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.product-price { | ||
font-size: $h4-font-size; | ||
} |
4 changes: 0 additions & 4 deletions
4
app/assets/stylesheets/spree/frontend/components/products/_product_submit.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
.product-submit { | ||
margin: 0 0 3rem; | ||
|
||
&__title { | ||
font-size: $h4-font-size; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
app/views/spree/components/products/_product_price.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<% if @product.price_for(current_pricing_options) and [email protected]? %> | ||
<h2 class="product-price" id="product-price"> | ||
<%= content_tag( | ||
:span, | ||
display_price(@product), | ||
itemprop: 'price', | ||
content: @product.price_for(current_pricing_options).to_d, | ||
data: { js: 'price' } | ||
) %> | ||
|
||
<span | ||
itemprop="priceCurrency" | ||
content="<%= current_pricing_options.currency %>" | ||
></span> | ||
</h2> | ||
<% end %> |
16 changes: 1 addition & 15 deletions
16
app/views/spree/components/products/_product_submit.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters