spree 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spree might be problematic. Click here for more details.
- data/CHANGELOG +35 -0
- data/CONTRIBUTORS +2 -1
- data/README.markdown +8 -52
- data/app/controllers/account_controller.rb +1 -1
- data/app/controllers/addresses_controller.rb +5 -1
- data/app/controllers/admin/inventory_settings_controller.rb +13 -0
- data/app/controllers/admin/option_types_controller.rb +1 -1
- data/app/controllers/admin/orders_controller.rb +14 -8
- data/app/controllers/admin/products_controller.rb +2 -0
- data/app/controllers/admin/variants_controller.rb +7 -0
- data/app/controllers/content_controller.rb +5 -0
- data/app/controllers/creditcard_payments_controller.rb +2 -2
- data/app/controllers/orders_controller.rb +18 -2
- data/app/helpers/admin/inventory_settings_helper.rb +5 -0
- data/app/helpers/admin/product_properties_helper.rb +10 -2
- data/app/helpers/products_helper.rb +2 -2
- data/app/models/address.rb +2 -2
- data/app/models/app_configuration.rb +1 -0
- data/app/models/creditcard_payment.rb +6 -14
- data/app/models/order.rb +6 -12
- data/app/models/order_filter.rb +1 -0
- data/app/models/product.rb +9 -0
- data/app/models/product_property.rb +1 -0
- data/app/models/property.rb +0 -1
- data/app/models/zone.rb +17 -3
- data/app/views/account/login.html.erb +2 -14
- data/app/views/admin/configurations/index.html.erb +4 -0
- data/app/views/admin/inventory_settings/edit.html.erb +18 -0
- data/app/views/admin/inventory_settings/show.html.erb +11 -0
- data/app/views/admin/orders/_address.html.erb +1 -1
- data/app/views/admin/orders/index.html.erb +5 -1
- data/app/views/admin/orders/show.html.erb +3 -3
- data/app/views/admin/product_properties/_product_property.html.erb +6 -3
- data/app/views/admin/products/_form.html.erb +9 -1
- data/app/views/admin/prototypes/select.rjs +3 -1
- data/app/views/admin/variants/_form.html.erb +6 -0
- data/app/views/admin/variants/index.html.erb +7 -1
- data/app/views/creditcard_payments/_form_credit_card.html.erb +1 -1
- data/app/views/creditcard_payments/new.html.erb +7 -2
- data/app/views/products/show.html.erb +8 -2
- data/app/views/shared/_login.html.erb +17 -0
- data/app/views/shared/_products.html.erb +1 -1
- data/app/views/users/_form.html.erb +1 -1
- data/app/views/users/new.html.erb +19 -8
- data/config/boot.rb +1 -1
- data/config/database.yml +7 -3
- data/config/environment.rb +16 -2
- data/config/routes.rb +4 -0
- data/db/migrate/20081016002224_remove_defunct_order_fields.rb +10 -0
- data/db/migrate/20081016162924_drop_category_id_from_products.rb +9 -0
- data/db/sample/addresses.yml +14 -0
- data/db/sample/orders.yml +0 -1
- data/lang/ui/de-DE.yml +2 -1
- data/lang/ui/en-US.yml +50 -25
- data/lang/ui/es-ES.yml +2 -1
- data/lang/ui/it-IT.yml +2 -1
- data/lang/ui/pl-PL.yml +1 -0
- data/lang/ui/pt-BR.yml +5 -2
- data/lib/authenticated_system.rb +1 -1
- data/lib/generators/extension/extension_generator.rb +1 -0
- data/lib/generators/extension/templates/extension.rb +4 -5
- data/lib/generators/extension/templates/tasks.rake +12 -0
- data/lib/generators/extension_migration/extension_migration_generator.rb +32 -0
- data/lib/generators/extension_migration/templates/migration.rb +7 -0
- data/lib/spree.rb +2 -2
- data/lib/spree/extension.rb +0 -7
- data/lib/spree/extension_loader.rb +0 -8
- data/lib/tasks/extensions.rake +47 -0
- data/public/javascripts/application.js +34 -0
- data/public/javascripts/spree-yui.js +2 -2
- data/public/stylesheets/spree.css +11 -1
- data/spec/fixtures/preferences.yml +14 -6
- data/spec/models/address_spec.rb +78 -0
- data/spec/models/country_spec.rb +29 -0
- data/spec/models/option_type_spec.rb +36 -0
- data/spec/models/option_value_spec.rb +39 -0
- data/spec/models/product_option_type_spec.rb +38 -0
- data/spec/models/product_property_spec.rb +36 -0
- data/spec/models/product_spec.rb +109 -32
- data/spec/models/property_spec.rb +38 -0
- data/spec/models/prototype_spec.rb +35 -0
- data/spec/models/state_spec.rb +28 -0
- data/spec/models/taxon_spec.rb +38 -0
- data/spec/models/taxonomy_spec.rb +37 -0
- data/spec/models/variant_spec.rb +73 -12
- data/spec/models/zone_spec.rb +35 -15
- data/spec/spec_helper.rb +15 -0
- data/spec/views/admin/configurations/index.html.erb_spec.rb +29 -0
- data/spec/views/admin/mail_settings/show.html.erb_spec.rb +3 -3
- data/spec/views/products/index.html.erb_spec.rb +46 -0
- data/spec/views/products/show.html.erb_spec.rb +46 -0
- data/vendor/extensions/flat_rate_shipping/README.markdown +3 -0
- data/vendor/extensions/flat_rate_shipping/Rakefile +120 -0
- data/vendor/extensions/flat_rate_shipping/flat_rate_shipping_extension.rb +17 -0
- data/vendor/extensions/flat_rate_shipping/lib/flat_rate_shipping_configuration.rb +7 -0
- data/vendor/extensions/flat_rate_shipping/lib/spree/flat_rate_shipping/calculator.rb +9 -0
- data/vendor/extensions/flat_rate_shipping/lib/spree/flat_rate_shipping/config.rb +22 -0
- data/vendor/extensions/flat_rate_shipping/lib/tasks/flat_rate_shipping_extension_tasks.rake +29 -0
- data/vendor/extensions/flat_rate_shipping/spec/spec.opts +6 -0
- data/vendor/extensions/flat_rate_shipping/spec/spec_helper.rb +37 -0
- data/vendor/extensions/localization/localization_extension.rb +1 -6
- data/vendor/extensions/payment_gateway/lib/gateway_config.rb +7 -0
- data/vendor/extensions/payment_gateway/lib/spree/gateway/config.rb +22 -0
- data/vendor/extensions/payment_gateway/lib/spree/payment_gateway.rb +27 -3
- data/vendor/extensions/payment_gateway/payment_gateway_extension.rb +0 -4
- data/vendor/extensions/shipping/README.markdown +3 -0
- data/vendor/extensions/shipping/Rakefile +120 -0
- data/vendor/extensions/shipping/app/controllers/admin/shipping_categories_controller.rb +17 -0
- data/vendor/extensions/shipping/app/controllers/admin/shipping_methods_controller.rb +21 -0
- data/vendor/extensions/shipping/app/controllers/shipments_controller.rb +84 -0
- data/vendor/extensions/shipping/app/helpers/admin/shipping_categories_helper.rb +2 -0
- data/vendor/extensions/shipping/app/helpers/admin/shipping_methods_helper.rb +2 -0
- data/vendor/extensions/shipping/app/helpers/shipments_helper.rb +20 -0
- data/vendor/extensions/shipping/app/models/shipment.rb +11 -0
- data/vendor/extensions/shipping/app/models/shipping_category.rb +3 -0
- data/vendor/extensions/shipping/app/models/shipping_method.rb +12 -0
- data/vendor/extensions/shipping/app/views/admin/shipping_categories/_form.html.erb +6 -0
- data/vendor/extensions/shipping/app/views/admin/shipping_categories/edit.html.erb +8 -0
- data/vendor/extensions/shipping/app/views/admin/shipping_categories/index.html.erb +24 -0
- data/vendor/extensions/shipping/app/views/admin/shipping_categories/new.html.erb +10 -0
- data/vendor/extensions/shipping/app/views/admin/shipping_methods/_form.html.erb +14 -0
- data/vendor/extensions/shipping/app/views/admin/shipping_methods/edit.html.erb +8 -0
- data/vendor/extensions/shipping/app/views/admin/shipping_methods/index.html.erb +28 -0
- data/vendor/extensions/shipping/app/views/admin/shipping_methods/new.html.erb +10 -0
- data/vendor/extensions/shipping/app/views/orders/fatal_shipping.html.erb +6 -0
- data/vendor/extensions/shipping/app/views/shipments/_form.html.erb +46 -0
- data/vendor/extensions/shipping/app/views/shipments/edit.html.erb +8 -0
- data/vendor/extensions/shipping/app/views/shipments/new.html.erb +8 -0
- data/vendor/extensions/shipping/db/migrate/20081003211336_create_shipping_methods.rb +14 -0
- data/vendor/extensions/shipping/db/migrate/20081003233427_create_shipping_categories.rb +15 -0
- data/vendor/extensions/shipping/db/migrate/20081015001711_create_shipments.rb +14 -0
- data/vendor/extensions/shipping/db/migrate/20081023134446_add_product_dimensions.rb +19 -0
- data/vendor/extensions/shipping/db/sample/shipping_categories.yml +2 -0
- data/vendor/extensions/shipping/db/sample/shipping_methods.yml +12 -0
- data/vendor/extensions/shipping/db/sample/zone_members.yml +8 -0
- data/vendor/extensions/shipping/db/sample/zones.yml +3 -0
- data/vendor/extensions/shipping/lang/en-US.yml +9 -0
- data/vendor/extensions/shipping/lib/spree/shipping_calculator.rb +37 -0
- data/vendor/extensions/shipping/lib/spree/shipping_error.rb +3 -0
- data/vendor/extensions/shipping/lib/tasks/shipping_extension_tasks.rake +29 -0
- data/vendor/extensions/shipping/shipping_extension.rb +39 -0
- data/vendor/extensions/shipping/spec/controllers/admin/shipping_categories_controller_spec.rb +10 -0
- data/vendor/extensions/shipping/spec/controllers/admin/shipping_methods_controller_spec.rb +10 -0
- data/vendor/extensions/shipping/spec/models/order_spec.rb +98 -0
- data/vendor/extensions/shipping/spec/models/shipment_spec.rb +26 -0
- data/vendor/extensions/shipping/spec/models/shipping_category_spec.rb +8 -0
- data/vendor/extensions/shipping/spec/models/shipping_method_spec.rb +53 -0
- data/vendor/extensions/shipping/spec/spec.opts +6 -0
- data/vendor/extensions/shipping/spec/spec_helper.rb +37 -0
- data/vendor/extensions/tax_calculator/lib/spree/sales_tax_calculator.rb +12 -4
- data/vendor/extensions/tax_calculator/spec/controllers/tax_calculator_spec.rb +0 -4
- data/vendor/extensions/tax_calculator/spec/models/sales_tax_calculator_spec.rb +14 -14
- data/vendor/extensions/tax_calculator/tax_calculator_extension.rb +0 -4
- data/vendor/plugins/resource_controller/README.rdoc +38 -6
- data/vendor/plugins/resource_controller/Rakefile +7 -20
- data/vendor/plugins/resource_controller/TODO +0 -1
- data/vendor/plugins/resource_controller/lib/resource_controller/helpers/current_objects.rb +71 -69
- data/vendor/plugins/resource_controller/lib/resource_controller/helpers/internal.rb +69 -65
- data/vendor/plugins/resource_controller/lib/resource_controller/helpers/nested.rb +62 -57
- data/vendor/plugins/resource_controller/lib/resource_controller/helpers/singleton_customizations.rb +50 -46
- data/vendor/plugins/resource_controller/lib/resource_controller/helpers/urls.rb +73 -69
- data/vendor/plugins/resource_controller/resource_controller.gemspec +4 -3
- data/vendor/plugins/resource_controller/test/app/controllers/cms/personnel_controller.rb +2 -0
- data/vendor/plugins/resource_controller/test/app/controllers/cms/photos_controller.rb +6 -0
- data/vendor/plugins/resource_controller/test/app/models/personnel.rb +3 -0
- data/vendor/plugins/resource_controller/test/app/models/photo.rb +1 -0
- data/vendor/plugins/resource_controller/test/app/views/cms/photos/edit.rhtml +17 -0
- data/vendor/plugins/resource_controller/test/app/views/cms/photos/index.rhtml +20 -0
- data/vendor/plugins/resource_controller/test/app/views/cms/photos/new.rhtml +16 -0
- data/vendor/plugins/resource_controller/test/app/views/cms/photos/show.rhtml +8 -0
- data/vendor/plugins/resource_controller/test/config/database.yml +9 -0
- data/vendor/plugins/resource_controller/test/config/environment.rb +1 -18
- data/vendor/plugins/resource_controller/test/config/initializers/inflections.rb +14 -0
- data/vendor/plugins/resource_controller/test/config/routes.rb +3 -0
- data/vendor/plugins/resource_controller/test/db/migrate/013_create_personnel.rb +11 -0
- data/vendor/plugins/resource_controller/test/db/migrate/014_add_personnel_id_to_photos.rb +9 -0
- data/vendor/plugins/resource_controller/test/test/fixtures/personnel.yml +5 -0
- data/vendor/plugins/resource_controller/test/test/functional/cms/photos_controller_test.rb +43 -0
- metadata +136 -6
- data/app/models/spree/extension_meta.rb +0 -5
- data/app/models/variants.rb +0 -2
- data/vendor/plugins/resource_controller/lib/resource_controller/version.rb +0 -9
data/config/environment.rb
CHANGED
@@ -5,8 +5,8 @@
|
|
5
5
|
# ENV['RAILS_ENV'] ||= 'production'
|
6
6
|
|
7
7
|
# Specifies gem version of Rails to use when vendor/rails is not present
|
8
|
-
SPREE_GEM_VERSION = '0.
|
9
|
-
RAILS_GEM_VERSION = "2.1.
|
8
|
+
SPREE_GEM_VERSION = '0.5.0' unless defined? SPREE_GEM_VERSION
|
9
|
+
RAILS_GEM_VERSION = "2.1.2" unless defined? RAILS_GEM_VERSION
|
10
10
|
|
11
11
|
# Bootstrap the Rails environment, frameworks, and default configuration
|
12
12
|
require File.join(File.dirname(__FILE__), 'boot')
|
@@ -75,6 +75,20 @@ Spree::Initializer.run do |config|
|
|
75
75
|
# config.active_record.observers = :cacher, :garbage_collector
|
76
76
|
end
|
77
77
|
|
78
|
+
|
79
|
+
# Load extension gems.
|
80
|
+
config = Rails::Configuration.new
|
81
|
+
Object.subclasses_of(Spree::Extension).each do |extension|
|
82
|
+
if extension.respond_to? :require_gems
|
83
|
+
extension.require_gems(config)
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
config.gems.each do |gem|
|
88
|
+
gem.add_load_paths
|
89
|
+
gem.load
|
90
|
+
end
|
91
|
+
|
78
92
|
# Add new inflection rules using the following format
|
79
93
|
# (all these examples are active by default):
|
80
94
|
# Inflector.inflections do |inflect|
|
data/config/routes.rb
CHANGED
@@ -51,6 +51,7 @@ ActionController::Routing::Routes.draw do |map|
|
|
51
51
|
admin.resources :properties, :collection => {:filtered => :get}
|
52
52
|
admin.resources :prototypes, :member => {:select => :post}, :collection => {:available => :get}
|
53
53
|
admin.resource :mail_settings
|
54
|
+
admin.resource :inventory_settings
|
54
55
|
admin.resources :orders, :member => {:fire => :put, :resend => :post}
|
55
56
|
admin.resources :taxonomies do |taxonomy|
|
56
57
|
taxonomy.resources :taxons
|
@@ -61,4 +62,7 @@ ActionController::Routing::Routes.draw do |map|
|
|
61
62
|
map.connect ':controller/:action/:id.:format'
|
62
63
|
map.connect ':controller/:action/:id'
|
63
64
|
|
65
|
+
# a catchall route for "static" content
|
66
|
+
map.connect '*path', :controller => 'content', :action => 'show'
|
67
|
+
|
64
68
|
end
|
data/db/sample/addresses.yml
CHANGED
@@ -12,6 +12,20 @@ frank_address_<%= i %>:
|
|
12
12
|
addressable: order_<%= i %>
|
13
13
|
addressable_type: Order
|
14
14
|
<% end %>
|
15
|
+
<% 1.upto(30) do |i| %>
|
16
|
+
frank_bill_address_<%= i %>:
|
17
|
+
firstname: Frank
|
18
|
+
lastname: Foo
|
19
|
+
address1: 123 Foo St.
|
20
|
+
address2: Apt. F
|
21
|
+
city: Fooville
|
22
|
+
state: new_york
|
23
|
+
zipcode: 16804
|
24
|
+
country_id: 214
|
25
|
+
phone: 614-555-1212
|
26
|
+
addressable: visa_<%= i %>
|
27
|
+
addressable_type: CreditcardPayment
|
28
|
+
<% end %>
|
15
29
|
foo_street:
|
16
30
|
id: 101
|
17
31
|
firstname: joe
|
data/db/sample/orders.yml
CHANGED
data/lang/ui/de-DE.yml
CHANGED
@@ -70,6 +70,7 @@ image: Bild
|
|
70
70
|
images: Bilder
|
71
71
|
inventory_adjustment: Lager Anpassung
|
72
72
|
inventory: Lager
|
73
|
+
inventory_setting_description: Inventory Configuration, Backordering, Zero-Stock Display
|
73
74
|
item_description: Artikelbeschreibung
|
74
75
|
item: Artikel
|
75
76
|
item_total: Artikel Gesamt
|
@@ -204,4 +205,4 @@ order_operation_cancel:
|
|
204
205
|
order_operation_return:
|
205
206
|
order_operation_ship:
|
206
207
|
order_operation_comp:
|
207
|
-
order_operation_delete:
|
208
|
+
order_operation_delete:
|
data/lang/ui/en-US.yml
CHANGED
@@ -1,25 +1,30 @@
|
|
1
1
|
abbreviation: Abbreviation
|
2
2
|
account: Account
|
3
3
|
action: Action
|
4
|
+
add: Add
|
4
5
|
add_category: Add Category
|
5
6
|
add_option_type: Add Option Type
|
6
7
|
add_option_types: Add Option Types
|
7
8
|
add_product_properties: Add Product Properties
|
8
|
-
address_information: Address Information
|
9
9
|
add_to_cart: Add To Cart
|
10
|
+
address: Address
|
11
|
+
address_information: Address Information
|
10
12
|
adjustment: Adjustment
|
11
13
|
administration: Administration
|
12
14
|
amount: Amount
|
13
15
|
are_you_sure_category: Are you sure you want to delete this category?
|
16
|
+
are_you_sure_delete: Are you sure you want to delete this record?
|
14
17
|
are_you_sure_delete_image: Are you sure you want to delete this image?
|
15
18
|
are_you_sure_option_type: Are you sure you want to delete this option type?
|
16
|
-
|
19
|
+
authorized: Authorized
|
17
20
|
available_on: Available On
|
18
21
|
back: Back
|
19
22
|
back_to_store: Go Back To Store
|
20
23
|
bill_address: Bill Address
|
21
24
|
billing_address: Billing Address
|
22
25
|
cancel: Cancel
|
26
|
+
cancel: cancel
|
27
|
+
capture: capture
|
23
28
|
card_code: Card Code
|
24
29
|
card_number: Card Number
|
25
30
|
cart: Cart
|
@@ -36,12 +41,13 @@ configuration_options: Configuration Options
|
|
36
41
|
configurations: Configurations
|
37
42
|
confirm: Confirm
|
38
43
|
confirm_password: Password Confirmation
|
39
|
-
continue_shopping: Continue shopping
|
40
44
|
continue_shopping: Continue Shopping
|
45
|
+
continue_shopping: Continue shopping
|
41
46
|
country: Country
|
42
47
|
create: Create
|
43
48
|
create_a_new_account: Create a new account
|
44
49
|
credit_card: Credit Card
|
50
|
+
creditcard_payment: Creditcard Payment
|
45
51
|
current: Current
|
46
52
|
customer: Customer
|
47
53
|
date: Date
|
@@ -56,8 +62,8 @@ editing_option_types: Editing Option Types
|
|
56
62
|
editing_state: Editing State
|
57
63
|
editing_tax_category: Editing Tax Category
|
58
64
|
editing_user: Editing User
|
59
|
-
email_address: Email Address
|
60
65
|
email: Email
|
66
|
+
email_address: Email Address
|
61
67
|
email_server_settings_description: Set email server settings.
|
62
68
|
empty_cart: Empty Cart
|
63
69
|
error: error
|
@@ -69,24 +75,27 @@ filename: Filename
|
|
69
75
|
final_confirmation: Final Confirmation
|
70
76
|
first_name: First Name
|
71
77
|
gateway: Gateway
|
78
|
+
gateway_error: Gateway Error
|
72
79
|
gateway_setting_description: Select a payment gateway and configure its settings.
|
73
80
|
hello_user: Hello User
|
74
81
|
image: Image
|
75
82
|
images: Images
|
76
|
-
|
83
|
+
in_progress: In Progress
|
77
84
|
inventory: Inventory
|
78
|
-
|
85
|
+
inventory_adjustment: Inventory Adjustment
|
86
|
+
inventory_setting_description: Inventory Configuration, Backordering, Zero-Stock Display
|
79
87
|
item: Item
|
88
|
+
item_description: Item Description
|
80
89
|
item_total: Item Total
|
81
90
|
last_name: Last Name
|
82
91
|
listing_categories: Listing Categories
|
83
92
|
listing_option_types: Listing Option Types
|
84
93
|
listing_orders: Listing Orders
|
85
94
|
listing_reports: Listing Reports
|
86
|
-
|
95
|
+
listing_tax_cateThe total amount charged to your card will be gories: Listing Tax Categories
|
87
96
|
listing_users: Listing Users
|
88
|
-
logged_in_as: Logged in as
|
89
97
|
log_in: Log In
|
98
|
+
logged_in_as: Logged in as
|
90
99
|
login_name: Login
|
91
100
|
logout: Logout
|
92
101
|
mail_server_settings: Mail Server Settings
|
@@ -112,22 +121,27 @@ none_available: None Available
|
|
112
121
|
number: Number
|
113
122
|
on_hand: On Hand
|
114
123
|
operation: Operation
|
115
|
-
options: Options
|
116
|
-
option_types: Option Types
|
117
124
|
option_Values: Option Values
|
118
|
-
|
125
|
+
option_types: Option Types
|
126
|
+
options: Options
|
127
|
+
or: or
|
128
|
+
order: Order
|
119
129
|
order_confirmation_note:
|
120
130
|
order_date: Order Date
|
121
131
|
order_details: Order Details
|
132
|
+
order_email_resent: Order Email Resent
|
122
133
|
order_number: "Order #"
|
123
|
-
|
134
|
+
order_number: Order #
|
135
|
+
order_operation_authorize: Authorize
|
124
136
|
order_processed_successfully: Your order has been processed successfully
|
125
|
-
orders: Orders
|
126
137
|
order_total: Order Total
|
127
|
-
|
138
|
+
order_updated: Order Updated
|
139
|
+
order_total_message: The total amount charged to your card will be
|
140
|
+
orders: Orders
|
128
141
|
overview: Overview
|
129
142
|
parent_category: Parent Category
|
130
143
|
password: Password
|
144
|
+
pay: pay
|
131
145
|
payment: Payment
|
132
146
|
payment_gateway: Payment Gateway
|
133
147
|
phone: Phone
|
@@ -135,49 +149,52 @@ presentation: Presentation
|
|
135
149
|
previous: previous
|
136
150
|
price: Price
|
137
151
|
problem_authorizing_card: Problem authorizing credit card
|
138
|
-
problems_processing_order: We had problems processing your order
|
139
152
|
problem_capturing_card: Problem capturing credit card
|
153
|
+
problems_processing_order: We had problems processing your order
|
140
154
|
process: Process
|
141
155
|
product: Product
|
142
|
-
products: Products
|
143
156
|
product_properties: Product Properties
|
144
|
-
|
157
|
+
products: Products
|
145
158
|
properties: Properties
|
159
|
+
property: Property
|
146
160
|
prototypes: Prototypes
|
147
161
|
qty: Qty
|
148
162
|
remember_me: Remember me
|
149
163
|
reports: Reports
|
150
164
|
resend: Resend
|
151
165
|
response_code: Response Code
|
152
|
-
|
166
|
+
return: return
|
153
167
|
sales_total: Sales Total
|
154
168
|
sales_totals: Sales Totals
|
169
|
+
sales_totals_description: Sales Total For All Orders
|
155
170
|
search: Search
|
156
171
|
select: Select
|
157
172
|
select_from_prototype: Select From Prototype
|
173
|
+
ship: ship
|
158
174
|
ship_address: Ship Address
|
175
|
+
shipping: Shipping
|
159
176
|
shipping_address: Shipping Address
|
160
177
|
shipping_method: Shipping Method
|
161
|
-
shipping: Shipping
|
162
178
|
shipping_total: Shipping Total
|
163
179
|
shopping_cart: Shopping Cart
|
164
180
|
sign_up: Sign up
|
165
181
|
sku: SKU
|
166
182
|
start: Start
|
167
183
|
state: State
|
168
|
-
states: States
|
169
184
|
state_setting_description: Administer the list of states/provinces associated with each country.
|
185
|
+
states: States
|
170
186
|
status: Status
|
171
187
|
stop: Stop
|
172
188
|
store: Store
|
173
|
-
street_address_2: Street Address (cont'd)
|
174
189
|
street_address: Street Address
|
190
|
+
street_address_2: Street Address (cont'd)
|
175
191
|
subtotal: Subtotal
|
192
|
+
subtract: Subtract
|
176
193
|
system: System
|
177
194
|
tax: Tax
|
178
|
-
tax_category: Tax Category
|
179
195
|
tax_categories: Tax Categories
|
180
196
|
tax_categories_setting_description: Set up tax categories to identify which products should be taxable.
|
197
|
+
tax_category: Tax Category
|
181
198
|
tax_total: Tax Total
|
182
199
|
thank_you_for_your_order: Thank you for your business. Please print out a copy of this confirmation page for your records.
|
183
200
|
time: Time
|
@@ -187,8 +204,8 @@ try_again: Try Again
|
|
187
204
|
type: Type
|
188
205
|
update: Update
|
189
206
|
use_different_shipping_address: Use Different Shipping Address
|
190
|
-
users: Users
|
191
207
|
user: User
|
208
|
+
users: Users
|
192
209
|
value: Value
|
193
210
|
variants: Variants
|
194
211
|
version: Version
|
@@ -198,7 +215,6 @@ what_is_a_cvv: What is a (CVV) Credit Card Code?
|
|
198
215
|
what_is_this: What's This?
|
199
216
|
zip: Zip
|
200
217
|
zone: Zone
|
201
|
-
zones: Zones
|
202
218
|
zone_setting_description: Collections of countries, states or other zones to be used in various calculations.
|
203
219
|
order_operation_authorize: Authorize
|
204
220
|
capture: capture
|
@@ -222,4 +238,13 @@ assign_taxons: Assign Taxons
|
|
222
238
|
remove: Remove
|
223
239
|
no_match_found: No Match Found
|
224
240
|
taxonomies: Taxonomies
|
225
|
-
taxonomies_setting_description: Create and manage taxonomies
|
241
|
+
taxonomies_setting_description: Create and manage taxonomies
|
242
|
+
zones: Zones
|
243
|
+
shipment: Shipment
|
244
|
+
weight: Weight
|
245
|
+
height: Height
|
246
|
+
depth: Depth
|
247
|
+
width: Width
|
248
|
+
shipping_error: Shipping Error
|
249
|
+
new_customer: New Customer
|
250
|
+
existing_customer: Existing Customer
|
data/lang/ui/es-ES.yml
CHANGED
@@ -67,6 +67,7 @@ image: Imágen
|
|
67
67
|
images: Imagenes
|
68
68
|
inventory_adjustment: Ajuste de inventario
|
69
69
|
inventory: Inventario
|
70
|
+
inventory_setting_description: Inventory Configuration, Backordering, Zero-Stock Display
|
70
71
|
item_description: Descripción del artículo
|
71
72
|
item: artículo
|
72
73
|
item_total: Total de artículos
|
@@ -199,4 +200,4 @@ order_operation_cancel:
|
|
199
200
|
order_operation_return:
|
200
201
|
order_operation_ship:
|
201
202
|
order_operation_comp:
|
202
|
-
order_operation_delete:
|
203
|
+
order_operation_delete:
|
data/lang/ui/it-IT.yml
CHANGED
@@ -64,6 +64,7 @@ image: Imagine
|
|
64
64
|
images: Imagini
|
65
65
|
inventory_adjustment: Edita magazzino
|
66
66
|
inventory: Magazzino
|
67
|
+
inventory_setting_description: Inventory Configuration, Backordering, Zero-Stock Display
|
67
68
|
item_description: Descrizione articolo
|
68
69
|
item: Articolo
|
69
70
|
item_total: Articolo totale
|
@@ -191,4 +192,4 @@ order_operation_cancel:
|
|
191
192
|
order_operation_return:
|
192
193
|
order_operation_ship:
|
193
194
|
order_operation_comp:
|
194
|
-
order_operation_delete:
|
195
|
+
order_operation_delete:
|
data/lang/ui/pl-PL.yml
CHANGED
@@ -74,6 +74,7 @@ image: Obrazek
|
|
74
74
|
images: Obrazki
|
75
75
|
inventory_adjustment: Dostosowanie zapasów
|
76
76
|
inventory: Zapasy
|
77
|
+
inventory_setting_description: Inventory Configuration, Backordering, Zero-Stock Display
|
77
78
|
item_description: Opis pozycji
|
78
79
|
item: Pozycja
|
79
80
|
item_total: Liczba pozycji
|
data/lang/ui/pt-BR.yml
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
abbreviation: Abreviação
|
2
2
|
account: Conta
|
3
|
-
action: Ação
|
3
|
+
action: Ação
|
4
|
+
add: Adicionar
|
4
5
|
add_category: Adicionar Categoria
|
5
6
|
add_option_type: Adicionar Tipo de Opção
|
6
7
|
add_option_types: Adicionar Tipo de Opção
|
@@ -75,6 +76,7 @@ image: Imagem
|
|
75
76
|
images: Imagens
|
76
77
|
inventory_adjustment: Ajuste de Inventário
|
77
78
|
inventory: Inventário
|
79
|
+
inventory_setting_description: Inventory Configuration, Backordering, Zero-Stock Display
|
78
80
|
item_description: Descrição de Item
|
79
81
|
item: Item
|
80
82
|
item_total: Total de Item
|
@@ -174,6 +176,7 @@ store: Loja
|
|
174
176
|
street_address_2: Endereço (compl.)
|
175
177
|
street_address: Endereço
|
176
178
|
subtotal: Sub-total
|
179
|
+
subtract: Subtrair
|
177
180
|
system: Sistema
|
178
181
|
tax: Taxa
|
179
182
|
tax_category: Categoria de Taxa
|
@@ -216,4 +219,4 @@ order_operation_cancel: Cancelar
|
|
216
219
|
order_operation_return: Devolver
|
217
220
|
order_operation_ship: Entregar
|
218
221
|
order_operation_comp: Computar
|
219
|
-
order_operation_delete: Apagar
|
222
|
+
order_operation_delete: Apagar
|
data/lib/authenticated_system.rb
CHANGED
@@ -16,6 +16,7 @@ class ExtensionGenerator < Rails::Generator::NamedBase
|
|
16
16
|
m.directory "#{extension_path}/app/models"
|
17
17
|
m.directory "#{extension_path}/app/views"
|
18
18
|
m.directory "#{extension_path}/db/migrate"
|
19
|
+
m.directory "#{extension_path}/db/sample"
|
19
20
|
m.directory "#{extension_path}/lib/tasks"
|
20
21
|
m.directory "#{extension_path}/public"
|
21
22
|
|
@@ -11,13 +11,12 @@ class <%= class_name %> < Spree::Extension
|
|
11
11
|
# admin.resources :whatever
|
12
12
|
# end
|
13
13
|
# end
|
14
|
+
|
15
|
+
# def self.require_gems(config)
|
16
|
+
# config.gem "gemname-goes-here", :version => '1.2.3'
|
17
|
+
# end
|
14
18
|
|
15
19
|
def activate
|
16
20
|
# admin.tabs.add "<%= extension_name %>", "/admin/<%= file_name %>", :after => "Layouts", :visibility => [:all]
|
17
21
|
end
|
18
|
-
|
19
|
-
def deactivate
|
20
|
-
# admin.tabs.remove "<%= extension_name %>"
|
21
|
-
end
|
22
|
-
|
23
22
|
end
|
@@ -1,3 +1,15 @@
|
|
1
|
+
namespace :db do
|
2
|
+
desc "Bootstrap your database for Spree."
|
3
|
+
task :bootstrap => :environment do
|
4
|
+
# load initial database fixtures (in db/sample/*.yml) into the current environment's database
|
5
|
+
ActiveRecord::Base.establish_connection(RAILS_ENV.to_sym)
|
6
|
+
Dir.glob(File.join(<%= class_name %>.root, "db", 'sample', '*.{yml,csv}')).each do |fixture_file|
|
7
|
+
Fixtures.create_fixtures("#{<%= class_name %>.root}/db/sample", File.basename(fixture_file, '.*'))
|
8
|
+
end
|
9
|
+
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
1
13
|
namespace :spree do
|
2
14
|
namespace :extensions do
|
3
15
|
namespace :<%= file_name %> do
|