camaleon_ecommerce 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +37 -0
  5. data/app/assets/javascripts/plugins/ecommerce/admin.js +33 -0
  6. data/app/assets/javascripts/plugins/ecommerce/cart.js +207 -0
  7. data/app/assets/javascripts/plugins/ecommerce/fix_form.js +10 -0
  8. data/app/assets/javascripts/plugins/ecommerce/jquery.creditCardValidator.js +208 -0
  9. data/app/assets/stylesheets/plugins/ecommerce/admin.scss +122 -0
  10. data/app/assets/stylesheets/plugins/ecommerce/front.scss +36 -0
  11. data/app/controllers/plugins/ecommerce/admin/coupons_controller.rb +61 -0
  12. data/app/controllers/plugins/ecommerce/admin/orders_controller.rb +96 -0
  13. data/app/controllers/plugins/ecommerce/admin/payment_methods_controller.rb +90 -0
  14. data/app/controllers/plugins/ecommerce/admin/prices_controller.rb +70 -0
  15. data/app/controllers/plugins/ecommerce/admin/settings_controller.rb +22 -0
  16. data/app/controllers/plugins/ecommerce/admin/shipping_methods_controller.rb +62 -0
  17. data/app/controllers/plugins/ecommerce/admin/tax_rates_controller.rb +61 -0
  18. data/app/controllers/plugins/ecommerce/admin_controller.rb +20 -0
  19. data/app/controllers/plugins/ecommerce/front/checkout_controller.rb +166 -0
  20. data/app/controllers/plugins/ecommerce/front/orders_controller.rb +255 -0
  21. data/app/controllers/plugins/ecommerce/front_controller.rb +18 -0
  22. data/app/helpers/plugins/ecommerce/ecommerce_email_helper.rb +46 -0
  23. data/app/helpers/plugins/ecommerce/ecommerce_functions_helper.rb +49 -0
  24. data/app/helpers/plugins/ecommerce/ecommerce_helper.rb +240 -0
  25. data/app/helpers/plugins/ecommerce/ecommerce_payment_helper.rb +67 -0
  26. data/app/models/plugins/ecommerce/cart.rb +40 -0
  27. data/app/models/plugins/ecommerce/coupon.rb +25 -0
  28. data/app/models/plugins/ecommerce/coupon_decorator.rb +60 -0
  29. data/app/models/plugins/ecommerce/order.rb +65 -0
  30. data/app/models/plugins/ecommerce/order_decorator.rb +54 -0
  31. data/app/models/plugins/ecommerce/order_detail.rb +13 -0
  32. data/app/models/plugins/ecommerce/payment_method.rb +29 -0
  33. data/app/models/plugins/ecommerce/product.rb +14 -0
  34. data/app/models/plugins/ecommerce/shipping_method.rb +26 -0
  35. data/app/models/plugins/ecommerce/tax_rate.rb +18 -0
  36. data/app/views/camaleon_cms/html_mailer/order_received.html.erb +3 -0
  37. data/app/views/camaleon_cms/html_mailer/order_received_admin.html.erb +3 -0
  38. data/app/views/camaleon_cms/html_mailer/recovery_cart.html.erb +4 -0
  39. data/app/views/layouts/plugins/ecommerce/mailer.html.erb +22 -0
  40. data/app/views/plugins/ecommerce/admin/coupons/form.html.erb +73 -0
  41. data/app/views/plugins/ecommerce/admin/coupons/index.html.erb +50 -0
  42. data/app/views/plugins/ecommerce/admin/index.html.erb +2 -0
  43. data/app/views/plugins/ecommerce/admin/orders/form.html.erb +64 -0
  44. data/app/views/plugins/ecommerce/admin/orders/index.html.erb +90 -0
  45. data/app/views/plugins/ecommerce/admin/orders/show.html.erb +173 -0
  46. data/app/views/plugins/ecommerce/admin/payment_methods/form.html.erb +115 -0
  47. data/app/views/plugins/ecommerce/admin/payment_methods/index.html.erb +43 -0
  48. data/app/views/plugins/ecommerce/admin/payment_methods/show.html.erb +70 -0
  49. data/app/views/plugins/ecommerce/admin/prices/form.html.erb +49 -0
  50. data/app/views/plugins/ecommerce/admin/prices/index.html.erb +39 -0
  51. data/app/views/plugins/ecommerce/admin/prices/show.html.erb +19 -0
  52. data/app/views/plugins/ecommerce/admin/products/index.html.erb +114 -0
  53. data/app/views/plugins/ecommerce/admin/settings/index.html.erb +25 -0
  54. data/app/views/plugins/ecommerce/admin/shipping_methods/form.html.erb +39 -0
  55. data/app/views/plugins/ecommerce/admin/shipping_methods/index.html.erb +41 -0
  56. data/app/views/plugins/ecommerce/admin/shipping_methods/show.html.erb +22 -0
  57. data/app/views/plugins/ecommerce/admin/tax_rates/form.html.erb +36 -0
  58. data/app/views/plugins/ecommerce/admin/tax_rates/index.html.erb +41 -0
  59. data/app/views/plugins/ecommerce/front/_post_list_item.html.erb +18 -0
  60. data/app/views/plugins/ecommerce/front/checkout/cart_index.html.erb +59 -0
  61. data/app/views/plugins/ecommerce/front/checkout/index.html.erb +166 -0
  62. data/app/views/plugins/ecommerce/front/index.html.erb +2 -0
  63. data/app/views/plugins/ecommerce/front/list_products.html.erb +34 -0
  64. data/app/views/plugins/ecommerce/front/orders/index.html.erb +46 -0
  65. data/app/views/plugins/ecommerce/front/orders/pay_by_bank_transfer.html.erb +67 -0
  66. data/app/views/plugins/ecommerce/front/orders/pay_by_credit_card.html.erb +131 -0
  67. data/app/views/plugins/ecommerce/front/orders/pay_by_credit_card_authorize_net.erb +150 -0
  68. data/app/views/plugins/ecommerce/front/orders/select_payment.html.erb +70 -0
  69. data/app/views/plugins/ecommerce/front/orders/show.html.erb +76 -0
  70. data/app/views/plugins/ecommerce/front/product.html.erb +105 -0
  71. data/app/views/plugins/ecommerce/layouts/_ecommerce.html.erb +41 -0
  72. data/app/views/plugins/ecommerce/partials/_form_address.html.erb +84 -0
  73. data/app/views/plugins/ecommerce/partials/_table_order_products.html.erb +85 -0
  74. data/config/camaleon_plugin.json +48 -0
  75. data/config/currency.json +154 -0
  76. data/config/currency_en.json +154 -0
  77. data/config/currency_es.json +154 -0
  78. data/config/custom_models.rb +64 -0
  79. data/config/locales/readme.txt +1 -0
  80. data/config/locales/translation.yml +371 -0
  81. data/config/routes.rb +57 -0
  82. data/lib/camaleon_ecommerce.rb +4 -0
  83. data/lib/ecommerce.rb +4 -0
  84. data/lib/ecommerce/engine.rb +6 -0
  85. data/lib/ecommerce/version.rb +3 -0
  86. data/lib/tasks/ecommerce_tasks.rake +4 -0
  87. metadata +185 -0
