Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding a additional attributes parameters into autocomplete product c… #302

Conversation

delyriand
Copy link

…lasses for load product data additional to change display.

Use di.xml for adding your custom attributes :

<type name="Smile\ElasticsuiteCatalog\Model\Autocomplete\Product\DataProvider">
        <arguments>
            <argument name="additionalAttributes" xsi:type="array">
                <item name="my_custom_attribute" xsi:type="string">custom_attribute</item>
            </argument>
        </arguments>
</type>

and use my_custom_attribute key into template file to display it.

…lasses for load product data additional to change display.
@afoucret afoucret merged commit 12c8360 into Smile-SA:2.3.x Jan 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants