Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steveosoule/57e5ae60f35bf8e8268b20b6822098aa to your computer and use it in GitHub Desktop.
Save steveosoule/57e5ae60f35bf8e8268b20b6822098aa to your computer and use it in GitHub Desktop.
Miva - XML Provisioning: Combination Facet Product Import
<Module code="combofacets" feature="util">
<CombinationFacet_Add>
<Code>year_make_model</Code>
<Name>Year/Make/Model</Name>
<Enabled>1</Enabled>
<IncludeOtherProducts>0</IncludeOtherProducts>
</CombinationFacet_Add>
<CombinationFacetField_Add facet_code="year_make_model">
<Code>year</Code>
<Name>Year</Name>
</CombinationFacetField_Add>
<CombinationFacetField_Add facet_code="year_make_model">
<Code>make</Code>
<Name>Make</Name>
</CombinationFacetField_Add>
<CombinationFacetField_Add facet_code="year_make_model">
<Code>model</Code>
<Name>Model</Name>
</CombinationFacetField_Add>
<CombinationFacetRecord_Add facet_code="year_make_model" product_code="engine-abc123">
<CombinationFacetField field_code="year">1967</CombinationFacetField>
<CombinationFacetField field_code="make">Ford</CombinationFacetField>
<CombinationFacetField field_code="make">Mustang</CombinationFacetField>
</CombinationFacetRecord_Add>
<CombinationFacetRecord_Add facet_code="year_make_model" product_code="engine-abc123">
<CombinationFacetField field_code="year">1955</CombinationFacetField>
<CombinationFacetField field_code="make">Chevrolet</CombinationFacetField>
<CombinationFacetField field_code="make">Bel Air</CombinationFacetField>
</CombinationFacetRecord_Add>
</Module>
<Product_CustomField module="combofacets" field="year_make_model" product="engine-abc123">1967>Ford>Mustang|1955>Chevrolet>Bel Air</Product_CustomField>
@cloudcase-eu
Copy link

Hello STeven,

thank You for writing this code in XML.

Please if you can post also how to update and delete existing field_code like "year", "make", "model".
EX: inside "year", "make", "model", i have imported many values. I would like to empty all of those fields from the actual values.
So I will add from beginning values using your code above.

Thank You

Regards

Jon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment