diff --git a/plugins/shopping_cart/20110422151030_add_shopping_cart_to_profile.rb b/plugins/shopping_cart/20110422151030_add_shopping_cart_to_profile.rb new file mode 100644 index 0000000..c5c8f17 --- /dev/null +++ b/plugins/shopping_cart/20110422151030_add_shopping_cart_to_profile.rb @@ -0,0 +1,10 @@ +class AddShoppingCartToProfile < ActiveRecord::Migration + + def self.up + add_column :profiles, :shopping_cart, :boolean, :default => true + end + + def self.down + remove_column :profiles, :shopping_cart + end +end diff --git a/plugins/shopping_cart/views/shopping_cart_plugin_myprofile/edit.html.erb b/plugins/shopping_cart/views/shopping_cart_plugin_myprofile/edit.html.erb index 687455f..7c3f7e3 100644 --- a/plugins/shopping_cart/views/shopping_cart_plugin_myprofile/edit.html.erb +++ b/plugins/shopping_cart/views/shopping_cart_plugin_myprofile/edit.html.erb @@ -1,7 +1,6 @@

<%= _('Cart options') %>

<% form_for(:profile_attr, profile, :url => {:action => 'edit'}, :html => {:method => 'post'}) do |f| %> -<%# form_tag :action => 'edit' do %> <%= labelled_form_field(_('Enabled?'), f.check_box(:shopping_cart)) %> <%= labelled_form_field(_('Delivery?'), f.check_box(:shopping_cart_delivery)) %> <%= labelled_form_field(_('Delivery price:'), f.text_field(:shopping_cart_delivery_price)) %> -- libgit2 0.21.2