We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ddbc53f commit 718f857Copy full SHA for 718f857
app/views/products/_cart_form.html.erb
@@ -1,11 +1,14 @@
1
<% form_for :order, :url => orders_url do |f| %>
2
+<% hook :inside_product_cart_form do %>
3
4
<% if product_price(@product) %>
- <p class="prices">
5
- <%= t("price") %>
6
- <br />
7
- <span class="price selling update"><%= product_price(@product) %></span>
8
- </p>
+ <% hook :product_price do %>
+ <p class="prices">
+ <%= t("price") %>
+ <br />
9
+ <span class="price selling update"><%= product_price(@product) %></span>
10
+ </p>
11
+ <% end %>
12
<% end %>
13
14
<% if @product.has_variants? %>
@@ -23,8 +26,11 @@
23
26
<% else %>
24
27
<%= content_tag('strong', t('out_of_stock')) %>
25
28
29
+
30
+<% end %>
31
32
33
<% content_for :head do %>
34
<%= javascript_include_tag 'product' %>
35
36
0 commit comments