2

I have the followed the steps to create a custom tax service for ucommerce. For arguments sake i want to tax everyting at $500. It would seem to me that the TaxService is not being called.

../UCommerce/Configuration/Components

<component id="TaxService"
    service="UCommerce.Catalog.ITaxService, UCommerce"
    type="AMS101.UCommerceCustomisation.CalculateTaxService, AMS101"
    lifestyle="Singleton"/>

Implement ITaxService

public class CalculateTaxService :ITaxService{
        public Money CalculateTax(Product product, PriceGroup priceGroup, PriceGroupPrice unitPrice) {
            return new Money( 500m, Currency.FirstOrDefault( x => x.ISOCode == "AUD" ) );
        }
    }

removed line from basket config

<!--<value>${Basket.CalculateOrderLineTax}</value>-->

would really appreciate any help.

Charles
  • 50,943
  • 13
  • 104
  • 142
Kieran
  • 17,572
  • 7
  • 45
  • 53
  • 1
    see work around http://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/24826-VAT-Calculation?p=0#comment126662 – Kieran Sep 17 '12 at 06:04

1 Answers1

1

Did you try recycling the app pool after making the change to the config file. It might be a simple matter of a stale config being used.

Søren Spelling Lund
  • 1,622
  • 1
  • 13
  • 18
  • Thanks soren as you mentioned on another site it is a bug you will have fixed in version 3. http://our.umbraco.org/projects/website-utilities/ucommerce/ucommerce-support/32141-No-VAT-on-orders-from-non-EC-countries – Kieran Sep 17 '12 at 06:04