Tag editor

Tag editor for Shop-Script 7

Tags SEO: TITLE, META, URL, Sitemap, OpenGraph.

Tags SEO with “Tag editor” plugin

+ Add META tags description and keywords.

+ Save custom H1 and TITLE.

+ Enter automatically generated H1, TITLE, and META using Smarty templates.

+ Add 2 SEO descriptions: at the top and at the bottom of tag pages.

+ Change default tag URL to a custom one.

+ Add OpenGraph МЕТА tags to tag pages.

+ Delete empty tags that are not used any more.

+ Select your own product sort order on tag pages.

+ Add links to tags to the Sitemap file.

+ Add mini tag clouds to product categories and search results page.

+ Improve the default tag cloud to show only valid tags in each storefront.



How to use custom tag URLs in storefront

To do so, 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

$wa->shop->tags(...)

and change it as shown below

shopTageditorPlugin::tags($wa->shop->tags(...))



2. Changing product-viewing pages

Find the following code snippet in your design editor

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

and change it as shown below

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



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):

{shopTageditorPlugin::cloud()}

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

Example:

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

Adjust the custom tag cloud appearance using CSS.