Skip to content

Commit bc4f283

Browse files
authored
Update product-to-tiny.js
1 parent 5a9fe5c commit bc4f283

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

functions/lib/integration/parsers/product-to-tiny.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ module.exports = (product, originalTinyProduct, appData, storeId) => {
8989
tinyProduct.marca = product.brands[0].name
9090
}
9191
if (product.category_tree) {
92-
tinyProduct.categoria = product.category_tree.replace(/\s?>\s?/g, ' >> ')
92+
tinyProduct.categoria = product.category_tree.replace(/\s?>\s?/g, ' >> ').replace(/&+/g, 'e')
9393
} else if (product.categories && product.categories.length) {
94-
tinyProduct.categoria = product.categories.map(({ name }) => name).join(' >> ')
94+
tinyProduct.categoria = product.categories.map(({ name }) => name).join(' >> ').replace(/&+/g, 'e')
9595
}
9696

9797
if (product.pictures && product.pictures.length && !appData.disable_image_exportation) {

0 commit comments

Comments
 (0)