camaleon_ecommerce 1.2 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/plugins/ecommerce/admin_product.js.coffee +17 -1
  3. data/app/controllers/plugins/ecommerce/admin/coupons_controller.rb +1 -1
  4. data/app/controllers/plugins/ecommerce/admin/orders_controller.rb +24 -21
  5. data/app/controllers/plugins/ecommerce/admin/payment_methods_controller.rb +2 -34
  6. data/app/controllers/plugins/ecommerce/admin/prices_controller.rb +3 -6
  7. data/app/controllers/plugins/ecommerce/admin/settings_controller.rb +2 -1
  8. data/app/controllers/plugins/ecommerce/admin/shipping_methods_controller.rb +2 -2
  9. data/app/controllers/plugins/ecommerce/admin/tax_rates_controller.rb +1 -1
  10. data/app/controllers/plugins/ecommerce/admin_controller.rb +2 -2
  11. data/app/controllers/plugins/ecommerce/front/checkout_controller.rb +34 -18
  12. data/app/controllers/plugins/ecommerce/front/orders_controller.rb +3 -4
  13. data/app/controllers/plugins/ecommerce/front_controller.rb +26 -11
  14. data/app/decorators/plugins/ecommerce/cart_decorator.rb +5 -5
  15. data/app/decorators/plugins/ecommerce/coupon_decorator.rb +8 -27
  16. data/app/decorators/plugins/ecommerce/order_decorator.rb +1 -1
  17. data/app/decorators/plugins/ecommerce/product_decorator.rb +33 -20
  18. data/app/decorators/plugins/ecommerce/product_item_decorator.rb +8 -2
  19. data/app/decorators/plugins/ecommerce/product_variation_decorator.rb +1 -1
  20. data/app/helpers/plugins/ecommerce/ecommerce_email_helper.rb +7 -6
  21. data/app/helpers/plugins/ecommerce/ecommerce_functions_helper.rb +276 -33
  22. data/app/helpers/plugins/ecommerce/ecommerce_helper.rb +59 -56
  23. data/app/models/plugins/ecommerce/attribute.rb +3 -0
  24. data/app/models/plugins/ecommerce/cart.rb +31 -7
  25. data/app/models/plugins/ecommerce/legacy_order.rb +1 -30
  26. data/app/models/plugins/ecommerce/order.rb +11 -5
  27. data/app/models/plugins/ecommerce/order_detail.rb +1 -0
  28. data/app/models/plugins/ecommerce/payment_method.rb +9 -5
  29. data/app/models/plugins/ecommerce/product_variation.rb +6 -0
  30. data/app/services/plugins/ecommerce/cart_service.rb +4 -17
  31. data/app/views/camaleon_cms/html_mailer/order_canceled.html.erb +2 -2
  32. data/app/views/camaleon_cms/html_mailer/order_confirmed.html.erb +2 -2
  33. data/app/views/camaleon_cms/html_mailer/order_received.html.erb +5 -3
  34. data/app/views/camaleon_cms/html_mailer/order_received_admin.html.erb +3 -3
  35. data/app/views/camaleon_cms/html_mailer/order_shipped.html.erb +2 -2
  36. data/app/views/camaleon_cms/html_mailer/recovery_cart.html.erb +3 -3
  37. data/app/views/plugins/ecommerce/admin/coupons/form.html.erb +11 -11
  38. data/app/views/plugins/ecommerce/admin/coupons/index.html.erb +11 -11
  39. data/app/views/plugins/ecommerce/admin/orders/form.html.erb +2 -2
  40. data/app/views/plugins/ecommerce/admin/orders/index.html.erb +53 -63
  41. data/app/views/plugins/ecommerce/admin/payment_methods/form.html.erb +30 -24
  42. data/app/views/plugins/ecommerce/admin/payment_methods/index.html.erb +8 -8
  43. data/app/views/plugins/ecommerce/admin/payment_methods/show.html.erb +22 -22
  44. data/app/views/plugins/ecommerce/admin/prices/form.html.erb +6 -6
  45. data/app/views/plugins/ecommerce/admin/prices/index.html.erb +8 -8
  46. data/app/views/plugins/ecommerce/admin/product_attributes.html.erb +1 -1
  47. data/app/views/plugins/ecommerce/admin/products/_variations.html.erb +4 -4
  48. data/app/views/plugins/ecommerce/admin/products/index.html.erb +5 -5
  49. data/app/views/plugins/ecommerce/admin/settings/index.html.erb +20 -8
  50. data/app/views/plugins/ecommerce/admin/shipping_methods/form.html.erb +5 -5
  51. data/app/views/plugins/ecommerce/admin/shipping_methods/index.html.erb +8 -9
  52. data/app/views/plugins/ecommerce/admin/shipping_methods/show.html.erb +4 -4
  53. data/app/views/plugins/ecommerce/admin/tax_rates/form.html.erb +3 -3
  54. data/app/views/plugins/ecommerce/admin/tax_rates/index.html.erb +7 -7
  55. data/app/views/plugins/ecommerce/front/checkout/index.html.erb +4 -4
  56. data/app/views/plugins/ecommerce/front/login.html.erb +3 -6
  57. data/app/views/plugins/ecommerce/front/orders/show.html.erb +7 -1
  58. data/app/views/plugins/ecommerce/partials/_cart_widget.html.erb +14 -29
  59. data/app/views/plugins/ecommerce/partials/checkout/_details.html.erb +1 -1
  60. data/app/views/plugins/ecommerce/partials/checkout/_payments.html.erb +100 -99
  61. data/app/views/plugins/ecommerce/partials/checkout/_user_info.html.erb +2 -2
  62. data/app/views/post_types/commerce/{_product_widget.html.erb → _post_list_item.html.erb} +0 -0
  63. data/app/views/post_types/commerce/_product_info.html.erb +45 -0
  64. data/app/views/post_types/commerce/single.html.erb +63 -85
  65. data/config/camaleon_plugin.json +3 -8
  66. data/config/custom_models.rb +28 -4
  67. data/config/locales/en.yml +27 -12
  68. data/config/locales/es.yml +70 -57
  69. data/config/routes.rb +1 -0
  70. data/db/migrate/20161202182552_add_cookie_key_to_cart.rb +5 -0
  71. data/lib/ecommerce/version.rb +1 -1
  72. metadata +7 -14
  73. data/app/helpers/plugins/ecommerce/ecommerce_payment_helper.rb +0 -6
  74. data/app/models/plugins/ecommerce/legacy_cart.rb +0 -50
  75. data/app/services/plugins/ecommerce/product_item_service.rb +0 -29
  76. data/app/services/plugins/ecommerce/product_service.rb +0 -17
  77. data/app/services/plugins/ecommerce/site_service.rb +0 -21
  78. data/app/services/plugins/ecommerce/user_cart_service.rb +0 -12
  79. data/app/services/plugins/ecommerce/user_product_service.rb +0 -29
  80. data/app/views/post_types/commerce.html.erb +0 -22
  81. data/app/views/post_types/commerce/category.html.erb +0 -23
