#91

Product support

Visit this product's website for support.

Categories

  • Marketing

The plugin extends Shopaholic plugin functionality and allows to:

  • Create tags, assign names and descriptions to them
  • Bind tags to a category of products
  • Bind products to a tag
  • Bind tags to a static URL of a filter

Using the plugin’s components it’s possible to: create a tag page, that displays the list of products binded to that tag; display a list of tags for a category of products; filter lists of products by tags.

Get involved and contribute to the project

If you're interested in improving this project you can help in the following ways:

  • Reporting bugs and recommending new features on our plugin GitHub issues page; Contributing to the project following these instructions;

License

© 2017, LOVATA Group, LLC under GNU GPL v3.

Developed by Andrey Kharanenka.

These plugin(s) are required for the plugin:

Tag form

The full plugin documentation is abailable here.

TagList component

The component allows to work with TagCollection class objects.

Method list

make($arElementIDList = null)

Example: render tag list

Get collection of tags, apply sorting + filter by flag "active" + filter by category ID

{% obCategory = CategoryPage.get() %}

{% set obTagList = TagList.make().sort().active().category(obCategory.id) %}
{% if obTagList.isNotEmpty() %}
    <div class="tag-list-wrapper">
        {% for obTag in obTagList %}
            <div data-id="{{ obTag.id }}">
                <h1>{{ obTag.name }}</h1>
                {% if obTag.preview_image is not empty %}
                    <img src="{{ obTag.preview_image.path }}" title="{{ obTag.preview_image.title }}" alt="{{ obTag.preview_image.alt }}">
                {% endif %}
                <div>{{ obTag.preview_text }}</div>
            </div>
        {% endfor %}
    </div>
{% endif %}

TagPage/TagData component

The component allows to work with TagItem class objects.

Usage example:

[TagPage]
slug = "{{ :slug }}"
==

{# Get tag item #}
{% set obTag = TagPage.get() %}
<div data-id="{{ obTag.id }}">
    <h1>{{ obTag.name }}</h1>
    {% if obTag.preview_image is not empty %}
        <img src="{{ obTag.preview_image.path }}" title="{{ obTag.preview_image.title }}" alt="{{ obTag.preview_image.alt }}">
    {% endif %}
    <div>{{ obTag.description|raw }}</div>
</div>

Extension ProductCollection class

Tags for Shopaholic plugin adds method:

tag($iTagID)

  • $iTagID - tag ID

Method applies a filter by the tag ID.

    $obList = ProductCollection::make()->tag(2);
1.0.1

!!! Adding additional cache cleaning for the sorted list of tags, after the creation of a new tag. Requires Toolbox plugin version 1.3.0 and later.

Jan 08, 2018

1.0.0

Initialize plugin.

Dec 08, 2017