Skip to main content

Beta License: LGPL-3 OCA/e-commerce Translate me on Weblate Try me on Runbot

Adds a new snippet to show e-commerce categories

Table of contents

Configuration

You can select what categories can be shown by the snippet and an image for the category:

  1. Go to website (backend) > Configuration > Products > eCommerce Categories

  2. Create or Edit one

  3. You can see two new options “Website Published” and “Category Image”

Usage

  1. Go to website (frontend)

  2. Press ‘Edit’ button

  3. Drag the ‘Product Category’ snippet to the place of the website that you want

  4. Save changes

Theming

CSS Classes:

  • .categ_container > The container per master category

  • .categ_scroll_wrapper > The scrollable container wrapper

  • .categ_scroll > The scrollable container

  • .categ_tree_level > The category row (image + text)

  • .main_tree_level > The first category row level displayed

  • .categ_link > The link of the category row

  • .categ_img > The container of the icon of the category row

You can use ‘data-tree-level’ attribute to select the category row of a selected level (1-4 by design).

Also you can replace the entire template replacing the data-template attribute value in the s_product_category_options view. You only need know that the name of the variable that have all the categories is called object.

Known issues / Roadmap

  • The snippet shows a maximum of 4 levels by design.

  • Add a option to configure the initial level

  • Add a option to select how many levels can be represented

  • Handle large amounts of categories

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Tecnativa

Contributors

  • Tecnativa:

    • Alexandre D. Díaz

    • Pedro M. Baeza

Other credits

static/img/boxes_32.png - https://www.iconninja.com/box-mario-icon-30561

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

Tardo

This module is part of the OCA/e-commerce project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Release files for odoo12-addon-website-snippet-product-category 12.0.1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo12-addon-website-snippet-product-category 12.0.1.2.0
File Interpreter ABI Platform
odoo12_addon_website_snippet_product_category-12.0.1.2.0-py3-none-any.whl Python 3 none any Details

Release files / odoo12_addon_website_snippet_product_category-12.0.1.2.0-py3-none-any.whl

Download URL odoo12_addon_website_snippet_product_category-12.0.1.2.0-py3-none-any.whl
Size 37.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50fe9b7b9c8fd7609e1a8623b79ff635e480d0577d0ee827da6b56aa61870d52
BLAKE2b-256 checksum
How to use checksums
2dbeebe501d47148b8e1d62d47977d49b364c5ffc9a9d61789e431865b47e17b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page