shoppingflux / shoppingfluxexport

7 stars 7 forks source link

Adding a new field type in the feed to describe the product hierarchy #387

Closed ghost closed 6 years ago

ghost commented 6 years ago

Expected behaviour

In a structural level, a product object might be:

Actual behaviour

There is currently no fields in the feed that allows us to know in which condition we are. For example we don't know for a specific produit in the feed if it's a combination, a product with/without combination.

The only way currently to know that is to look at the struction to see if <combination> is defined.

The goal here is therefore to add a new field for each product to identify this status.

ghost commented 6 years ago

Need to be discussed to know where this field should be added (can be in the features (for products) and attributs (for combination)) in order to appear in Shopping Feed.

ghost commented 6 years ago

We will add this field in attributes and caracteristiques

MathieuSF commented 6 years ago

Field are these one : parent or simple product : "caracteristiques" child : "attributs"

And the texte in this field could be

<caracteristiques>
     <hierararchy>simple</hierararchy>
</caracteristiques>
OU
<caracteristiques>
     <hierararchy>parent</hierararchy>
</caracteristiques>

ET

<attributs>
     <hierararchy>child</hierararchy>
</attributs>