Permalink
Browse files

fixed the add to cart

  • Loading branch information...
1 parent 8e4100f commit 0c43ca7b42dbfcd24204b3591e372785c7650ced @florida committed Nov 20, 2012
Showing with 3 additions and 0 deletions.
  1. +2 −0 app/controllers/store_controller.rb
  2. +1 −0 app/models/lineitem.rb
@@ -30,4 +30,6 @@ def get_cart
session[:cart] ||= Cart.new
end
+
+
end
View
@@ -11,5 +11,6 @@ def self.add_product(product)
item.product = product
#record the price during the sale
item.unit_price = product.price
+ item
end
end

0 comments on commit 0c43ca7

Please sign in to comment.