kkt_shoppe 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +0 -0
- data/README.md +1 -0
- data/Rakefile +0 -0
- data/app/assets/images/kkt_shoppe/icons/edit.svg +0 -0
- data/app/assets/images/kkt_shoppe/kkt_shoppe.svg +0 -0
- data/app/assets/images/kkt_shoppe/logo.svg +0 -0
- data/app/assets/images/kkt_shoppe/square.svg +0 -0
- data/app/assets/images/kkt_shoppe/statuses/accepted.svg +0 -0
- data/app/assets/images/kkt_shoppe/statuses/paid.svg +0 -0
- data/app/assets/images/kkt_shoppe/statuses/received.svg +0 -0
- data/app/assets/images/kkt_shoppe/statuses/rejected.svg +0 -0
- data/app/assets/images/kkt_shoppe/statuses/shipped.svg +0 -0
- data/app/assets/images/kkt_shoppe/table-tear-off.png +0 -0
- data/app/assets/javascripts/kkt_shoppe/application.coffee +0 -5
- data/app/assets/javascripts/kkt_shoppe/mousetrap.js +0 -0
- data/app/assets/javascripts/kkt_shoppe/order_form.coffee +0 -0
- data/app/assets/stylesheets/kkt_shoppe/application.scss +1 -12
- data/app/assets/stylesheets/kkt_shoppe/dialog.scss +0 -0
- data/app/assets/stylesheets/kkt_shoppe/elements.scss +0 -0
- data/app/assets/stylesheets/kkt_shoppe/printable.scss +1 -1
- data/app/assets/stylesheets/kkt_shoppe/reset.scss +0 -0
- data/app/assets/stylesheets/kkt_shoppe/sub.scss +1 -1
- data/app/assets/stylesheets/kkt_shoppe/variables.scss +0 -0
- data/app/controllers/kkt_shoppe/addresses_controller.rb +1 -1
- data/app/controllers/kkt_shoppe/application_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/attachments_controller.rb +1 -1
- data/app/controllers/kkt_shoppe/countries_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/customers_controller.rb +1 -1
- data/app/controllers/kkt_shoppe/dashboard_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/delivery_service_prices_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/delivery_services_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/orders_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/payments_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/product_categories_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/product_category_localisations_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/product_localisations_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/products_controller.rb +2 -3
- data/app/controllers/kkt_shoppe/sessions_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/settings_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/stock_level_adjustments_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/tax_rates_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/users_controller.rb +0 -0
- data/app/controllers/kkt_shoppe/variants_controller.rb +0 -0
- data/app/helpers/kkt_shoppe/application_helper.rb +4 -4
- data/app/helpers/kkt_shoppe/product_category_helper.rb +1 -1
- data/app/mailers/kkt_shoppe/order_mailer.rb +0 -0
- data/app/mailers/kkt_shoppe/user_mailer.rb +0 -0
- data/app/models/kkt_shoppe/address.rb +0 -0
- data/app/models/kkt_shoppe/country.rb +0 -0
- data/app/models/kkt_shoppe/customer.rb +1 -1
- data/app/models/kkt_shoppe/delivery_service.rb +0 -0
- data/app/models/kkt_shoppe/delivery_service_price.rb +0 -0
- data/app/models/kkt_shoppe/order/actions.rb +2 -2
- data/app/models/kkt_shoppe/order/billing.rb +0 -0
- data/app/models/kkt_shoppe/order/delivery.rb +1 -1
- data/app/models/kkt_shoppe/order/states.rb +0 -0
- data/app/models/kkt_shoppe/order.rb +0 -0
- data/app/models/kkt_shoppe/order_item.rb +0 -0
- data/app/models/kkt_shoppe/payment.rb +0 -0
- data/app/models/kkt_shoppe/product/product_attributes.rb +0 -0
- data/app/models/kkt_shoppe/product/variants.rb +0 -0
- data/app/models/kkt_shoppe/product.rb +3 -23
- data/app/models/kkt_shoppe/product_attribute.rb +0 -0
- data/app/models/kkt_shoppe/product_categorization.rb +0 -0
- data/app/models/kkt_shoppe/product_category.rb +2 -9
- data/app/models/kkt_shoppe/setting.rb +0 -0
- data/app/models/kkt_shoppe/stock_level_adjustment.rb +0 -0
- data/app/models/kkt_shoppe/tax_rate.rb +0 -0
- data/app/models/kkt_shoppe/user.rb +0 -0
- data/app/validators/permalink_validator.rb +0 -0
- data/app/views/kkt_shoppe/addresses/_form.html.haml +0 -0
- data/app/views/kkt_shoppe/addresses/edit.html.haml +0 -0
- data/app/views/kkt_shoppe/addresses/new.html.haml +0 -0
- data/app/views/kkt_shoppe/countries/_form.html.haml +0 -0
- data/app/views/kkt_shoppe/countries/edit.html.haml +0 -0
- data/app/views/kkt_shoppe/countries/index.html.haml +0 -0
- data/app/views/kkt_shoppe/countries/new.html.haml +0 -0
- data/app/views/kkt_shoppe/customers/_addresses.html.haml +0 -0
- data/app/views/kkt_shoppe/customers/_form.html.haml +0 -0
- data/app/views/kkt_shoppe/customers/_search_form.html.haml +0 -0
- data/app/views/kkt_shoppe/customers/edit.html.haml +0 -0
- data/app/views/kkt_shoppe/customers/index.html.haml +0 -0
- data/app/views/kkt_shoppe/customers/new.html.haml +0 -0
- data/app/views/kkt_shoppe/customers/show.html.haml +1 -1
- data/app/views/kkt_shoppe/delivery_service_prices/_form.html.haml +0 -0
- data/app/views/kkt_shoppe/delivery_service_prices/edit.html.haml +0 -0
- data/app/views/kkt_shoppe/delivery_service_prices/index.html.haml +0 -0
- data/app/views/kkt_shoppe/delivery_service_prices/new.html.haml +0 -0
- data/app/views/kkt_shoppe/delivery_services/_form.html.haml +0 -0
- data/app/views/kkt_shoppe/delivery_services/edit.html.haml +0 -0
- data/app/views/kkt_shoppe/delivery_services/index.html.haml +0 -0
- data/app/views/kkt_shoppe/delivery_services/new.html.haml +0 -0
- data/app/views/kkt_shoppe/order_mailer/accepted.text.erb +0 -0
- data/app/views/kkt_shoppe/order_mailer/received.text.erb +5 -2
- data/app/views/kkt_shoppe/order_mailer/rejected.text.erb +0 -0
- data/app/views/kkt_shoppe/order_mailer/shipped.text.erb +0 -0
- data/app/views/kkt_shoppe/orders/_form.html.haml +0 -0
- data/app/views/kkt_shoppe/orders/_order_details.html.haml +0 -0
- data/app/views/kkt_shoppe/orders/_order_items.html.haml +0 -0
- data/app/views/kkt_shoppe/orders/_order_items_form.html.haml +0 -0
- data/app/views/kkt_shoppe/orders/_payments_form.html.haml +0 -0
- data/app/views/kkt_shoppe/orders/_payments_table.html.haml +0 -0
- data/app/views/kkt_shoppe/orders/_search_form.html.haml +0 -0
- data/app/views/kkt_shoppe/orders/_status_bar.html.haml +0 -0
- data/app/views/kkt_shoppe/orders/despatch_note.html.haml +0 -0
- data/app/views/kkt_shoppe/orders/edit.html.haml +0 -0
- data/app/views/kkt_shoppe/orders/index.html.haml +0 -0
- data/app/views/kkt_shoppe/orders/new.html.haml +0 -0
- data/app/views/kkt_shoppe/orders/show.html.haml +0 -0
- data/app/views/kkt_shoppe/payments/refund.html.haml +0 -0
- data/app/views/kkt_shoppe/product_categories/_form.html.haml +1 -1
- data/app/views/kkt_shoppe/product_categories/edit.html.haml +0 -0
- data/app/views/kkt_shoppe/product_categories/index.html.haml +0 -0
- data/app/views/kkt_shoppe/product_categories/new.html.haml +0 -0
- data/app/views/kkt_shoppe/product_category_localisations/form.html.haml +0 -0
- data/app/views/kkt_shoppe/product_category_localisations/index.html.haml +0 -0
- data/app/views/kkt_shoppe/product_localisations/form.html.haml +1 -1
- data/app/views/kkt_shoppe/product_localisations/index.html.haml +0 -0
- data/app/views/kkt_shoppe/products/_form.html.haml +4 -24
- data/app/views/kkt_shoppe/products/_table.html.haml +0 -0
- data/app/views/kkt_shoppe/products/edit.html.haml +0 -0
- data/app/views/kkt_shoppe/products/import.html.haml +0 -0
- data/app/views/kkt_shoppe/products/index.html.haml +0 -0
- data/app/views/kkt_shoppe/products/new.html.haml +0 -0
- data/app/views/kkt_shoppe/sessions/new.html.haml +0 -0
- data/app/views/kkt_shoppe/sessions/reset.html.haml +0 -0
- data/app/views/kkt_shoppe/settings/edit.html.haml +0 -0
- data/app/views/kkt_shoppe/shared/error.html.haml +0 -0
- data/app/views/kkt_shoppe/stock_level_adjustments/index.html.haml +0 -0
- data/app/views/kkt_shoppe/tax_rates/form.html.haml +0 -0
- data/app/views/kkt_shoppe/tax_rates/index.html.haml +0 -0
- data/app/views/kkt_shoppe/user_mailer/new_password.text.erb +0 -0
- data/app/views/kkt_shoppe/users/_form.html.haml +0 -0
- data/app/views/kkt_shoppe/users/edit.html.haml +0 -0
- data/app/views/kkt_shoppe/users/index.html.haml +0 -0
- data/app/views/kkt_shoppe/users/new.html.haml +0 -0
- data/app/views/kkt_shoppe/variants/form.html.haml +0 -0
- data/app/views/kkt_shoppe/variants/index.html.haml +0 -0
- data/app/views/layouts/kkt_shoppe/application.html.haml +0 -0
- data/app/views/layouts/kkt_shoppe/printable.html.haml +1 -1
- data/app/views/layouts/kkt_shoppe/sub.html.haml +0 -0
- data/config/locales/de.yml +0 -3
- data/config/locales/en.yml +0 -1
- data/config/locales/es.yml +0 -1
- data/config/locales/pl.yml +0 -1
- data/config/locales/pt-BR.yml +1 -2
- data/config/routes.rb +0 -0
- data/db/countries.txt +0 -0
- data/db/migrate/20130926094549_create_kkt_shoppe_initial_schema.rb +0 -0
- data/db/migrate/20131024201501_add_address_type_to_kkt_shoppe_tax_rates.rb +1 -1
- data/db/migrate/20131024204815_create_kkt_shoppe_payments.rb +1 -1
- data/db/migrate/20131102143930_remove_default_on_order_item_weight.rb +1 -1
- data/db/migrate/20141013192427_create_kkt_shoppe_customers.rb +0 -0
- data/db/migrate/20141026175622_add_indexes_to_kkt_shoppe_order_items.rb +0 -0
- data/db/migrate/20141026175943_add_indexes_to_kkt_shoppe_orders.rb +0 -0
- data/db/migrate/20141026180333_add_indexes_to_kkt_shoppe_payments.rb +0 -0
- data/db/migrate/20141026180835_add_indexes_to_kkt_shoppe_product_attributes.rb +0 -0
- data/db/migrate/20141026180952_add_indexes_to_kkt_shoppe_product_categories.rb +0 -0
- data/db/migrate/20141026181040_add_indexes_to_kkt_shoppe_products.rb +0 -0
- data/db/migrate/20141026181312_add_indexes_to_kkt_shoppe_settings.rb +0 -0
- data/db/migrate/20141026181354_add_indexes_to_kkt_shoppe_stock_level_adjustments.rb +0 -0
- data/db/migrate/20141026181559_add_indexes_to_kkt_shoppe_users.rb +0 -0
- data/db/migrate/20141026181716_add_indexes_to_kkt_shoppe_delivery_services.rb +0 -0
- data/db/migrate/20141026181717_allow_multiple_kkt_shoppe_products_per_kkt_shoppe_product_category.rb +0 -0
- data/db/migrate/20141026181718_add_nested_to_product_categories.rb +0 -0
- data/db/migrate/20141027215005_create_kkt_shoppe_addresses.rb +0 -0
- data/db/migrate/20150315215633_add_customer_to_kkt_shoppe_orders.rb +1 -1
- data/db/migrate/20150513171350_create_kkt_shoppe_product_category_translation_table.rb +0 -0
- data/db/migrate/20150519173350_create_kkt_shoppe_product_translation_table.rb +0 -0
- data/db/schema.rb +42 -56
- data/db/seeds.rb +0 -0
- data/db/seeds_data/poe400.jpg +0 -0
- data/db/seeds_data/snom-870-blk.jpg +0 -0
- data/db/seeds_data/snom-870-grey.jpg +0 -0
- data/db/seeds_data/snom-mm2.jpg +0 -0
- data/db/seeds_data/spa303.jpg +0 -0
- data/db/seeds_data/t18p.jpg +0 -0
- data/db/seeds_data/t20p.jpg +0 -0
- data/db/seeds_data/t22p.jpg +0 -0
- data/db/seeds_data/t26p.jpg +0 -0
- data/db/seeds_data/t41pn.jpg +0 -0
- data/db/seeds_data/t46gn.jpg +0 -0
- data/db/seeds_data/w52p.jpg +0 -0
- data/db/seeds_data/yhs32.jpg +0 -0
- data/lib/kkt_shoppe/associated_countries.rb +1 -1
- data/lib/kkt_shoppe/country_importer.rb +0 -0
- data/lib/kkt_shoppe/default_navigation.rb +0 -0
- data/lib/kkt_shoppe/engine.rb +11 -15
- data/lib/kkt_shoppe/error.rb +0 -0
- data/lib/kkt_shoppe/errors/inappropriate_delivery_service.rb +1 -1
- data/lib/kkt_shoppe/errors/insufficient_stock_to_fulfil.rb +1 -1
- data/lib/kkt_shoppe/errors/invalid_configuration.rb +1 -1
- data/lib/kkt_shoppe/errors/not_enough_stock.rb +1 -1
- data/lib/kkt_shoppe/errors/payment_declined.rb +1 -1
- data/lib/kkt_shoppe/errors/refund_failed.rb +1 -1
- data/lib/kkt_shoppe/errors/unorderable_item.rb +1 -1
- data/lib/kkt_shoppe/navigation_manager.rb +0 -0
- data/lib/kkt_shoppe/orderable_item.rb +0 -0
- data/lib/kkt_shoppe/settings.rb +0 -0
- data/lib/kkt_shoppe/settings_loader.rb +0 -0
- data/lib/kkt_shoppe/setup_generator.rb +0 -0
- data/lib/kkt_shoppe/version.rb +1 -1
- data/lib/kkt_shoppe/view_helpers.rb +0 -0
- data/lib/kkt_shoppe.rb +1 -1
- data/lib/tasks/{kylekthompson_shoppe.rake → kkt_shoppe.rake} +1 -1
- metadata +4 -9
- data/app/models/shoppe/attachment.rb +0 -48
- data/app/uploaders/shoppe/attachment_uploader.rb +0 -29
- data/db/migrate/20150315223628_create_kkt_shoppe_attachments.rb +0 -16
- data/lib/kkt_shoppe/model_extension.rb +0 -44
- data/lib/shoppe/model_extension.rb +0 -44
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/config/locales/de.yml
CHANGED
@@ -387,7 +387,6 @@ de:
|
|
387
387
|
attachments: Anhänge
|
388
388
|
back_to_categories: Zurück zu den Kategorien
|
389
389
|
category_details: Kategoriedetails
|
390
|
-
choose_product_category: Produktkategorie auswählen
|
391
390
|
create_notice: Kategorie wurde erfolgreich erstellt
|
392
391
|
delete_confirmation: Möchten Sie diese Kategorie wirklich löschen?
|
393
392
|
description: Beschreibung
|
@@ -401,7 +400,6 @@ de:
|
|
401
400
|
update_notice: Kategorie wurde erfolgreich aktualisiert
|
402
401
|
|
403
402
|
products:
|
404
|
-
add_attachments: Anhänge betrachten/hinzufügen
|
405
403
|
add_attribute: Attribut hinzufügen
|
406
404
|
attachments: Anhänge
|
407
405
|
attributes: Attribute
|
@@ -603,7 +601,6 @@ de:
|
|
603
601
|
users: Benutzer
|
604
602
|
countries: Länder
|
605
603
|
settings: Einstellungen
|
606
|
-
customers: Kunden
|
607
604
|
|
608
605
|
settings:
|
609
606
|
|
data/config/locales/en.yml
CHANGED
data/config/locales/es.yml
CHANGED
data/config/locales/pl.yml
CHANGED
data/config/locales/pt-BR.yml
CHANGED
@@ -288,7 +288,7 @@ pt-BR:
|
|
288
288
|
id: ID
|
289
289
|
in_progress_warning: Este pedido ainda está sendo construído pelo cliente na sua loja. No momento você pode apenas ver os itens que estão no pedido.
|
290
290
|
invoice_number: Número da fatura
|
291
|
-
insufficient_stock_order: "Estoque insuficiente para pedido de %{out_of_stock_items }. As quantidades foram atualizadas para o total máximo de estoque
|
291
|
+
insufficient_stock_order: "Estoque insuficiente para pedido de %{out_of_stock_items }. As quantidades foram atualizadas para o total máximo de estoque disponível."
|
292
292
|
item: Item
|
293
293
|
last_name: Último nome
|
294
294
|
mark_as_shipped: Marcar como enviado
|
@@ -402,7 +402,6 @@ pt-BR:
|
|
402
402
|
hierarchy: Hierarchy
|
403
403
|
|
404
404
|
products:
|
405
|
-
add_attachments: Visualizar/adicionar anexos
|
406
405
|
add_attribute: Adicionar atributo
|
407
406
|
attachments: Anexos
|
408
407
|
attributes: Atributos
|
data/config/routes.rb
CHANGED
File without changes
|
data/db/countries.txt
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/db/migrate/20141026181717_allow_multiple_kkt_shoppe_products_per_kkt_shoppe_product_category.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/db/schema.rb
CHANGED
@@ -11,7 +11,20 @@
|
|
11
11
|
#
|
12
12
|
# It's strongly recommended that you check this file into your version control system.
|
13
13
|
|
14
|
-
ActiveRecord::Schema.define(version:
|
14
|
+
ActiveRecord::Schema.define(version: 20150315223628) do
|
15
|
+
|
16
|
+
create_table "nifty_attachments", force: true do |t|
|
17
|
+
t.integer "parent_id"
|
18
|
+
t.string "parent_type"
|
19
|
+
t.string "token"
|
20
|
+
t.string "digest"
|
21
|
+
t.string "role"
|
22
|
+
t.string "file_name"
|
23
|
+
t.string "file_type"
|
24
|
+
t.binary "data", limit: 16777215
|
25
|
+
t.datetime "created_at"
|
26
|
+
t.datetime "updated_at"
|
27
|
+
end
|
15
28
|
|
16
29
|
create_table "nifty_key_value_store", force: true do |t|
|
17
30
|
t.integer "parent_id"
|
@@ -35,7 +48,7 @@ ActiveRecord::Schema.define(version: 20150519173350) do
|
|
35
48
|
t.datetime "updated_at"
|
36
49
|
end
|
37
50
|
|
38
|
-
add_index "kkt_shoppe_addresses", ["customer_id"], name: "index_kkt_shoppe_addresses_on_customer_id"
|
51
|
+
add_index "kkt_shoppe_addresses", ["customer_id"], name: "index_kkt_shoppe_addresses_on_customer_id", using: :btree
|
39
52
|
|
40
53
|
create_table "kkt_shoppe_attachments", force: true do |t|
|
41
54
|
t.integer "parent_id", null: false
|
@@ -84,10 +97,10 @@ ActiveRecord::Schema.define(version: 20150519173350) do
|
|
84
97
|
t.text "country_ids"
|
85
98
|
end
|
86
99
|
|
87
|
-
add_index "kkt_shoppe_delivery_service_prices", ["delivery_service_id"], name: "index_kkt_shoppe_delivery_service_prices_on_delivery_service_id"
|
88
|
-
add_index "kkt_shoppe_delivery_service_prices", ["max_weight"], name: "index_kkt_shoppe_delivery_service_prices_on_max_weight"
|
89
|
-
add_index "kkt_shoppe_delivery_service_prices", ["min_weight"], name: "index_kkt_shoppe_delivery_service_prices_on_min_weight"
|
90
|
-
add_index "kkt_shoppe_delivery_service_prices", ["price"], name: "index_kkt_shoppe_delivery_service_prices_on_price"
|
100
|
+
add_index "kkt_shoppe_delivery_service_prices", ["delivery_service_id"], name: "index_kkt_shoppe_delivery_service_prices_on_delivery_service_id", using: :btree
|
101
|
+
add_index "kkt_shoppe_delivery_service_prices", ["max_weight"], name: "index_kkt_shoppe_delivery_service_prices_on_max_weight", using: :btree
|
102
|
+
add_index "kkt_shoppe_delivery_service_prices", ["min_weight"], name: "index_kkt_shoppe_delivery_service_prices_on_min_weight", using: :btree
|
103
|
+
add_index "kkt_shoppe_delivery_service_prices", ["price"], name: "index_kkt_shoppe_delivery_service_prices_on_price", using: :btree
|
91
104
|
|
92
105
|
create_table "kkt_shoppe_delivery_services", force: true do |t|
|
93
106
|
t.string "name"
|
@@ -100,7 +113,7 @@ ActiveRecord::Schema.define(version: 20150519173350) do
|
|
100
113
|
t.string "tracking_url"
|
101
114
|
end
|
102
115
|
|
103
|
-
add_index "kkt_shoppe_delivery_services", ["active"], name: "index_kkt_shoppe_delivery_services_on_active"
|
116
|
+
add_index "kkt_shoppe_delivery_services", ["active"], name: "index_kkt_shoppe_delivery_services_on_active", using: :btree
|
104
117
|
|
105
118
|
create_table "kkt_shoppe_order_items", force: true do |t|
|
106
119
|
t.integer "order_id"
|
@@ -116,8 +129,8 @@ ActiveRecord::Schema.define(version: 20150519173350) do
|
|
116
129
|
t.datetime "updated_at"
|
117
130
|
end
|
118
131
|
|
119
|
-
add_index "kkt_shoppe_order_items", ["order_id"], name: "index_kkt_shoppe_order_items_on_order_id"
|
120
|
-
add_index "kkt_shoppe_order_items", ["ordered_item_id", "ordered_item_type"], name: "index_kkt_shoppe_order_items_ordered_item"
|
132
|
+
add_index "kkt_shoppe_order_items", ["order_id"], name: "index_kkt_shoppe_order_items_on_order_id", using: :btree
|
133
|
+
add_index "kkt_shoppe_order_items", ["ordered_item_id", "ordered_item_type"], name: "index_kkt_shoppe_order_items_ordered_item", using: :btree
|
121
134
|
|
122
135
|
create_table "kkt_shoppe_orders", force: true do |t|
|
123
136
|
t.string "token"
|
@@ -164,9 +177,9 @@ ActiveRecord::Schema.define(version: 20150519173350) do
|
|
164
177
|
t.integer "customer_id"
|
165
178
|
end
|
166
179
|
|
167
|
-
add_index "kkt_shoppe_orders", ["delivery_service_id"], name: "index_kkt_shoppe_orders_on_delivery_service_id"
|
168
|
-
add_index "kkt_shoppe_orders", ["received_at"], name: "index_kkt_shoppe_orders_on_received_at"
|
169
|
-
add_index "kkt_shoppe_orders", ["token"], name: "index_kkt_shoppe_orders_on_token"
|
180
|
+
add_index "kkt_shoppe_orders", ["delivery_service_id"], name: "index_kkt_shoppe_orders_on_delivery_service_id", using: :btree
|
181
|
+
add_index "kkt_shoppe_orders", ["received_at"], name: "index_kkt_shoppe_orders_on_received_at", using: :btree
|
182
|
+
add_index "kkt_shoppe_orders", ["token"], name: "index_kkt_shoppe_orders_on_token", using: :btree
|
170
183
|
|
171
184
|
create_table "kkt_shoppe_payments", force: true do |t|
|
172
185
|
t.integer "order_id"
|
@@ -182,8 +195,8 @@ ActiveRecord::Schema.define(version: 20150519173350) do
|
|
182
195
|
t.datetime "updated_at"
|
183
196
|
end
|
184
197
|
|
185
|
-
add_index "kkt_shoppe_payments", ["order_id"], name: "index_kkt_shoppe_payments_on_order_id"
|
186
|
-
add_index "kkt_shoppe_payments", ["parent_payment_id"], name: "index_kkt_shoppe_payments_on_parent_payment_id"
|
198
|
+
add_index "kkt_shoppe_payments", ["order_id"], name: "index_kkt_shoppe_payments_on_order_id", using: :btree
|
199
|
+
add_index "kkt_shoppe_payments", ["parent_payment_id"], name: "index_kkt_shoppe_payments_on_parent_payment_id", using: :btree
|
187
200
|
|
188
201
|
create_table "kkt_shoppe_product_attributes", force: true do |t|
|
189
202
|
t.integer "product_id"
|
@@ -196,9 +209,9 @@ ActiveRecord::Schema.define(version: 20150519173350) do
|
|
196
209
|
t.boolean "public", default: true
|
197
210
|
end
|
198
211
|
|
199
|
-
add_index "kkt_shoppe_product_attributes", ["key"], name: "index_kkt_shoppe_product_attributes_on_key"
|
200
|
-
add_index "kkt_shoppe_product_attributes", ["position"], name: "index_kkt_shoppe_product_attributes_on_position"
|
201
|
-
add_index "kkt_shoppe_product_attributes", ["product_id"], name: "index_kkt_shoppe_product_attributes_on_product_id"
|
212
|
+
add_index "kkt_shoppe_product_attributes", ["key"], name: "index_kkt_shoppe_product_attributes_on_key", using: :btree
|
213
|
+
add_index "kkt_shoppe_product_attributes", ["position"], name: "index_kkt_shoppe_product_attributes_on_position", using: :btree
|
214
|
+
add_index "kkt_shoppe_product_attributes", ["product_id"], name: "index_kkt_shoppe_product_attributes_on_product_id", using: :btree
|
202
215
|
|
203
216
|
create_table "kkt_shoppe_product_categories", force: true do |t|
|
204
217
|
t.string "name"
|
@@ -214,44 +227,17 @@ ActiveRecord::Schema.define(version: 20150519173350) do
|
|
214
227
|
t.boolean "permalink_includes_ancestors", default: false
|
215
228
|
end
|
216
229
|
|
217
|
-
add_index "kkt_shoppe_product_categories", ["lft"], name: "index_kkt_shoppe_product_categories_on_lft"
|
218
|
-
add_index "kkt_shoppe_product_categories", ["permalink"], name: "index_kkt_shoppe_product_categories_on_permalink"
|
219
|
-
add_index "kkt_shoppe_product_categories", ["rgt"], name: "index_kkt_shoppe_product_categories_on_rgt"
|
230
|
+
add_index "kkt_shoppe_product_categories", ["lft"], name: "index_kkt_shoppe_product_categories_on_lft", using: :btree
|
231
|
+
add_index "kkt_shoppe_product_categories", ["permalink"], name: "index_kkt_shoppe_product_categories_on_permalink", using: :btree
|
232
|
+
add_index "kkt_shoppe_product_categories", ["rgt"], name: "index_kkt_shoppe_product_categories_on_rgt", using: :btree
|
220
233
|
|
221
234
|
create_table "kkt_shoppe_product_categorizations", force: true do |t|
|
222
235
|
t.integer "product_id", null: false
|
223
236
|
t.integer "product_category_id", null: false
|
224
237
|
end
|
225
238
|
|
226
|
-
add_index "kkt_shoppe_product_categorizations", ["product_category_id"], name: "categorization_by_product_category_id"
|
227
|
-
add_index "kkt_shoppe_product_categorizations", ["product_id"], name: "categorization_by_product_id"
|
228
|
-
|
229
|
-
create_table "kkt_shoppe_product_category_translations", force: true do |t|
|
230
|
-
t.integer "kkt_shoppe_product_category_id", null: false
|
231
|
-
t.string "locale", null: false
|
232
|
-
t.datetime "created_at"
|
233
|
-
t.datetime "updated_at"
|
234
|
-
t.string "name"
|
235
|
-
t.string "permalink"
|
236
|
-
t.text "description"
|
237
|
-
end
|
238
|
-
|
239
|
-
add_index "kkt_shoppe_product_category_translations", ["locale"], name: "index_kkt_shoppe_product_category_translations_on_locale"
|
240
|
-
add_index "kkt_shoppe_product_category_translations", ["kkt_shoppe_product_category_id"], name: "index_75826cc72f93d014e54dc08b8202892841c670b4"
|
241
|
-
|
242
|
-
create_table "kkt_shoppe_product_translations", force: true do |t|
|
243
|
-
t.integer "kkt_shoppe_product_id", null: false
|
244
|
-
t.string "locale", null: false
|
245
|
-
t.datetime "created_at"
|
246
|
-
t.datetime "updated_at"
|
247
|
-
t.string "name"
|
248
|
-
t.string "permalink"
|
249
|
-
t.text "description"
|
250
|
-
t.text "short_description"
|
251
|
-
end
|
252
|
-
|
253
|
-
add_index "kkt_shoppe_product_translations", ["locale"], name: "index_kkt_shoppe_product_translations_on_locale"
|
254
|
-
add_index "kkt_shoppe_product_translations", ["kkt_shoppe_product_id"], name: "index_kkt_shoppe_product_translations_on_kkt_shoppe_product_id"
|
239
|
+
add_index "kkt_shoppe_product_categorizations", ["product_category_id"], name: "categorization_by_product_category_id", using: :btree
|
240
|
+
add_index "kkt_shoppe_product_categorizations", ["product_id"], name: "categorization_by_product_id", using: :btree
|
255
241
|
|
256
242
|
create_table "kkt_shoppe_products", force: true do |t|
|
257
243
|
t.integer "parent_id"
|
@@ -273,9 +259,9 @@ ActiveRecord::Schema.define(version: 20150519173350) do
|
|
273
259
|
t.boolean "default", default: false
|
274
260
|
end
|
275
261
|
|
276
|
-
add_index "kkt_shoppe_products", ["parent_id"], name: "index_kkt_shoppe_products_on_parent_id"
|
277
|
-
add_index "kkt_shoppe_products", ["permalink"], name: "index_kkt_shoppe_products_on_permalink"
|
278
|
-
add_index "kkt_shoppe_products", ["sku"], name: "index_kkt_shoppe_products_on_sku"
|
262
|
+
add_index "kkt_shoppe_products", ["parent_id"], name: "index_kkt_shoppe_products_on_parent_id", using: :btree
|
263
|
+
add_index "kkt_shoppe_products", ["permalink"], name: "index_kkt_shoppe_products_on_permalink", using: :btree
|
264
|
+
add_index "kkt_shoppe_products", ["sku"], name: "index_kkt_shoppe_products_on_sku", using: :btree
|
279
265
|
|
280
266
|
create_table "kkt_shoppe_settings", force: true do |t|
|
281
267
|
t.string "key"
|
@@ -283,7 +269,7 @@ ActiveRecord::Schema.define(version: 20150519173350) do
|
|
283
269
|
t.string "value_type"
|
284
270
|
end
|
285
271
|
|
286
|
-
add_index "kkt_shoppe_settings", ["key"], name: "index_kkt_shoppe_settings_on_key"
|
272
|
+
add_index "kkt_shoppe_settings", ["key"], name: "index_kkt_shoppe_settings_on_key", using: :btree
|
287
273
|
|
288
274
|
create_table "kkt_shoppe_stock_level_adjustments", force: true do |t|
|
289
275
|
t.integer "item_id"
|
@@ -296,8 +282,8 @@ ActiveRecord::Schema.define(version: 20150519173350) do
|
|
296
282
|
t.datetime "updated_at"
|
297
283
|
end
|
298
284
|
|
299
|
-
add_index "kkt_shoppe_stock_level_adjustments", ["item_id", "item_type"], name: "index_kkt_shoppe_stock_level_adjustments_items"
|
300
|
-
add_index "kkt_shoppe_stock_level_adjustments", ["parent_id", "parent_type"], name: "index_kkt_shoppe_stock_level_adjustments_parent"
|
285
|
+
add_index "kkt_shoppe_stock_level_adjustments", ["item_id", "item_type"], name: "index_kkt_shoppe_stock_level_adjustments_items", using: :btree
|
286
|
+
add_index "kkt_shoppe_stock_level_adjustments", ["parent_id", "parent_type"], name: "index_kkt_shoppe_stock_level_adjustments_parent", using: :btree
|
301
287
|
|
302
288
|
create_table "kkt_shoppe_tax_rates", force: true do |t|
|
303
289
|
t.string "name"
|
@@ -317,6 +303,6 @@ ActiveRecord::Schema.define(version: 20150519173350) do
|
|
317
303
|
t.datetime "updated_at"
|
318
304
|
end
|
319
305
|
|
320
|
-
add_index "kkt_shoppe_users", ["email_address"], name: "index_kkt_shoppe_users_on_email_address"
|
306
|
+
add_index "kkt_shoppe_users", ["email_address"], name: "index_kkt_shoppe_users_on_email_address", using: :btree
|
321
307
|
|
322
308
|
end
|
data/db/seeds.rb
CHANGED
File without changes
|
data/db/seeds_data/poe400.jpg
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/db/seeds_data/snom-mm2.jpg
CHANGED
File without changes
|
data/db/seeds_data/spa303.jpg
CHANGED
File without changes
|
data/db/seeds_data/t18p.jpg
CHANGED
File without changes
|
data/db/seeds_data/t20p.jpg
CHANGED
File without changes
|
data/db/seeds_data/t22p.jpg
CHANGED
File without changes
|
data/db/seeds_data/t26p.jpg
CHANGED
File without changes
|
data/db/seeds_data/t41pn.jpg
CHANGED
File without changes
|
data/db/seeds_data/t46gn.jpg
CHANGED
File without changes
|
data/db/seeds_data/w52p.jpg
CHANGED
File without changes
|
data/db/seeds_data/yhs32.jpg
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/kkt_shoppe/engine.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
module KktShoppe
|
2
2
|
class Engine < ::Rails::Engine
|
3
3
|
isolate_namespace KktShoppe
|
4
|
-
|
4
|
+
|
5
5
|
if KktShoppe.respond_to?(:root)
|
6
6
|
config.autoload_paths << File.join(KktShoppe.root, 'lib')
|
7
7
|
config.assets.precompile += ['kkt_shoppe/sub.css', 'kkt_shoppe/printable.css']
|
8
8
|
end
|
9
|
-
|
9
|
+
|
10
10
|
# We don't want any automatic generators in the engine.
|
11
11
|
config.generators do |g|
|
12
12
|
g.orm :active_record
|
@@ -21,39 +21,35 @@ module KktShoppe
|
|
21
21
|
require_dependency(c)
|
22
22
|
end
|
23
23
|
end
|
24
|
-
|
24
|
+
|
25
25
|
initializer 'kkt_shoppe.initialize' do |app|
|
26
26
|
# Add the default settings
|
27
27
|
KktShoppe.add_settings_group :system_settings, [:store_name, :email_address, :currency_unit, :tax_name, :demo_mode]
|
28
|
-
|
28
|
+
|
29
29
|
# Add middleware
|
30
30
|
app.config.middleware.use KktShoppe::SettingsLoader
|
31
|
-
|
31
|
+
|
32
32
|
# Load our migrations into the application's db/migrate path
|
33
33
|
unless app.root.to_s.match root.to_s
|
34
34
|
config.paths["db/migrate"].expanded.each do |expanded_path|
|
35
35
|
app.config.paths["db/migrate"] << expanded_path
|
36
36
|
end
|
37
|
-
end
|
38
|
-
|
37
|
+
end
|
38
|
+
|
39
39
|
# Load view helpers for the base application
|
40
40
|
ActiveSupport.on_load(:action_view) do
|
41
41
|
require 'kkt_shoppe/view_helpers'
|
42
42
|
ActionView::Base.send :include, KktShoppe::ViewHelpers
|
43
43
|
end
|
44
|
-
|
45
|
-
ActiveSupport.on_load(:active_record) do
|
46
|
-
require 'kkt_shoppe/model_extension'
|
47
|
-
ActiveRecord::Base.send :include, KktShoppe::ModelExtension
|
48
|
-
end
|
49
|
-
|
44
|
+
|
50
45
|
# Load default navigation
|
51
46
|
require 'kkt_shoppe/default_navigation'
|
52
47
|
end
|
53
|
-
|
48
|
+
|
54
49
|
generators do
|
55
50
|
require 'kkt_shoppe/setup_generator'
|
56
51
|
end
|
57
|
-
|
52
|
+
|
58
53
|
end
|
59
54
|
end
|
55
|
+
|
data/lib/kkt_shoppe/error.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/kkt_shoppe/settings.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/kkt_shoppe/version.rb
CHANGED
File without changes
|
data/lib/kkt_shoppe.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kkt_shoppe
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kyle Thompson, Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -521,8 +521,6 @@ files:
|
|
521
521
|
- app/models/kkt_shoppe/stock_level_adjustment.rb
|
522
522
|
- app/models/kkt_shoppe/tax_rate.rb
|
523
523
|
- app/models/kkt_shoppe/user.rb
|
524
|
-
- app/models/shoppe/attachment.rb
|
525
|
-
- app/uploaders/shoppe/attachment_uploader.rb
|
526
524
|
- app/validators/permalink_validator.rb
|
527
525
|
- app/views/kkt_shoppe/addresses/_form.html.haml
|
528
526
|
- app/views/kkt_shoppe/addresses/edit.html.haml
|
@@ -621,7 +619,6 @@ files:
|
|
621
619
|
- db/migrate/20141026181718_add_nested_to_product_categories.rb
|
622
620
|
- db/migrate/20141027215005_create_kkt_shoppe_addresses.rb
|
623
621
|
- db/migrate/20150315215633_add_customer_to_kkt_shoppe_orders.rb
|
624
|
-
- db/migrate/20150315223628_create_kkt_shoppe_attachments.rb
|
625
622
|
- db/migrate/20150513171350_create_kkt_shoppe_product_category_translation_table.rb
|
626
623
|
- db/migrate/20150519173350_create_kkt_shoppe_product_translation_table.rb
|
627
624
|
- db/schema.rb
|
@@ -652,7 +649,6 @@ files:
|
|
652
649
|
- lib/kkt_shoppe/errors/payment_declined.rb
|
653
650
|
- lib/kkt_shoppe/errors/refund_failed.rb
|
654
651
|
- lib/kkt_shoppe/errors/unorderable_item.rb
|
655
|
-
- lib/kkt_shoppe/model_extension.rb
|
656
652
|
- lib/kkt_shoppe/navigation_manager.rb
|
657
653
|
- lib/kkt_shoppe/orderable_item.rb
|
658
654
|
- lib/kkt_shoppe/settings.rb
|
@@ -660,9 +656,8 @@ files:
|
|
660
656
|
- lib/kkt_shoppe/setup_generator.rb
|
661
657
|
- lib/kkt_shoppe/version.rb
|
662
658
|
- lib/kkt_shoppe/view_helpers.rb
|
663
|
-
- lib/
|
664
|
-
|
665
|
-
homepage: http://tryshoppe.com
|
659
|
+
- lib/tasks/kkt_shoppe.rake
|
660
|
+
homepage: http://www.kylekthompson.com
|
666
661
|
licenses:
|
667
662
|
- MIT
|
668
663
|
metadata: {}
|