data/config/routes.rb ADDED
@@ -0,0 +1,57 @@
1
+ Rails.application.routes.draw do
2
+ scope '(:locale)', locale: /#{PluginRoutes.all_locales}/, :defaults => {} do
3
+ # frontend
4
+ namespace :plugins do
5
+ namespace 'ecommerce' do
6
+ get 'index' => 'front#index'
7
+
8
+ get 'checkout' => 'front/checkout#index'
9
+ post 'checkout/processing' => 'front/checkout#processing'
10
+ get 'checkout/cart' => 'front/checkout#cart_index'
11
+ post 'checkout/cart/add' => 'front/checkout#cart_add'
12
+ post 'checkout/cart/update' => 'front/checkout#cart_update'
13
+ get 'checkout/cart/remove' => 'front/checkout#cart_remove'
14
+ post 'res_coupon' => 'front/orders#res_coupon'
15
+ get 'orders' => 'front/orders#index'
16
+ get 'orders/:order/show' => 'front/orders#show', as: :order_show
17
+ get 'orders/:order/select_payment' => 'front/orders#select_payment', as: :order_select_payment
18
+ post 'orders/:order/select_payment' => 'front/orders#set_select_payment', as: :order_set_select_payment
19
+ get 'orders/:order/pay' => 'front/orders#pay', as: :order_pay
20
+ get 'orders/:order/success' => 'front/orders#success', as: :order_success
21
+ get 'orders/:order/cancel' => 'front/orders#cancel', as: :order_cancel
22
+ post 'orders/:order/pay_by_bank_transfer' => 'front/orders#pay_by_bank_transfer', as: :order_pay_by_bank_transfer
23
+ post 'orders/:order/pay_by_credit_card' => 'front/orders#pay_by_credit_card', as: :order_pay_by_credit_card
24
+ post 'orders/:order/pay_by_credit_card_authorize_net' => 'front/orders#pay_by_credit_card_authorize_net', as: :order_pay_by_credit_card_authorize_net
25
+ post 'orders/:order/pay_by_authorize_net' => 'front/orders#pay_by_authorize_net', as: :order_pay_by_authorize_net
26
+ end
27
+ end
28
+ end
29
+
30
+ #Admin Panel
31
+ scope 'admin', as: 'admin' do
32
+ namespace 'plugins' do
33
+ namespace 'ecommerce' do
34
+ get 'index' => 'admin#index'
35
+ resources :orders, controller: 'admin/orders' do
36
+ post 'accepted'
37
+ post 'shipped'
38
+ post 'closed'
39
+ get 'canceled'
40
+ end
41
+ resources :payment_methods, controller: 'admin/payment_methods'
42
+ resources :shipping_methods, controller: 'admin/shipping_methods' do
43
+ resources :prices, controller: 'admin/prices'
44
+ end
45
+ resources :coupons, controller: 'admin/coupons'
46
+ resources :tax_rates, controller: 'admin/tax_rates'
47
+ get 'settings' => 'admin/settings#index'
48
+ post 'settings/saved' => 'admin/settings#saved'
49
+ end
50
+ end
51
+ end
52
+
53
+ # main routes
54
+ #scope 'ecommerce', module: 'plugins/ecommerce/', as: 'ecommerce' do
55
+ # Here my routes for main routes
56
+ #end
57
+ end
@@ -0,0 +1,4 @@
1
+ require 'ecommerce/engine'
2
+
3
+ module Ecommerce
4
+ end
data/lib/ecommerce.rb ADDED
@@ -0,0 +1,4 @@
1
+ require 'ecommerce/engine'
2
+
3
+ module Ecommerce
4
+ end
@@ -0,0 +1,6 @@
1
+ require "country_select"
2
+ require "activemerchant"
3
+ module Ecommerce
4
+ class Engine < ::Rails::Engine
5
+ end
6
+ end
@@ -0,0 +1,3 @@
1
+ module Ecommerce
2
+ VERSION = '0.0.4'
3
+ end
@@ -0,0 +1,4 @@
1
+ # desc "Explaining what the task does"
2
+ # task :ecommerce do
3
+ # # Task goes here
4
+ # end
metadata ADDED
@@ -0,0 +1,185 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: camaleon_ecommerce
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4
5
+ platform: ruby
6
+ authors:
7
+ - Owen
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-06-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: country_select
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.4'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.4'
41
+ - !ruby/object:Gem::Dependency
42
+ name: activemerchant
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.54'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.54'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sqlite3
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.3'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '1.3'
69
+ description: ": Description of Ecommerce."
70
+ email:
71
+ - owenperedo@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - MIT-LICENSE
77
+ - README.rdoc
78
+ - Rakefile
79
+ - app/assets/javascripts/plugins/ecommerce/admin.js
80
+ - app/assets/javascripts/plugins/ecommerce/cart.js
81
+ - app/assets/javascripts/plugins/ecommerce/fix_form.js
82
+ - app/assets/javascripts/plugins/ecommerce/jquery.creditCardValidator.js
83
+ - app/assets/stylesheets/plugins/ecommerce/admin.scss
84
+ - app/assets/stylesheets/plugins/ecommerce/front.scss
85
+ - app/controllers/plugins/ecommerce/admin/coupons_controller.rb
86
+ - app/controllers/plugins/ecommerce/admin/orders_controller.rb
87
+ - app/controllers/plugins/ecommerce/admin/payment_methods_controller.rb
88
+ - app/controllers/plugins/ecommerce/admin/prices_controller.rb
89
+ - app/controllers/plugins/ecommerce/admin/settings_controller.rb
90
+ - app/controllers/plugins/ecommerce/admin/shipping_methods_controller.rb
91
+ - app/controllers/plugins/ecommerce/admin/tax_rates_controller.rb
92
+ - app/controllers/plugins/ecommerce/admin_controller.rb
93
+ - app/controllers/plugins/ecommerce/front/checkout_controller.rb
94
+ - app/controllers/plugins/ecommerce/front/orders_controller.rb
95
+ - app/controllers/plugins/ecommerce/front_controller.rb
96
+ - app/helpers/plugins/ecommerce/ecommerce_email_helper.rb
97
+ - app/helpers/plugins/ecommerce/ecommerce_functions_helper.rb
98
+ - app/helpers/plugins/ecommerce/ecommerce_helper.rb
99
+ - app/helpers/plugins/ecommerce/ecommerce_payment_helper.rb
100
+ - app/models/plugins/ecommerce/cart.rb
101
+ - app/models/plugins/ecommerce/coupon.rb
102
+ - app/models/plugins/ecommerce/coupon_decorator.rb
103
+ - app/models/plugins/ecommerce/order.rb
104
+ - app/models/plugins/ecommerce/order_decorator.rb
105
+ - app/models/plugins/ecommerce/order_detail.rb
106
+ - app/models/plugins/ecommerce/payment_method.rb
107
+ - app/models/plugins/ecommerce/product.rb
108
+ - app/models/plugins/ecommerce/shipping_method.rb
109
+ - app/models/plugins/ecommerce/tax_rate.rb
110
+ - app/views/camaleon_cms/html_mailer/order_received.html.erb
111
+ - app/views/camaleon_cms/html_mailer/order_received_admin.html.erb
112
+ - app/views/camaleon_cms/html_mailer/recovery_cart.html.erb
113
+ - app/views/layouts/plugins/ecommerce/mailer.html.erb
114
+ - app/views/plugins/ecommerce/admin/coupons/form.html.erb
115
+ - app/views/plugins/ecommerce/admin/coupons/index.html.erb
116
+ - app/views/plugins/ecommerce/admin/index.html.erb
117
+ - app/views/plugins/ecommerce/admin/orders/form.html.erb
118
+ - app/views/plugins/ecommerce/admin/orders/index.html.erb
119
+ - app/views/plugins/ecommerce/admin/orders/show.html.erb
120
+ - app/views/plugins/ecommerce/admin/payment_methods/form.html.erb
121
+ - app/views/plugins/ecommerce/admin/payment_methods/index.html.erb
122
+ - app/views/plugins/ecommerce/admin/payment_methods/show.html.erb
123
+ - app/views/plugins/ecommerce/admin/prices/form.html.erb
124
+ - app/views/plugins/ecommerce/admin/prices/index.html.erb
125
+ - app/views/plugins/ecommerce/admin/prices/show.html.erb
126
+ - app/views/plugins/ecommerce/admin/products/index.html.erb
127
+ - app/views/plugins/ecommerce/admin/settings/index.html.erb
128
+ - app/views/plugins/ecommerce/admin/shipping_methods/form.html.erb
129
+ - app/views/plugins/ecommerce/admin/shipping_methods/index.html.erb
130
+ - app/views/plugins/ecommerce/admin/shipping_methods/show.html.erb
131
+ - app/views/plugins/ecommerce/admin/tax_rates/form.html.erb
132
+ - app/views/plugins/ecommerce/admin/tax_rates/index.html.erb
133
+ - app/views/plugins/ecommerce/front/_post_list_item.html.erb
134
+ - app/views/plugins/ecommerce/front/checkout/cart_index.html.erb
135
+ - app/views/plugins/ecommerce/front/checkout/index.html.erb
136
+ - app/views/plugins/ecommerce/front/index.html.erb
137
+ - app/views/plugins/ecommerce/front/list_products.html.erb
138
+ - app/views/plugins/ecommerce/front/orders/index.html.erb
139
+ - app/views/plugins/ecommerce/front/orders/pay_by_bank_transfer.html.erb
140
+ - app/views/plugins/ecommerce/front/orders/pay_by_credit_card.html.erb
141
+ - app/views/plugins/ecommerce/front/orders/pay_by_credit_card_authorize_net.erb
142
+ - app/views/plugins/ecommerce/front/orders/select_payment.html.erb
143
+ - app/views/plugins/ecommerce/front/orders/show.html.erb
144
+ - app/views/plugins/ecommerce/front/product.html.erb
145
+ - app/views/plugins/ecommerce/layouts/_ecommerce.html.erb
146
+ - app/views/plugins/ecommerce/partials/_form_address.html.erb
147
+ - app/views/plugins/ecommerce/partials/_table_order_products.html.erb
148
+ - config/camaleon_plugin.json
149
+ - config/currency.json
150
+ - config/currency_en.json
151
+ - config/currency_es.json
152
+ - config/custom_models.rb
153
+ - config/locales/readme.txt
154
+ - config/locales/translation.yml
155
+ - config/routes.rb
156
+ - lib/camaleon_ecommerce.rb
157
+ - lib/ecommerce.rb
158
+ - lib/ecommerce/engine.rb
159
+ - lib/ecommerce/version.rb
160
+ - lib/tasks/ecommerce_tasks.rake
161
+ homepage: http://camaleon.tuzitio.com/store/plugins/6
162
+ licenses:
163
+ - MIT
164
+ metadata: {}
165
+ post_install_message:
166
+ rdoc_options: []
167
+ require_paths:
168
+ - lib
169
+ required_ruby_version: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ required_rubygems_version: !ruby/object:Gem::Requirement
175
+ requirements:
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: '0'
179
+ requirements: []
180
+ rubyforge_project:
181
+ rubygems_version: 2.5.1
182
+ signing_key:
183
+ specification_version: 4
184
+ summary: ": Summary of Ecommerce."
185
+ test_files: []