SeoCore for Shopaholic

Extending SeoCore plugin for working on the Shopaholic

847
Free

Product support

Get help in the plugin support forum.

  • Added on May 13, 2024
  • Current version: 1.0.1
  • Platform Compatibility
    v4.x not tested
    v3.x use latest
    v2.x use latest
    v1.x incompatible
  • Created by

Categories

SeoCore for Shopaholic

Extending SeoCore plugin for working on the Shopaholic

Attention! This extension is no longer supported. This does not affect the main plugin.

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

Installation via Command Line

php artisan plugin:install CatDesign.SeoCoreForShopaholic

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