Free Scaling Retail Business Guide

SEO Templates

Overview

Increase your pages click-through-rate with our SEO Templates addon. It offers SEO templates for products, categories, images, pages, and blog posts to help you optimize important meta data of your website.

You can specify a page title, meta description, meta keywords, alternative text, and SEO name for the main image with minimum efforts involved. It will free you from manually inserting all these data for each and every item in your store.

SEO Templates in CS-Cart Addon

The page title and meta description influence the decision of the searcher as to whether they want to click through on your content from search results or not. The more descriptive, attractive and relevant the description, the more likely someone will click through.

So meta data are one of the most important on-page ranking factors and should be treated with care.

Description with SEO Templates

Take your SEO strategy to the next level with the SEO Templates add-on! Follow the guidelines below.

Important

Important
Once you create SEO templates, you will need to apply them via a cron script on your server. If you have any difficulties with it, please contact your server administrator or contact us for help.

Alternatively, you can apply templates via admin panel:

Key features

  • SEO templates for products, categories, images, pages, and blog posts;
  • Automatically assigned Page title, Meta description, Meta keywords, ALT text of the main image, and SEO name;
  • Ability to overwrite the old metadata;
  • Updating templates via cron on the server or manually in the admin panel;
  • Ability to select the metadata that will be overwritten;
  • Extensive list of placeholders used in a SEO template;
  • Ability to clone templates;
  • SEO templates created by vendors;
  • Ability to create a 301 redirect from old URLs;
  • Ability to restrict the length of a SEO name;
  • Automatic removal of leading and trailing spaces;
  • Automatic addition of a space between multiple placeholders.

Compatibility

The addon is compatible with CS-Cart and Multi-Vendor 4.5 and above, but only versions 4.11.x, 4.12.x and 4.13.x are supported.

Note
The SEO Templates add-on is incompatible with the default HiDPI displays support add-on.

Support

This addon is developed and published by Simtech Development Ltd., a CS-Cart developer. You are guaranteed a quality add-on supported by the future versions. If you need help, please contact us via our help desk system.

Demo

Check out the SEO Templates add-on in our demo store.

Note
Every half an hour the demo store is reset to the default state.

Managing SEO Templates in the admin area

Installing the add-on

Install the SEO Templates addon on the add-ons list page (Add-ons → Manage add-ons). Click the + button in the top right corner, select an archive and click Upload & install. You can now find the installed add-on in the list of installed add-ons, just make sure it is set to Active.

Our Addon

Setting up the add-on

  • License key—Enter the license key to activate the add-on. You will receive this key in the order confirmation email. You can also see license keys for all your purchased add-ons in your HelpDesk account. Log in to HelpDesk, and navigate to the Licenses section:
Where to find licence number

  • Rename the product images according to the SEO template.—If enabled, the products images of your store will be renamed according to the SEO template.

Creating a SEO template for products/categories/pages

To create a SEO template, follow these steps:

  1. Navigate to Website → SEO Templates.
  2. Click the + button in the top right and select the appropriate template:
  • Select template for products if you want to create a template for products.
  • Select template for categories if you want to create a template for categories.
  • Select template for pages if you want to create a SEO template for pages or blog posts.
  1. Fill in the provided fields. The placeholders on the left should help you. You can also use twig.
How to configure SEO templates for Meta Tags

Note
While filling in the fields, except for the Name field, the TRIM function is applied automatically. It removes both leading and trailing spaces from text, and also “normalizes” multiple spaces between words to one space character only. When you add multiple placeholders to the field, a space between them is added automatically.

Name—Enter a name for the SEO template.

Store—Select an appropriate storefront if you are using CS-Cart with multiple storefronts.

Note
If you are creating a SEO template for products shared among multiple stores, such products will have their own template in each store.

Page title—It is the main text that describes a web page. It appears at the top of a browser’s window.

Templates for Titles

Page titles also show up in the search engine results as the links that potential visitors will click on.

Templates for Titles in Google SERP

Meta description—It is the short paragraph of text placed in the HTML of a webpage that describes its content. The meta description will then appear under your page’s URL in the search results. The more descriptive, attractive and relevant the description, the more likely someone will click through.

Templates for Description on Google Serp

The meta description will also appear when shoppers share your products in social networks.

