PHP code example of nerds-and-company / schematic-commerce

1. Go to this page and download the library: Download nerds-and-company/schematic-commerce library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

nerds-and-company / schematic-commerce example snippets


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(),
    ];
}