locomotive_ecommerce_plugin 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzVmNmI3ZjgzOGIzOGI1MDUzM2NiYzI2MWMzZDNmMmQ2NWZlMWI1Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODExMmIxMTljODY5YjMyZDViYjc1MzY3ZDU4NTIwMjg4ZGZmMGZjMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODljODY5YjUzYjZkZjdiNWYyN2YyYTk4YzdkMDg3ZGMzMDA5YWRhNmMwNTBm
|
10
|
+
ODc5MTQ3OGFjOGNkZmNhMzhkNjc0YTZkODUzNzFiZjFiYmI1ODg3ZjMwMDgy
|
11
|
+
YjM0NGVkODcyYzBiYThiZjJjZWY5NTg5YzczYmQzM2FiY2JhM2U=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTUzZGUxYjI4MmE2NWI4YjQ3ZjE0ZmZlOTlmYWEyMDE5YjAyNmQ3YTNmNTcz
|
14
|
+
Zjg5NDIzZWM3Y2M3ZWZlYWVkMTgyMmRhNjMxMzdjYzcyM2U1YmFmYzhlNjNm
|
15
|
+
OTExMWI5NTA1OTA4NWUzZTdiMDAyYTI0ODZmZDJhOGU5NjhiNzE=
|
@@ -115,10 +115,12 @@ module Locomotive
|
|
115
115
|
query_hash = {}
|
116
116
|
query_hash[name_field] = self.shipping_method
|
117
117
|
method = ct.entries.where(query_hash).first
|
118
|
-
if method &&
|
119
|
-
|
120
|
-
|
121
|
-
|
118
|
+
if method && method.respond_to?(over_field) && method.respond_to?(under_field)
|
119
|
+
if self.cart.purchase_total > price_break
|
120
|
+
@shipping = method.send(over_field).to_f
|
121
|
+
else
|
122
|
+
@shipping = method.send(under_field).to_f
|
123
|
+
end
|
122
124
|
end
|
123
125
|
end
|
124
126
|
@shipping
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: locomotive_ecommerce_plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Colibri Software
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|