OG tags

Meta keywords—It is one of meta tags that you can insert into your web pages to provide search engines with information about your pages that isn’t visible on the page itself. Be sure that each keyword accurately reflects the content of your pages.

ALT text of the main image—The alt attribute also adds SEO value to your website. It helps your website achieve better rankings in the search engines by associating keywords with images.

SEO name—Use this field for search engine optimization to boost your website’s presence and ensure you gain relevant and consistent organic traffic.

Note
In Multi-Vendor stores, you can also select the vendor whose products you want to update. For example, if you select None, products of all vendors will be updated. If you select a particular vendor (Acme, for example), only his products will be updated.
  1. Click Create.
  2. Switch to the Conditions tab.
Conditions

Here, you can add products, categories, or pages this template should be applied for. Simply click Add condition, choose the type (products, categories, or pages), click Add categories or Add product or Add pages and select the desired ones.

The rest of the settings are explained in the Applying a SEO template to products, categories or pages section.

Tip
You can preview a product the way it will look in the search results by going to Products → Products, select a desired product, switch to the SEO tab and have a look at the Google rich snippets preview section.

Applying a SEO template to products/categories/pages

Once you’ve created a SEO template, you will need to apply it to products/categories/pages. Follow these steps:

Step 1. Configuring a template

In the admin panel:

  1. Open the required SEO template and switch to the Update tab.

Configure the following settings:

Override filled fields—If selected, the meta data and alternative text for images defined for specific products/categories/pages will be overridden with the values specified for the template.

For example, you’ve already specified meta data and alternative text for images for a product on its detailed page:

but you want to override it with the values set in this template, check the Override filled fields box. If not, leave this box empty.

  1. After that, select the checkboxes with the fields that you want to update.

Update page title—If enabled, the page title will be updated. Disable it if you do not want to update the page title.

Update meta description—If enabled, the meta description will be updated. Disable it if you do not want to update the meta description.

Update meta keywords—If enabled, the meta keywords will be updated. Disable it if you do not want to update the meta keywords.

Update ALT text of the main image—If enabled, the ALT text of the main image will be updated. Disable it if you do not want to update it.

Update SEO name—If enabled, the SEO name will be updated. Disable it if you do not want to update it.

To create SEO names, the SEO Templates add-on interacts with the standard SEO add-on. It automatically replaces spaces with “-”, as well as unsafe characters.

Note
To create SEO names, the SEO Templates add-on interacts with the standard SEO add-on. It automatically replaces spaces with “-”, as well as unsafe characters.
  1. Switch to the Conditions tab and pick categories, products, or pages you want the template to be applied to.
Tip

If you want to apply the template to all products, select all categories.

  1. Click Save.
  2. On the SEO Templates page have a look at the note on the right.

It contains a command that you should run on your server to apply the changes in the templates. You can set up a cron job to run it according to a schedule (for example, every day, every month) so that you won’t need to apply the new changes manually every time.

Step 2. Applying templates

You can apply templates in two ways:

1. Running a cron

Run the following command on the server:

php /path/to/cart/admin.php –dispatch=seo_pack_cron.apply –cron_password=CRON_PASSWORD

where:

path/to/cart is the path to your website

CRON_PASSWORD is the access key to cron script that you can find under Settings – Security settings.

Note
We recommend applying SEO templates via a cron script on your server. If you have any difficulties with it, please contact your server administrator or contact us for help.
Important
Disable the templates if you don’t want them to be applied.

2. Via admin panel

On the SEO templates page, hover the mouse pointer over a template you want to apply and select Generate under the gear button.

Alternatively, you can select Generate on the template details page.

The process will start.

Once it’s complete, you will see a corresponding notice.

Creating a SEO template for all products of the main category

You can create a SEO template for the main category. In that case, the SEO template will be applied to the products in the main category and subcategories.

  1. Open Settings > General, find the Show products from subcategories of the selected category setting.

Make sure that it is active. If not, select the checkbox and click Save. You can disable it later when the SEO CRON job is complete.

  1. Open Website > SEO templates and create a Template for products.

  1. In the General tab, fill in the provided fields.

  1. Open the Conditions tab and click Add condition.

  1. Choose Categories and click Add categories.

  1. Choose the category of the highest level and click Add categories.

  1. Click Save.

