CoreShop Taxation Bundle

Installation

$ composer require coreshop/taxation-bundle:^3.0

Adding required bundles to kernel

You need to enable the bundle inside the kernel

<?php

// app/AppKernel.php

public function registerBundlesToCollection(BundleCollection $collection)
{
    $collection->addBundles([
        new \CoreShop\Bundle\TaxationBundle\CoreShopTaxationBundle(),
    ]);
}

Updating database schema

Run the following command.

$ php bin/console doctrine:schema:update --force

Install Pimcore Entities

$ php bin/console coreshop:resources:install

Learn more about overriding Pimcore Classes here)

Usage

Doctrine Entities

  • Tax
  • TaxRule
  • TaxRuleGroup

Pimcore Entities

  • TaxItem Fieldcollection (CoreShopTaxItem)

Pimcore UI

  • Tax Item
  • Tax Rule Group

How to use?

coreshop.global.resource.open('coreshop.taxation', 'tax_item');
coreshop.global.resource.open('coreshop.taxation', 'tax_rule_group');