nerds-and-company / schematic-commerce
Synchronize Commerce settings with Schematic
Installs: 2 422
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 12
Forks: 0
Open Issues: 2
Requires
- php: >=5.5
- nerds-and-company/schematic: ^3.8
Requires (Dev)
- phpunit/phpunit: ^4.5.0
This package is not auto-updated.
Last update: 2024-11-24 01:58:02 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.