Tag editor

Tag editor for Shop-Script 7

Edit product tags, their TITLE, META fields, URLs.

This plugin will enable you to edit or delete any previously added product tags. Here is when this may come useful:

  • You need to improve search engine optimization of tag pages; to do so, you can publish additional text descriptions associated with your tags using this plugin, and specify custom TITLE and META tags.
  • You need to enter custom URL for some tag; e.g., to use only a limited set of letters in the URL; the search-generated traffic will be automatically redirected from the old URL to the new one without any lost of website position in search engines.
  • You mistyped a tag; now you can edit your tag instead of adding a new one.
  • You need to improve something in an existing tag; e.g., change lower case letters to the upper case or vice versa, add brackets or a comma, etc.
  • You have discontinued to sell some types of products and have deleted them, but tags associated with those old products still exist and are auto-suggested when you add tags to your new products.

Plugin features

Option to specify custom TITLE and META tags for product tags' pages in the storefront. TITLE and META fields have support for Webasyst variables and methods (Smarty). For each of these fields, you can set one default value for all tags.
— Option to enter custom URLs for tag links in the storefront (use of this option requires minot changes to your design theme as shown below).
— Arbitrary modification of any tag's text.
— Complete deletion of any tag from all products at once.
— Option to delete all product tags at once. For users with "Full" (administrator) access level.
— Protection from erroneous tag deletion.
— Fast tag search (may be useful in case of a large number of tags in your store).
— Special highlighting for tags which are not associated with any product (“lost” tags).
— Tags are sorted alphabetically by default.
— Option to embed a custom tag cloud in category pages and search results pages (including search by selected tag: /tag/***/), which includes only tags associated with products contained in selected category or those found by a search query.
— Option to change the sort order of products for all or individually selected tags in the storefront.
— Option to display all tag links on a storefront page (custom tag cloud).
Adding of tag links to sitemap.xml .

How to use custom tag URLs in storefront

To do so, you need to make changes to your design theme in 2 files: for tag cloud and for product-viewing pages.

1. Changing tag cloud

Find the following code snippet in your design editor


and change it as shown below


2. Changing product-viewing pages

Find the following code snippet in your design editor

<!-- tags -->
{if $product.tags}
    <p class="tags" id="product-tags">
        {foreach $product.tags as $t}
            <a href="{$wa->getUrl('/frontend/tag', ['tag' => urlencode($t)])}">{$t}</a>

and change it as shown below

<!-- tags -->
{if $product.tags}
    <p class="tags" id="product-tags">
        {foreach shopTageditorPlugin::tags($product.tags) as $t}
            <a href="{$wa->getUrl('/frontend/tag', ['tag' => $t.uri_name])}">{$t.name|escape}</a>

Embedding a custom tag cloud in category pages and search results pages (including search by selected tag: /tag/***/)

Add plugin method's call to design templates of category (category.html) and search results pages (search.html):


If you place plugin method call in any other storefront template file, then the cloud will contain all tags linked with at least one product.

Method {shopTageditorPlugin::cloud()} accepts 2 parameters:

  1. tag sort style:
    • 'name' — by tag name, default value
    • 'count' — by number of linked products; the more products are linked with a tag, the closer is a tag to the list
  2. number — number of tags to be displayed


{shopTageditorPlugin::cloud('count', 30)}

Adjust the custom tag cloud appearance using CSS.