Creating a SEO template for images

To create a SEO template for images, follow these steps:

  1. Navigate to Website → SEO Templates.
  2. Click the + button in the top right and select the Template for product images.

  1. Enter a name for the SEO template.
  2. In the Product image name field, create a template using placeholders on the left.
Note

If the SEO name placeholder is NOT available to you, make sure you enabled the default SEO add-on.

Note

While filling in the fields, except for the Name field, the TRIM function is applied automatically. It removes both leading and trailing spaces from text, and also “normalizes” multiple spaces between words to one space character only. When you add multiple placeholders to the field, a space between them is added automatically.

  1. Click Create.
  2. Switch to the Update tab.
  • Update product image name—If enabled, the names of product images will be updated according to the template.

  1. Switch to the Conditions tab.

Here, you can add products and categories this template should be applied for. Simply click Add condition, choose categories or products, then click Add categories or Add product and select the desired ones.

  1. Click Save.
  2. Hover the mouse pointer over the template and under the appeared gear button select Generate.

  1. Once the template is applied, you will see the result.

Alternatively, you can set up a cron to update product image names automatically.

Translating a SEO template into another language

In order to translate a SEO template:

  1. Open the SEO template you’d like to translate. Switch the language to the required one.

  1. Translate the language variables into the target language and save the changes.

Creating templates using twig

Twig is a template engine that will allow you to write readable SEO templates using placeholders. You can write desired conditions, capitalize words, replace elements, join elements, etc.

Twig defines three types of special syntax:

{{ ... }}

“Says something”: prints a variable or the result of an expression to the template.

{% ... %}

“Does something”: a tag that controls the logic of the template; it is used to execute statements such as for-loops for example.

{# ... #}

“Comment something”: it’s used to add single or multi-line comments. The content of the comments isn’t included in the rendered pages.

Twig also contains filters, which modify content before being rendered. See the following examples:

  1. Uppercase
{{ 'example'|upper }} → EXAMPLE
  1. Lowercase
{{ 'EXAMPLE'|lower }} → example
  1. Capitalize
{{ 'example'|capitalize }} → Example
  1. If the price is 0, don’t use the price
{% if price %} {{ price }} {% endif %}
  1. If the feature is not specified, don’t use the feature. It allows you to avoid spaces between commas.
{% if feature_example %} {{ feature_example }} {% endif %}

, where *{{ feature_example }}* is a feature.

For further information, please read Twig documentation.

How to allow/forbid vendors to create SEO templates

You may want to allow some of the vendors to create and edit SEO templates, while you want to forbid this for other vendors. You can do so in the following way:

  1. Go to Customers > User groups.
  2. Pick the existing user group or create a new one with the Administrator type.
  3. Open the Privileges tab and select the Manage SEO Templates checkbox if you want to allow vendors in this group to manage SEO templates or clear the checkbox if you want the opposite.

  1. Click Save.

Compatibility with Common Products

The add-on is adapted to the Common Products add-on. Perform the following settings to ensure the consistent compatibility of the add-ons:

  1. Open SEO-Templates tab of the Website Menu on the Admin pannel

  1. Create a new/open an existing Template for product
  2. Select ‘none in the Vendor field, fill in the meta descriprion and page title, mark ‘Override filled fields’, ‘Update meta descriptions’ and ‘Update page title’ fields on the Update tab.

  1. Create a new product in a Products tab and select ‘All vendors (common products)’ in the Vendors fields

  1. Log in as a vendor and select a newly created product in the Products -> Products that vendors can sell tab
  2. Return to the main Admin Pannel and start the Template generation

How to share a SEO template among vendors

Say, you created a SEO template for Vendor A, and now you want to make this template available to Vendor B. You do not want to configure it from scratch one more time, do you? Therefore the add-on introduces an ability to clone templates for further editing. Simply follow these steps:

  1. Go to Website > SEO Templates.
  2. Hover the mouse pointer over the template you want to clone and select Clone under the gear button.

  1. The template will be cloned with the [CLONE] postfix and you will find yourself on its detailed page. It will have a Disabled status.
  2. Adjust the settings, select another vendor if necessary. Set the status to Active.

  1. Click Save.

Read more: eCommerce SEO Trends for 2024

Share: