https://github.com/nerds-and-company/schematic-commerce
Schematic for Commerce
https://github.com/nerds-and-company/schematic-commerce
craft-commerce craftcms craftcms-plugin schematic
Last synced: about 2 months ago
JSON representation
Schematic for Commerce
- Host: GitHub
- URL: https://github.com/nerds-and-company/schematic-commerce
- Owner: nerds-and-company
- License: mit
- Created: 2017-04-18T12:57:52.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-21T07:01:31.000Z (over 7 years ago)
- Last Synced: 2025-07-28T03:07:55.918Z (8 months ago)
- Topics: craft-commerce, craftcms, craftcms-plugin, schematic
- Language: PHP
- Size: 92.8 KB
- Stars: 2
- Watchers: 11
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Schematic for Commerce [](https://scrutinizer-ci.com/g/nerds-and-company/schematic-commerce/?branch=master) [](https://travis-ci.org/nerds-and-company/schematic-commerce) [](https://scrutinizer-ci.com/g/nerds-and-company/schematic-commerce/?branch=master)
Schematic for Commerce is a package for synchronizing Commerce settings with [Schematic](https://github.com/nerds-and-company/schematic).
## Installation
This tool can be installed [using Composer](https://getcomposer.org/doc/00-intro.md). 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:
```php
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:
| Data Type |
| ------------- |
| Order Settings |
| Order Statuses |
| Emails |
| Payment Methods |
| Payment Currencies |
| Product Types |
| Countries |
| States |
| Tax Categories |
| Tax Rates |
| Shipping Categories |
| Shipping Zones |
| Shipping Methods |
## License
This project has been licensed under the MIT License (MIT). Please see [License File](LICENSE) for more information.
## Changelog
[CHANGELOG.md](CHANGELOG.md)