e_plat 1.1.0.pre.rc.4 → 1.1.0.pre.rc.5
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 +4 -4
- data/README.md +2 -2
- data/lib/e_plat/mapping/woocommerce/v_3/product/variant.rb +7 -6
- data/lib/e_plat/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2206781bbf8868908c0e96fe7c14598796565160e8dda1552dcb039f15dc42de
|
4
|
+
data.tar.gz: '08d8237e1f2117e6b2d732b22450f770ff19525701b150e734021119332adeea'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16d8aef337c863094e137d709a9180fb313570de1df5b8a80083b448a98846bac6afe0b762fdf7a7f79e4c05dc3666eaf91bc7cafd26db4991eb5fccd2a3b265
|
7
|
+
data.tar.gz: 898f2f7cbd29a897dce7d790800a20523d13579955f548471e1482ec78588c002b373b52b90606ccbde113a85aca792ac7e76d238d8e8d49510488feb1e6cebd
|
data/README.md
CHANGED
@@ -298,7 +298,7 @@ EPlat is designed to let you mostly use it's universal interface, but then easil
|
|
298
298
|
|----------------------|----------|------------------------------------------|------------------------------------|-----------------------------------|
|
299
299
|
| id | integer | * | id | id |
|
300
300
|
| title | string | * | option_values&.map(&:label)&.join(' ') | attributes.map(&:option).join(' ') |
|
301
|
-
| price | string | * | calculated_price |
|
301
|
+
| price | string | * | calculated_price | gets `price`, sets `regular_price` |
|
302
302
|
| sku | string | * | sku | sku |
|
303
303
|
| position | integer | * | nil | menu_order |
|
304
304
|
| inventory_policy | string | * | nil | backorders |
|
@@ -321,7 +321,7 @@ EPlat is designed to let you mostly use it's universal interface, but then easil
|
|
321
321
|
* Bigcommerce variant.title= and variant.price= setters are not supported. They're a result of the option values instead.
|
322
322
|
* WooCommerce variant.title= setter is not supported. It's result of the option values instead.
|
323
323
|
** WooCommerce calls variants 'variations', EPlat refers to them as variants.
|
324
|
-
*** It's possible for Woo products to have 0 variants, in this situation we generate a virtual one
|
324
|
+
*** It's possible for Woo products to have 0 variants, in this situation we generate a virtual one with an `id` of `0` and `.virtual? == true`.
|
325
325
|
```
|
326
326
|
|
327
327
|
helper methods: <br>
|
@@ -58,9 +58,6 @@ module EPlat
|
|
58
58
|
{
|
59
59
|
existing_entry: {native_key: "id", e_plat_key: "id"}
|
60
60
|
},
|
61
|
-
{
|
62
|
-
existing_entry: {native_key: "price", e_plat_key: "price"}
|
63
|
-
},
|
64
61
|
{
|
65
62
|
existing_entry: {native_key: "sku", e_plat_key: "sku"}
|
66
63
|
},
|
@@ -90,9 +87,13 @@ module EPlat
|
|
90
87
|
}
|
91
88
|
},
|
92
89
|
{
|
93
|
-
|
94
|
-
|
95
|
-
|
90
|
+
existing_entry: {native_key: "price", e_plat_key: "price",
|
91
|
+
custom_e_plat_getter: "-> (value) {
|
92
|
+
value || product&.price
|
93
|
+
}",
|
94
|
+
custom_native_setter: "-> (value) {
|
95
|
+
self.sale_price = value; value
|
96
|
+
}"
|
96
97
|
}
|
97
98
|
},
|
98
99
|
{
|
data/lib/e_plat/version.rb
CHANGED