Skip to content

Commit 718f857

Browse files
cmerromul
authored andcommitted
added missing hooks
1 parent ddbc53f commit 718f857

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

app/views/products/_cart_form.html.erb

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<% form_for :order, :url => orders_url do |f| %>
2+
<% hook :inside_product_cart_form do %>
23

34
<% if product_price(@product) %>
4-
<p class="prices">
5-
<%= t("price") %>
6-
<br />
7-
<span class="price selling update"><%= product_price(@product) %></span>
8-
</p>
5+
<% hook :product_price do %>
6+
<p class="prices">
7+
<%= t("price") %>
8+
<br />
9+
<span class="price selling update"><%= product_price(@product) %></span>
10+
</p>
11+
<% end %>
912
<% end %>
1013

1114
<% if @product.has_variants? %>
@@ -23,8 +26,11 @@
2326
<% else %>
2427
<%= content_tag('strong', t('out_of_stock')) %>
2528
<% end %>
29+
30+
<% end %>
2631
<% end %>
2732

2833
<% content_for :head do %>
2934
<%= javascript_include_tag 'product' %>
3035
<% end %>
36+

0 commit comments

Comments
 (0)