nerds-and-company/schematic-commerce

Synchronize Commerce settings with Schematic

1.0.2 2017-05-09 08:12 UTC

This package is not auto-updated.

Last update: 2024-10-27 01:40:40 UTC


README

Schematic for Commerce is a package for synchronizing Commerce settings with Schematic.

Installation

This tool can be installed using Composer. Run the following command from the root of your project:

composer require nerds-and-company/schematic-commerce

This will add nerds-and-company/schematic-commerce as a requirement to your project's composer.json file and install the source-code into the vendor/nerds-and-company/schematic-commerce directory.

Usage

This package should be loaded with a Craft plugin, which implements the registerMigrationService() hook of Schematic:

use NerdsAndCompany\Schematic\Commerce\Services as Commerce;

public function registerMigrationService()
{
    return [
        'commerce_orderSettings' => new Commerce\OrderSettings(),
        'commerce_emails' => new Commerce\Emails(),
        'commerce_orderStatuses' => new Commerce\OrderStatuses(),
        'commerce_paymentMethods' => new Commerce\PaymentMethods(),
        'commerce_paymentCurrencies' => new Commerce\PaymentCurrencies(),
        'commerce_taxCategories' => new Commerce\TaxCategories(),
        'commerce_shippingCategories' => new Commerce\ShippingCategories(),
        'commerce_productTypes' => new Commerce\ProductTypes(),
        'commerce_countries' => new Commerce\Countries(),
        'commerce_states' => new Commerce\States(),
        'commerce_taxZones' => new Commerce\TaxZones(),
        'commerce_taxRates' => new Commerce\TaxRates(),
        'commerce_shippingZones' => new Commerce\ShippingZones(),
        'commerce_shippingMethods' => new Commerce\ShippingMethods(),
    ];
}

Here is a list of all of the supported Commerce data types:

License

This project has been licensed under the MIT License (MIT). Please see License File for more information.

Changelog

CHANGELOG.md