@lancom/shared 0.0.302 → 0.0.303
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.
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
opacity: 1;
|
|
75
75
|
position: absolute;
|
|
76
76
|
top: 30px;
|
|
77
|
+
max-width: 250px;
|
|
77
78
|
}
|
|
78
79
|
&__cover-hover {
|
|
79
80
|
transition: opacity 0.45s ease-in-out;
|
|
@@ -81,6 +82,7 @@
|
|
|
81
82
|
opacity: 0;
|
|
82
83
|
position: absolute;
|
|
83
84
|
top: 30px;
|
|
85
|
+
max-width: 250px;
|
|
84
86
|
}
|
|
85
87
|
&__link {
|
|
86
88
|
position: relative;
|
package/feeds/google-shopping.js
CHANGED
|
@@ -19,7 +19,7 @@ const COUNTRIES_SIZE_SYSTEMS = {
|
|
|
19
19
|
GB: 'UK'
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
async function googleShoppingFeed(axios, config, availableStores, country) {
|
|
22
|
+
async function googleShoppingFeed(axios, config, availableStores, country, endSlug = '') {
|
|
23
23
|
const { data } = await axios.get(`${config.LOCAL_API_URL}/feed/products?host=${config.HOST_NAME}&country=${country || ''}`);
|
|
24
24
|
const spliceFirstImage = images => (images || []).splice(0, 1)[0];
|
|
25
25
|
const getImages = images => (images || []).length > 0 ? images : null;
|
|
@@ -50,7 +50,7 @@ async function googleShoppingFeed(axios, config, availableStores, country) {
|
|
|
50
50
|
const description = `${product.description || product.fabricInfoShort || product.name || ''}`
|
|
51
51
|
.replace(/ /g, ' ')
|
|
52
52
|
.replace(/·/, '·');
|
|
53
|
-
let link = `https://${config.HOST_NAME}/${product.brand.alias}/${product.productType.alias}/${product.alias}?color=${sp.color.alias}`;
|
|
53
|
+
let link = `https://${config.HOST_NAME}/${product.brand.alias}/${product.productType.alias}/${product.alias}${endSlug || ''}?color=${sp.color.alias}`;
|
|
54
54
|
if (sp.multipackQty) {
|
|
55
55
|
link = `${link}&multipack=${sp.SKU}`
|
|
56
56
|
}
|