Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

removing deprecated method

  • Loading branch information...
commit e43601bd3c4d62fc4e45b6662b521a7fbd0342f0 1 parent b0c5f81
Andrew Hooker authored May 04, 2012
3  app/overrides/replace_cart_form.rb
@@ -5,7 +5,6 @@
5 5
                           :text => %q{<div id="cart-form" data-hook="cart_form">
6 6
     <%= form_for :order, :url => populate_orders_url do |f| %>
7 7
     
8  
-      <% if product_price(@product) %>
9 8
         <%= hidden_field_tag (@product.has_variants? ? :quantity : "variants[#{@product.master.id}]"), 1, :class => "title", :size => 3 %>
10 9
     
11 10
         <dl class="part-numbers clearfix">
@@ -32,8 +31,6 @@
32 31
         </dl>
33 32
         <hr />
34 33
     
35  
-      <% end %>
36  
-
37 34
     
38 35
       <hr />
39 36
     
4  app/overrides/replace_product_show.rb
@@ -24,7 +24,6 @@
24 24
     <div id="cart-form"  data-hook="cart_form">
25 25
       <%= form_for :order, :url => populate_orders_url do |f| %>
26 26
         <div data-hook="inside_product_cart_form" %>
27  
-          <% if product_price(@product) %>
28 27
             <%= hidden_field_tag (@product.has_variants? ? :quantity : "variants[#{@product.master.id}]"), 1, :class => "title", :size => 3 %>
29 28
 
30 29
             <dl class="part-numbers clearfix">
@@ -74,9 +73,6 @@
74 73
               </div>
75 74
             <% end%>
76 75
 
77  
-
78  
-          <% end %>
79  
-
80 76
           <p><button type="submit">Add to cart</button></p>
81 77
         <% end %>
82 78
       </div>

0 notes on commit e43601b

Please sign in to comment.
Something went wrong with that request. Please try again.