Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Erik Kallen
committed
Aug 22, 2012
1 parent
72aea79
commit 3f05ac6
Showing
9 changed files
with
66 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ | |
/tmp | ||
|
||
/config/database.yml | ||
|
||
public/spree/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Deface::Override.new(:virtual_path => "spree/products/show", | ||
:insert_before => "div#product-description", | ||
:partial => "shared/volume_pricing", | ||
:name => "volume_pricing") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%= render :partial => 'spree/products/volume_pricing', :locals => { :product => @product } %> |
17 changes: 17 additions & 0 deletions
17
db/migrate/20120815205141_create_volume_prices.spree_volume_pricing.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# This migration comes from spree_volume_pricing (originally 20081119145604) | ||
class CreateVolumePrices < ActiveRecord::Migration | ||
def self.up | ||
create_table :volume_prices do |t| | ||
t.references :variant | ||
t.string :display | ||
t.string :range | ||
t.decimal :amount, :precision => 8, :scale => 2 | ||
t.integer :position | ||
t.timestamps | ||
end | ||
end | ||
|
||
def self.down | ||
drop_table :volume_prices | ||
end | ||
end |
10 changes: 10 additions & 0 deletions
10
db/migrate/20120815205142_change_display_name_for_volume_prices.spree_volume_pricing.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# This migration comes from spree_volume_pricing (originally 20110203174010) | ||
class ChangeDisplayNameForVolumePrices < ActiveRecord::Migration | ||
def self.up | ||
rename_column :volume_prices, :display, :name | ||
end | ||
|
||
def self.down | ||
rename_column :volume_prices, :name, :display | ||
end | ||
end |
7 changes: 7 additions & 0 deletions
7
db/migrate/20120815205143_prefix_table_names.spree_volume_pricing.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# This migration comes from spree_volume_pricing (originally 20111206173307) | ||
class PrefixTableNames < ActiveRecord::Migration | ||
def change | ||
rename_table :volume_prices, :spree_volume_prices | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters