i have created custom tax module but the method ''calculateTaxForOrder is not getting called.., i need to print the following line 'in calculateTaxForOrder Method................. ' and show the tax as per the logic on screen. Please help..
CalculateTax.java
@SuppressWarnings("deprecation")
public class CalculateTax implements TaxModule {
@Override
public Order calculateTaxForOrder(Order order) throws TaxException {
System.out.println("in calculateTaxForOrder Method.................");
//Some business logic
}
return order;
}
ApplicationContext.xml
<bean id="gCommerceTaxModule" class="com.gcommerce.tax.CalculateTax">
</bean>
<bean class="org.broadleafcommerce.core.pricing.service.workflow.TaxActivity">
<property name="taxModule" ref="gCommerceTaxModule"/>
</bean>
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.