@@ -5,8 +5,7 @@
5
5
  "key": "ecommerce",
6
6
  "helpers": [
7
7
  "Plugins::Ecommerce::EcommerceHelper",
8
- "Plugins::Ecommerce::EcommerceFunctionsHelper",
9
- "Plugins::Ecommerce::EcommercePaymentHelper"
8
+ "Plugins::Ecommerce::EcommerceFunctionsHelper"
10
9
  ],
11
10
  "options": [
12
11
  ],
@@ -26,15 +25,11 @@
26
25
  "admin_before_load": [
27
26
  "ecommerce_admin_before_load"
28
27
  ],
29
- "list_post": [
30
- "ecommerce_admin_list_post"
31
- ],
32
28
  "app_before_load": [
33
29
  "ecommerce_app_before_load"
34
30
  ],
35
31
  "post_form_custom_html": ["ecommerce_admin_product_form"],
36
- "created_post": ["ecommerce_admin_product_created"],
37
- "updated_post": ["ecommerce_admin_product_created"]
38
-
32
+ "created_post": ["ecommerce_admin_product_saved"],
33
+ "updated_post": ["ecommerce_admin_product_saved"]
39
34
  }
40
35
  }
@@ -8,11 +8,24 @@ Rails.application.config.to_prepare do
8
8
  has_many :coupons, :class_name => "Plugins::Ecommerce::Coupon", foreign_key: :parent_id, dependent: :destroy
9
9
  has_many :tax_rates, :class_name => "Plugins::Ecommerce::TaxRate", foreign_key: :parent_id, dependent: :destroy
10
10
  has_many :product_attributes, :class_name => "Plugins::Ecommerce::Attribute", foreign_key: :site_id, dependent: :destroy
11
+
12
+ # return all the products for current site
11
13
  def products
12
14
  post_types.where(slug: 'commerce').first.try(:posts)
13
15
  end
16
+
17
+ # return the payment (PaymentMethod) method with type = type
18
+ def payment_method(type)
19
+ payment_method = payment_methods.actives.detect do |payment_method|
20
+ payment_method.get_option('type') == type
21
+ end
22
+ if payment_method.nil?
23
+ raise ArgumentError, "Payment method #{type} is not found"
24
+ end
25
+ payment_method
26
+ end
14
27
  end
15
-
28
+
16
29
  CamaleonCms::User.class_eval do
17
30
  has_many :carts, class_name: 'Plugins::Ecommerce::Cart', foreign_key: :user_id
18
31
  has_many :orders, class_name: 'Plugins::Ecommerce::Order', foreign_key: :user_id
@@ -20,17 +33,28 @@ Rails.application.config.to_prepare do
20
33
 
21
34
  CamaleonCms::Post.class_eval do
22
35
  has_many :product_variations, class_name: 'Plugins::Ecommerce::ProductVariation', foreign_key: :product_id, dependent: :destroy
36
+ before_destroy :e_validate_related_orders
37
+
38
+ private
39
+ # verify if there are orders related to this product
40
+ def e_validate_related_orders
41
+ errors.add(:base, I18n.t('plugins.ecommerce.message.not_deletable_product')) if Plugins::Ecommerce::ProductItem.where(product_id: id).any?
42
+ end
23
43
  end
24
44
 
25
45
  CamaleonCms::SiteDecorator.class_eval do
46
+ # return the current system currency unit
26
47
  def current_unit
27
- @current_unit ||= h.e_get_currency_units[object.meta[:_setting_ecommerce][:current_unit]]['symbol'] rescue '$'
48
+ h.e_system_currency
28
49
  end
50
+
51
+ # return the current system currency
29
52
  def currency_code
30
- @currency_code ||= h.e_get_currency_units[object.meta[:_setting_ecommerce][:current_unit]]['code'] rescue 'USD'
53
+ h.e_system_currency
31
54
  end
55
+
32
56
  def current_weight
33
- @current_weight ||= h.e_get_currency_weight[object.meta[:_setting_ecommerce][:current_weight]]['code'] rescue 'kg'
57
+ object.get_meta('_setting_ecommerce', {})[:current_weight].to_s.capitalize.presence || 'Kg'
34
58
  end
35
59
 
36
60
  # return all visible products fo current user in current site
@@ -1,6 +1,13 @@
1
1
  en:
2
- plugin:
2
+ plugins:
3
3
  ecommerce:
4
+ currencies:
5
+ usd: 'US dollars'
6
+ eur: 'Euro'
7
+ gbp: 'British Pound Sterling'
8
+ jpy: 'Japanese Yen'
9
+ aud: 'Australian Dollar'
10
+
4
11
  active: 'Active'
5
12
  add_shipping_methods: 'Add Shipping Method'
6
13
  not_active: 'Not Active'
@@ -27,6 +34,7 @@
27
34
  by_paypal: 'By Paypal'
28
35
  by_credit_card: 'By credit card (with paypal)'
29
36
  by_authorize_net: 'By credit card (Authorize.net)'
37
+ by_on_delivery: 'Payment on delivery'
30
38
  details_shipping_methods: 'Shipping Method Details'
31
39
  details_payment_methods: 'Payment Methods Details'
32
40
  details_order: 'Details Order'
@@ -61,6 +69,9 @@
61
69
  accepted: 'Accepted'
62
70
  shipped: 'Shipped'
63
71
  updated: 'Updated'
72
+ not_deletable_product_variations: 'Some Product variations can not be deleted.'
73
+ not_deletable_product: 'The product can not be deleted because there are orders related.'
74
+
64
75
  method_paypal: 'Method by Paypal'
65
76
  method_credit_card: 'Method by Credit Card'
66
77
  method_bank_transfer: 'Method Bank Transfer'
@@ -102,19 +113,21 @@
102
113
  select:
103
114
  received: 'Received'
104
115
  unpaid: 'Unpaid'
116
+ paid: 'Paid'
105
117
  accepted: 'Accepted'
106
118
  shipped: 'Shipped'
107
119
  closed: 'Closed'
108
120
  canceled: 'Canceled'
109
- kilogram: 'kilogram'
110
- pound: 'pound'
111
- dram: 'dram'
112
- grain: 'grain'
113
- gram: 'gram'
114
- hundredweight: 'hundredweight'
115
- milligram: 'milligram'
116
- ounce: 'ounce'
117
- tonne: 'tonne'
121
+ pending: 'Pending'
122
+ kilogram: 'Kilogram'
123
+ pound: 'Pound'
124
+ dram: 'Dram'
125
+ grain: 'Grain'
126
+ gram: 'Gram'
127
+ hundredweight: 'Hundredweight'
128
+ milligram: 'Milligram'
129
+ ounce: 'Ounce'
130
+ tonne: 'Tonne'
118
131
  table:
119
132
  address: 'Address'
120
133
  actions: 'Actions'
@@ -123,6 +136,9 @@
123
136
  city: 'City'
124
137
  code: 'Code'
125
138
  country: 'Country'
139
+ shipping_countries: 'Shipping Countries'
140
+ system_currency_unit: 'System Currency Unit'
141
+ available_currencies_unit: 'Visitor Available Currencies'
126
142
  currency_unit: 'Currency Unit'
127
143
  currency_weight: 'Currency Weight'
128
144
  customer: 'Customer'
@@ -156,6 +172,7 @@
156
172
  products: 'Products'
157
173
  rate: 'Rate'
158
174
  received_time: 'Received Time'
175
+ created_at: 'Created At'
159
176
  sandbox: 'Sandbox'
160
177
  shipping: 'Shipping'
161
178
  signature: 'Signature'
@@ -172,8 +189,6 @@
172
189
  transaction_key: 'Transaction key'
173
190
  tax_rates: 'Tax Rates'
174
191
  add_to_cart: 'Add to cart'
175
- msg:
176
- added_product_in_cart: 'Added product successfully in Cart.'
177
192
  mail:
178
193
  order_received:
179
194
  welcome: "Hi"
@@ -1,6 +1,5 @@
1
1
  es:
2
- # backend
3
- plugin:
2
+ plugins:
4
3
  ecommerce:
5
4
  accepted: "Aceptado"
6
5
  active: "Activo"
@@ -28,6 +27,8 @@ es:
28
27
  by_paypal: "Por Paypal"
29
28
  by_credit_card: "Tarjeta Crédito (PayPal)"
30
29
  by_authorize_net: "Tarjeta Crédito (Authorize.net)"
30
+ by_on_delivery: 'Pago Contra Entrega'
31
+ advanced_search: 'Búsqueda Avanzada'
31
32
  details_shipping_methods: "Detalle Método de Envío"
32
33
  details_payment_methods: "Detalle Método de Pago"
33
34
  details_order: "Detalle Pedido"
@@ -63,10 +64,14 @@ es:
63
64
  shipped: "Enviado"
64
65
  updated: "Actualizado"
65
66
  order_bank_confirmed: 'Pago Bancario Confirmado'
67
+ order_on_delivery_confirmed: 'Pago Contra Entrega Confirmado'
66
68
  order_accepted: 'Orden aceptado'
67
69
  order_shipped: 'Orden enviado'
68
70
  order_canceled: 'Orden cancelado'
69
71
  order_updated: 'Orden actualizado'
72
+ not_deletable_product_variations: 'Algunas variaciones de producto no pueden ser eliminados.'
73
+ not_deletable_product: 'El Producto no puede ser eliminado porque existen órdenes referenciadas.'
74
+
70
75
  method_paypal: "Método por Paypal"
71
76
  method_credit_card: "Método por Tarjeta de Credito"
72
77
  method_bank_transfer: "Método Transferencia Bancaria"
@@ -111,15 +116,23 @@ es:
111
116
  shipped_date: "Fecha de Envío"
112
117
  search_order_number: "Buscar número de pedido"
113
118
  select:
114
- kilogram: "kilogramo"
115
- pound: "libra"
116
- dram: "dracma"
117
- grain: "grano"
118
- gram: "gramo"
119
- hundredweight: "quintal"
120
- milligram: "miligramo"
121
- ounce: "onza"
122
- tonne: "tonelada"
119
+ received: 'Recibido'
120
+ unpaid: 'No Pagado'
121
+ paid: 'Pagado'
122
+ accepted: 'Aceptado'
123
+ shipped: 'Enviado'
124
+ closed: 'Cerrado'
125
+ canceled: 'Cancelado'
126
+ pending: 'Pendiente'
127
+ kilogram: "Kilogramo"
128
+ pound: "Libra"
129
+ dram: "Dracma"
130
+ grain: "Grano"
131
+ gram: "Gramo"
132
+ hundredweight: "Quintal"
133
+ milligram: "Miligramo"
134
+ ounce: "Onza"
135
+ tonne: "Tonelada"
123
136
  table:
124
137
  address: "Dirección"
125
138
  actions: "Acciones"
@@ -129,6 +142,9 @@ es:
129
142
  code: "CÓDIGO"
130
143
  country: "País"
131
144
  currency_unit: "Unidad de Moneda"
145
+ system_currency_unit: 'Unidad de Moneda Administrador'
146
+ available_currencies_unit: 'Unidades de Moneda para Visitantes'
147
+ shipping_countries: 'Paises Para Envío'
132
148
  currency_weight: "Unidad de Peso"
133
149
  customer: "Cliente"
134
150
  customer_info: "Información del cliente"
@@ -167,6 +183,7 @@ es:
167
183
  products: "Productos"
168
184
  rate: "Tarifa"
169
185
  received_time: "Tiempo Recibido"
186
+ created_at: 'Fecha de Creación'
170
187
  sandbox: "Cuentas de Prueba"
171
188
  shipping: "Envío"
172
189
  signature: "Firma"
@@ -187,8 +204,7 @@ es:
187
204
 
188
205
  tax_rates: "Tasas de Impuesto"
189
206
  add_to_cart: "Añadir al carro"
190
- msg:
191
- added_product_in_cart: "Producto añadido al carro correctamente."
207
+
192
208
  shipping_prices: "Precios de envío"
193
209
  mark_shipped: "Marcar como enviado"
194
210
  mail:
@@ -219,41 +235,38 @@ es:
219
235
  order_received_admin:
220
236
  subject: "Nueva Compra"
221
237
 
222
- plugins:
223
- ecommerce:
224
- admin:
225
- product_attributes:
226
- group_label: 'Etiqueta de Grupo'
227
- label: 'Etiqueta'
228
- value: 'Valor'
229
- title: 'Atributos de Producto'
230
- add_attr_group: 'Agregar nuevo grupo'
231
- add_new_value: 'Agregar valor'
232
- values: 'Valores'
233
- code: 'Código'
234
- confirm_delete: 'Esta seguro de eliminar?'
235
-
236
- save_product_attributes:
237
- saved_product_attributes: 'Atributos guardados'
238
+ admin:
239
+ product_attributes:
240
+ group_label: 'Etiqueta de Grupo'
241
+ label: 'Etiqueta'
242
+ value: 'Valor'
243
+ title: 'Atributos de Producto'
244
+ add_attr_group: 'Agregar nuevo grupo'
245
+ add_new_value: 'Agregar valor'
246
+ values: 'Valores'
247
+ code: 'Código'
248
+ confirm_delete: 'Esta seguro de eliminar?'
238
249
 
250
+ save_product_attributes:
251
+ saved_product_attributes: 'Atributos guardados'
239
252
 
240
- products:
241
- variations:
242
- title: 'Variaciones de Producto'
243
- attributes: 'Atributos'
244
- add_new_variation: 'Agregar Variación'
245
- add_new_value: 'Agregar nuevo valor'
246
- photo: 'Foto'
247
- sku: 'SKU'
248
- price: 'Precio'
249
- weight: 'Peso'
250
- qty: 'Cantidad'
251
- confirm_del: 'Esta seguro de eliminar esta variación?'
253
+ products:
254
+ variations:
255
+ title: 'Variaciones de Producto'
256
+ attributes: 'Atributos'
257
+ add_new_variation: 'Agregar Variación'
258
+ add_new_value: 'Agregar nuevo valor'
259
+ photo: 'Foto'
260
+ sku: 'SKU'
261
+ price: 'Precio'
262
+ weight: 'Peso'
263
+ qty: 'Cantidad'
264
+ confirm_del: 'Esta seguro de eliminar esta variación?'
252
265
 
253
266
 
254
267
  # frontend
255
- plugins:
256
- ecommerce:
268
+ #plugins:
269
+ # ecommerce:
257
270
  messages:
258
271
  cart_no_products: 'No existen productos en su carro'
259
272
  checkout: 'Pago'
@@ -267,6 +280,7 @@ es:
267
280
  invalid_access: 'Acceso no válido'
268
281
  created_account: 'Cuenta creada satisfactoriamente'
269
282
  my_orders: 'Mis Ordenes'
283
+ order_not_found: 'Orden no encontrado'
270
284
  detail_order: 'Detalles de orden: #%{order}'
271
285
  coupon_not_found: 'Cupón no encontrado'
272
286
  coupon_expired: 'Cupón expirado'
@@ -278,6 +292,7 @@ es:
278
292
  required_minimum_price: 'El monto de tu compra debe ser superior a %{min_amount}'
279
293
  order_status:
280
294
  bank_pending: 'Pendiente de confirmación'
295
+ on_delivery: 'Pendiente de confirmación'
281
296
  canceled: 'Cancelado'
282
297
  paid: 'Pagado'
283
298
  shipped: 'Enviado'
@@ -292,9 +307,15 @@ es:
292
307
  attrs: 'Atributos'
293
308
  sku: 'SKU'
294
309
  noavailable_items: 'No hay items disponibles'
310
+ no_stock: 'Producto fuera de stock'
295
311
 
296
312
  front:
313
+ breadcrumb:
314
+ home: 'Inicio'
297
315
  checkout:
316
+ index:
317
+ check_out_process: 'Proceso de Pago'
318
+ step: 'Paso'
298
319
  cart_index:
299
320
  item: 'Item'
300
321
  tax: 'Impuesto'
@@ -332,6 +353,9 @@ es:
332
353
  address: 'Dirección'
333
354
  details: 'Detalles'
334
355
  shipping_address: 'Dirección de envío'
356
+ created_at: 'Fecha de Creación'
357
+ received_at: 'Received At'
358
+ shipped_at: 'Enviado En'
335
359
  city: 'Ciudad'
336
360
  state: 'Estado'
337
361
  zip_code: 'Código zip'
@@ -365,8 +389,8 @@ es:
365
389
  pass: 'Password'
366
390
  email: 'Correo Electrónico'
367
391
  full_name: 'Nombre Completo'
368
- confirm_pass: 'Confirme Password'
369
- create_account: 'Create cuenta'
392
+ confirm_pass: 'Repetir Password'
393
+ create_account: 'Crear cuenta'
370
394
 
371
395
 
372
396
  partials:
@@ -406,7 +430,7 @@ es:
406
430
  bank_name: 'Nombre del banco'
407
431
  descr: 'Descripción'
408
432
 
409
- products_details:
433
+ products_detail:
410
434
  title: 'Información de Pedido'
411
435
  user_details: 'Detalles de Comprador'
412
436
  name: 'Nombre'
@@ -444,17 +468,6 @@ es:
444
468
  total: 'Total'
445
469
 
446
470
 
447
- table_order_products:
448
- qty: 'Cantidad'
449
- item: 'Item'
450
- price: 'Precio'
451
- tax: 'Impuesto'
452
- sub_total: 'Sub Total'
453
- total_excluding_tax: 'Total (excluyendo impuestos)'
454
- shipping: 'Total Envio'
455
- total_price: 'Precio Total'
456
- discounts: 'Descuentos'
457
- sub_total: 'Sub Total'
458
471
 
459
472
 
460
473
 
@@ -19,6 +19,7 @@ Rails.application.routes.draw do
19
19
  post 'pay_by_authorize_net'
20
20
  post 'pay_by_stripe'
21
21
  post 'pay_by_paypal'
22
+ post 'pay_by_on_delivery'
22
23
  end
23
24
  end
24
25
 
@@ -0,0 +1,5 @@
1
+ class AddCookieKeyToCart < ActiveRecord::Migration
2
+ def change
3
+ add_column :plugins_ecommerce_orders, :visitor_key, :string
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Ecommerce
2
- VERSION = '1.2'
2
+ VERSION = '1.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camaleon_ecommerce
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Owen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-31 00:00:00.000000000 Z
11
+ date: 2016-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '4.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '4.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: country_select
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -116,11 +116,9 @@ files:
116
116
  - app/helpers/plugins/ecommerce/ecommerce_email_helper.rb
117
117
  - app/helpers/plugins/ecommerce/ecommerce_functions_helper.rb
118
118
  - app/helpers/plugins/ecommerce/ecommerce_helper.rb
119
- - app/helpers/plugins/ecommerce/ecommerce_payment_helper.rb
120
119
  - app/models/plugins/ecommerce/attribute.rb
121
120
  - app/models/plugins/ecommerce/cart.rb
122
121
  - app/models/plugins/ecommerce/coupon.rb
123
- - app/models/plugins/ecommerce/legacy_cart.rb
124
122
  - app/models/plugins/ecommerce/legacy_order.rb
125
123
  - app/models/plugins/ecommerce/order.rb
126
124
  - app/models/plugins/ecommerce/order_detail.rb
@@ -131,11 +129,6 @@ files:
131
129
  - app/models/plugins/ecommerce/tax_rate.rb
132
130
  - app/services/plugins/ecommerce/cart_service.rb
133
131
  - app/services/plugins/ecommerce/order_service.rb
134
- - app/services/plugins/ecommerce/product_item_service.rb
135
- - app/services/plugins/ecommerce/product_service.rb
136
- - app/services/plugins/ecommerce/site_service.rb
137
- - app/services/plugins/ecommerce/user_cart_service.rb
138
- - app/services/plugins/ecommerce/user_product_service.rb
139
132
  - app/services/plugins/ecommerce/util_service.rb
140
133
  - app/views/camaleon_cms/html_mailer/order_canceled.html.erb
141
134
  - app/views/camaleon_cms/html_mailer/order_confirmed.html.erb
@@ -173,9 +166,8 @@ files:
173
166
  - app/views/plugins/ecommerce/partials/checkout/_payments.html.erb
174
167
  - app/views/plugins/ecommerce/partials/checkout/_products_detail.html.erb
175
168
  - app/views/plugins/ecommerce/partials/checkout/_user_info.html.erb
176
- - app/views/post_types/commerce.html.erb
177
- - app/views/post_types/commerce/_product_widget.html.erb
178
- - app/views/post_types/commerce/category.html.erb
169
+ - app/views/post_types/commerce/_post_list_item.html.erb
170
+ - app/views/post_types/commerce/_product_info.html.erb
179
171
  - app/views/post_types/commerce/single.html.erb
180
172
  - config/camaleon_plugin.json
181
173
  - config/currency.json
@@ -190,6 +182,7 @@ files:
190
182
  - db/migrate/20160620200501_add_product_attributes_structure.rb
191
183
  - db/migrate/20160825174848_set_cama_post_decorator_class.rb
192
184
  - db/migrate/20160825232739_migrate_order_data.rb
185
+ - db/migrate/20161202182552_add_cookie_key_to_cart.rb
193
186
  - lib/camaleon_ecommerce.rb
194
187
  - lib/ecommerce.rb
195
188
  - lib/ecommerce/engine.rb