Last active
January 20, 2019 23:23
-
-
Save steveosoule/57e5ae60f35bf8e8268b20b6822098aa to your computer and use it in GitHub Desktop.
Miva - XML Provisioning: Combination Facet Product Import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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