camaleon_ecommerce 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c912f42238f55384ee36e2561f0c2101e5543a3
|
|
4
|
+
data.tar.gz: c297f617d2ae053d0dd22660f69555ad4322f251
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d2d24735f5f3e632eb000ab1644f11467b45a34aca527597785322f17c8a20c1eea2880ca994ad8042cf7db936f22cc5d395f810beb148df1e189204269e47b
|
|
7
|
+
data.tar.gz: fbe3f714d3959481b33dc51b252122d30b15b2da39c0df8f9e3d9b1ff378ee6611df19e51f026f38d2e5c21e24d32db1f7b3c5ec86118d1102e25a4bff10caf2
|
|
@@ -88,7 +88,7 @@ module Plugins::Ecommerce::EcommerceFunctionsHelper
|
|
|
88
88
|
# helper to calculate exchanges
|
|
89
89
|
def e_finance_exchange_converter(args)
|
|
90
90
|
# request to google's finance converter site
|
|
91
|
-
res = open("https://finance.google.com/
|
|
91
|
+
res = open("https://finance.google.com/bctzjpnsun/converter?a=1&from=#{args[:from]}&to=#{args[:to]}").read
|
|
92
92
|
res = res.scan(/\<span class=bld\>(.+?)\<\/span\>/).first.first.split(' ') # => ["69.3000", "BOB"]
|
|
93
93
|
res.first.to_f.round(4)
|
|
94
94
|
end
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
<div class="form-group">
|
|
42
42
|
<label><%= t('.photo', default: 'Photo') %></label><em class="text-danger">*</em><br>
|
|
43
43
|
<div class=" input-group">
|
|
44
|
-
<%=
|
|
44
|
+
<%= text_field_tag "product_variation[#{variation.id}][photo]", variation.photo, data:{dimension: field.options[:dimension], versions: field.options[:versions], thumb_size: field.options[:thumb_size]}, class: 'data-error-place-parent form-control required' %>
|
|
45
45
|
<a href="#" class="input-group-addon product_variation_photo_link"><i class="fa fa-upload"></i> <%= t('camaleon_cms.admin.button.upload_image', default: 'Upload Photo')%> <%= "(#{field.get_option('dimension')})" if field.get_option('dimension').present? %></a>
|
|
46
46
|
</div>
|
|
47
47
|
</div>
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<%= select_tag( "setting[current_unit]", options_for_select(e_get_all_currencies.collect{|k, x| ["#{x[:label]} (#{x[:symbol]})", k]}, e_system_currency), class: "form-control required masked_select", 'data-live-search' => true) %>
|
|
15
15
|
</div>
|
|
16
16
|
<div class="form-group">
|
|
17
|
-
<label><%= t('.currency_weight', default: '
|
|
17
|
+
<label><%= t('.currency_weight', default: 'Weight Unit') %></label><br>
|
|
18
18
|
<%= select_tag( "setting[current_weight]", options_for_select(e_get_currency_weights.collect{|k,x| ["#{x} (#{k})", k]}, @setting[:current_weight] || 'kg'), class: "form-control required") %>
|
|
19
19
|
</div>
|
|
20
20
|
<div class="form-group">
|
data/lib/ecommerce/version.rb
CHANGED
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: 2.0.
|
|
4
|
+
version: 2.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Owen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-05-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: camaleon_cms
|