Skip to content

burnbright/silverstripe-shop-taxframework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tax Framework for the SilverStripe Shop module

Tax is a fee that a merchant collects from the customer by law for the government. Some governments have different tax rates for different kinds of products

Requirements

  • Shop module v0.9

Installation

  • Put the shop_taxframework folder into your SilverStripe root directory
  • Add the TaxFrameworkModifier to your modifiers config, eg:
    Order::set_modifiers(array(
        'TaxFrameworkModifier'
    ));
  • You need to use the new SteppedCheckout system to allow customers to set their address before tax is calculated. To enable steps add the following to your mysite/_config.php file:
    SteppedCheckout::setupSteps();

Note that you will also need to update your CheckoutPage.ss template to be more like the SteppedCheckoutPage.ss template, found in shop/templates/Layout/.

If you need some example tax classes and rates to populate your site for testing/development, you can run the task: yoursite.tld/dev/tasks/PopulateTaxClassesTask

Shipping Tax

If the ShippingFramework is installed also, tax will be applied to shipping. The default tax class will be used, unless there exists a tax class named 'shipping'. Using a 'shipping' tax class can enable different tax rates for shipping, or no tax at all.

Further Documentation

See the docs/en folder.

About

More advanced tax calcualtions, by region and using tax classes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages