diff options
| author | Andrea Ulliana <aul@odoo.com> | 2019-03-06 09:37:23 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-03-29 16:33:15 +0000 |
| commit | ce1da231b9c84d1b4e06b265ee7b1a6d89bf51ea (patch) | |
| tree | 3eaf1e7b1ff5eb513d7b0e5ea58488313ac794ee /addons/website/views/snippets.xml | |
| parent | c26eb41f9e1999b8be188471f34bf08a7d4adb96 (diff) | |
[IMP] website_sale, *: add products searchbar snippet
* website
When the e-commerce is installed, you can now add a new snippet that can
be dropped anywhere: a search bar to search for products with an
autocomplete feature.
That snippet is also used as default "/shop" search bar. Finally,
you have the possibility to customize the snippet via snippet options.
task-1866973
closes odoo/odoo#30366
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Co-authored-by: qsm-odoo <qsm@odoo.com>
Diffstat (limited to 'addons/website/views/snippets.xml')
| -rw-r--r-- | addons/website/views/snippets.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml index 1eb191f41c5..93817baa570 100644 --- a/addons/website/views/snippets.xml +++ b/addons/website/views/snippets.xml @@ -893,11 +893,13 @@ <template id="external_snippets" inherit_id="website.snippets" priority="8"> <xpath expr="//div[@id='snippet_feature']//t[@t-snippet][last()]" position="after"> <t t-install="website_twitter" string="Twitter Scroller" t-thumbnail="/website/static/src/img/snippets_thumbs/s_twitter_scroll.png"/> + <t id="s_products_searchbar" t-install="website_sale" string="Products Search" t-thumbnail="/website/static/src/img/snippets_thumbs/s_products_searchbar.png"/> </xpath> <xpath expr="//div[@id='snippet_content']//t[@t-snippet][last()]" position="after"> <t t-install="website_event" string="Local Events" t-thumbnail="/website/static/src/img/snippets_thumbs/s_local_events.png"/> <t t-install="website_mail_channel" string="Discussion Group" t-thumbnail="/website/static/src/img/snippets_thumbs/s_button_channel_subscribe.png"/> <t t-install="mass_mailing" string="Newsletter" t-thumbnail="/website/static/src/img/snippets_thumbs/s_newsletter_subscribe_form.png"/> + <t id="s_products_searchbar_input" t-install="website_sale" string="Products Search Input" t-thumbnail="/website/static/src/img/snippets_thumbs/s_products_searchbar.png"/> </xpath> </template> |
