WT SEO Meta templates - JoomShopping


    WT SEO Meta templates - JoomShopping

    WT SEO Meta templates - JoomShopping

    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.

    Description

    For this plugin to work, you need to install the main plugin WT SEO Meta templates

    SEO Variables from Joomla JoomShopping product for template

    • {JSHOP_PRODUCT_ID} - JoomShopping product ID
    • {JSHOP_PRODUCT_EAN} - EAN
    • {JSHOP_PRODUCT_MFG_CODE} - Manufacturer code
    • {JSHOP_PRODUCT_QTY} - Product quantity in stock
    • {JSHOP_PRODUCT_NAME} - Product name
    • {JSHOP_PRODUCT_WEIGHT} - Product weight
    • {JSHOP_PRODUCT_OLD_PRICE} - Product old price with currency
    • {JSHOP_PRODUCT_PRICE} - Product price with currency
    • {JSHOP_PRODUCT_MIN_PRICE} - Product minimal price with currency.
    • {JSHOP_PRODUCT_CATEGORY_NAME} - Product category name.
    • {JSHOP_PRODUCT_RATING} - Product rating.
    • {JSHOP_PRODUCT_HITS} - Product hits.
    • {JSHOP_PRODUCT_SHORT_DESC} - A short description of the product. Can be used for autofill meta description.

    SEO Variables from Joomla JoomShopping product category for template

    • {JSHOP_CATEGORY_NAME} - Category name
    • {JSHOP_CATEGORY_ID} - Category ID
    • {JSHOP_PARENT_CATEGORY_NAME} - Parent category name

    Adding "- page NNN" to pagination pages

    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"

    Plugin settings overview

    Meta tags templates for JoomShopping categories

    Category <title> tag
    Override all <title> categories globally using the template
    If enabled - all the Joomla JoomShopping categories <title> will be replaced by seo tempalte
    Override only empty <title> categories by the template.
    This means if the META-title field in the JoomShopping category is not filled in.
    <title> tag template for JoomShopping categories
    This is a your own seo template for categories <title> tag in JoomShopping.
    Categories Meta-description
    Override the template globally for all meta description categories
    If enabled - all the Joomla JoomShopping categories meta descriptions will be replaced by seo tempalte
    Override only empty meta description categories by the template.
    This means if the META-description field in the category is not filled in.
    Categories meta description template
    This is a your own seo template for categories meta description in JoomShopping.

    Meta tags templates for JoomShopping products

    <title> tag for product
    Override the template globally for all products <title>
    If enabled - all the Joomla JoomShopping products <title> will be replaced by seo tempalte
    Override only empty <title> products by the template.
    This means if the META-title field in the product is not filled in.

    <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.

    Meta-description for products
    Override the template globally for all meta description products
    If enabled - all the Joomla JoomShopping product meta-descriptions will be replaced by seo tempalte
    Override only empty meta description products by the template.
    This means if the META-description field in the product is not filled in.

    Template meta description for the JoomShopping productThis is a your own seo template for product meta-description in JoomShopping.

    Creating your own SEO variables or overriding existing ones

    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.

    Sample php file for custom SEO variables

    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';
    	}
    }
    

    Please note!

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

    Joomla

    Extension type:
    Plugin
    Folder:
    System
    Joomla version:
    , 3.9, 3.10, 4.1, 4.2, 4.3, 5.0.0

    What's new

    Joomla 5 ready

    Addition
    Upgrade to Joomla 4 / Joomla 5 architecture. This means that the plugin will also work on Joomla 6.

    Removing Joomla 3 support

    Remove
    The plugin will not work on Joomla 3.

    Changelog url

    Addition
    The Changelog url has been added so that you can view the list of changes to the new version before updating directly in the Joomla admin panel.

    WebTolk Joomla Extensions

    78 Extensions
    11 Categories
    330 Versions released
    309931 Downloads
    Cart
    Cart is empty