1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Magento 2: what is the catalog_attributes.xml file?

Discussion in 'Programming/Internet' started by Raphael at Digital, Aug 2, 2020.

  1. I noticed that Magento 2 contains several catalog_attributes.xml files in the following folders:

    • app/code/Magento/Bundle/etc
    • app/code/Magento/Catalog/etc
    • app/code/Magento/CatalogSearch/etc
    • app/code/Magento/CatalogUrlRewrite/etc
    • app/code/Magento/Downloadable/etc
    • app/code/Magento/GiftMessage/etc
    • app/code/Magento/Msrp/etc
    • app/code/Magento/Sales/etc
    • app/code/Magento/Tax/etc
    • app/code/Magento/Wishlist/etc

    Those files look like this (example for the Sales file):

    <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Catalog:etc/catalog_attributes.xsd">
    <group name="quote_item">
    <attribute name="sku"/>
    <attribute name="type_id"/>
    <attribute name="name"/>
    <attribute name="status"/>
    <attribute name="visibility"/>
    <attribute name="price"/>
    <attribute name="weight"/>
    <attribute name="url_path"/>
    <attribute name="url_key"/>
    <attribute name="thumbnail"/>
    <attribute name="small_image"/>
    <attribute name="tax_class_id"/>
    <attribute name="special_from_date"/>
    <attribute name="special_to_date"/>
    <attribute name="special_price"/>
    <attribute name="cost"/>
    <attribute name="gift_message_available"/>
    </group>
    </config>


    What are those files used for ?

    Login To add answer/comment
     

Share This Page