This plugin adds variables with data from Joomla JoomShopping categories and products, which can be processed by the main WT SEO Meta templates plugin. The plugin parameters allow you to set a single template for all categories and / or products, according to which the text of the <title> tag and the text of the meta-description tag will be formed. If the plugin parameters are disabled completely, the it will simply generate variables that you can use when filling in the <title> and meta-description manually.
For this plugin to work, you need to install the main plugin WT SEO Meta templates
If this parameter is enabled, suffixes with page numbers will always be added, even if global SEO formulas are disabled and not used. In this case, suffixes will be added to the title and / or description of the product category and product lists of the manufacturer specified in the JoomShopping category/manufacturer settings.
The plugin can add suffixes to <title> and meta description pagination pages in product categories and product lists of the manufacturer.
If you have a multilingual website, then you can create language constants, for example, WT_SEO_META_TEMPLTATES_PAGIN_TITLE_SFX
for <title> and WT_SEO_META_TEMPLTATES_PAGIN_META_DESC_SFX
for meta description. Then create these language constants for the desired site language in Extensions → Languages → Overrides.
The value of constants must contain "%s"
, which will be replaced by the current page number. For example, "- page %s"
If you have a website in only one language, you can delete the default values and immediately write "- page %s"
<title> template for the JoomShopping productThis is a your own seo template for product <title> in JoomShopping. For example, "Buy {JSHOP_PRODUCT_NAME} for {JSHOP_PRODUCT_PRICE}. {VM_PRODUCT_QTY} still in stock", or any other.
Template meta description for the JoomShopping productThis is a your own seo template for product meta-description in JoomShopping.
To use this functionality, you need experience with PHP and at least a basic familiarity with the Joomla API.
Sometimes there is a need to create your own SEO variables for formulas in the <title> and meta description of the site. To do this, create a folder customvariables
in the plugin directory plugins/system/wt_seo_meta_templates_joomshopping
and in it one or more php files in which add new SEO variables or change existing ones.
File plugins/system/wt_seo_meta_templates_joomshopping/customvariables/customvariable.php
<?php /** * @package WT SEO Meta Templates * @subpackage WT SEO Meta Templates - JoomShopping * @version 1.4.0 * @Author Sergey Tolkachyov, https://web-tolk.ru * @copyright Copyright (C) 2022 Sergey Tolkachyov * @license GNU General Public License v3.0 * @since 1.0 */ // No direct access defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; /** * Here we PERFORM ALL CHECKS on categories or products as we need to INDEPENDENTLY, * in order not to try, for example, to get information about a product in the form of a category, etc. */ // Add a new custom variable $variables[] = [ 'variable' => 'JSHOP_CUSTOM_VARIABLE', 'value' => 'Custom value for SEO variable', ]; /** * Change a varibale */ for ($i = 0; $i <= count($variables); $i++) { if ($variables[$i]['variable'] == 'JSHOP_CATEGORY_NAME') { $variables[$i]['value'] = $variables[$i]['value'] . ' + CUSTOM VALUE FROM CUSTOM FILE'; } }
The provider plugin variables are only available on JoomShopping pages. In templates, you can use variables from all plugin providers whose variables are available globally. For example, MyCitySelector variables (names of cities, regions, countries).