app/helpers/piggybak_helper.rb in piggybak-0.3.0 vs app/helpers/piggybak_helper.rb in piggybak-0.3.1
- old
+ new
@@ -12,6 +12,11 @@
def orders_link(text)
if current_user
link_to text, piggybak.orders_list_url
end
end
+ def piggybak_track_order(store_name)
+ if params[:controller] == "piggybak/orders" && params[:action] == "receipt" && session.has_key?(:last_order)
+ render "piggybak/orders/google_analytics", :order => @order, :store_name => store_name
+ end
+ end
end