229

Product support

Get help in the plugin support forum.

Categories

SeoCore Extension for the Shopaholic plugin

Adds to the model: Product, Category, Brand, PromoBlock to the meta relation.

Adds a Category model related to a meta template. Thus, the product category can serve as a template for the meta data of the product.

All meta data of the models have been uploaded to the cached collections of the shopaholic.

Adds a method to the product to get a meta template:

$product = ProductItem::make(1);
$product->getMetaTemplateFromTree();
Category meta

This method searches for the closest meta template up the category tree

How to use

1. For category page

title = "Category page"
url = "/catalog/category/:slug"

[CategoryPage]
==
{% set category = CategoryPage.get() %}

{% put meta %}
    {% SeoCollector model=category meta=category.meta %}
{% endput %}

2. For brand page

title = "Brand page"
url = "/catalog/brand/:slug"

[BrandPage]
==
{% set brand = BrandPage.get() %}

{% put meta %}
    {% SeoCollector model=brand meta=brand.meta %}
{% endput %}

3. For promo block page

title = "Promo page"
url = "/catalog/promo/:slug"

[PromoBlockPage]
==
{% set promoBlock = PromoBlockPage.get() %}

{% put meta %}
    {% SeoCollector model=promoBlock meta=promoBlock.meta %}
{% endput %}

4. For product page

title = "Product page"
url = "/catalog/product/:slug"

[ProductPage]
==
{% set product = ProductPage.get() %}

{% put meta %}
    {% SeoCollector
        model=product
        meta=product.meta
        metaTemplate=product.getMetaTemplateFromTree()
        params={category: product.category}
    %}
{% endput %}
1.0.1

Added required Lovata.Shopaholic

May 12, 2024

1.0.0

First version of SeoCoreForShopaholic

May 12, 2024