rapidez/statamic-brands

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (0.1.3) of this package.

0.1.3 2023-02-08 09:15 UTC

This package is auto-updated.

Last update: 2024-01-15 09:14:31 UTC


README

Deprecated and integrated within rapidez/statamic; please use https://github.com/rapidez/statamic

Rapidez Statamic Brands

This is a Statamic add-on used to import brands from Magento as a Statamic collection, so that the brand information can be enriched in Statamic.

Features

  • Export Brands from Magento's brand attribute options and import into Brands collection
  • Enrich brands with more information
  • Multistore support

How to Install

Install using Composer

composer require rapidez/statamic-brands

Publish the YAML settings

php artisan vendor:publish --provider="Rapidez\StatamicBrands\ServiceProvider"

Brand attribute code (optional)

The default attribute code used for brands is brand, but it is also possible that another attribute is used for this. You can change this in config/statamic-brands.php.

Multisite

When configuring your multisite for Statamic, it is important to add the stores to the sites section in the published file content/collections/brands.yaml, for example:

title: Brands
sites:
  - default
  - rapidez_nl
  - rapidez_uk
propagate: false
template: default
layout: layout
revisions: false
sort_dir: asc
date_behavior:
  past: public
  future: private

How to Use

Commands

Run the following command to run the brand import:

php artisan rapidez:statamic:sync:brands