Chose tax code in admin...
Posted: Fri May 08, 2015 5:05 am
Dear forum members,
I'm banging my head against walls and wanna achieve sth really simple (and well documented): I wanna add a simple tax provider enabling me to chose the tax rate in the admin while creating a product, there is a "Financial" section in the bottom which shows "Tax Code => No Values found for this enumeration".
I followed the instructions to add a SimpleTaxProvider by modifying my applicationContext-admin.xml (btw.: is this the place the bean should be configured in or should it be site/applicationContext.xml or core/applicationContext.xml?):
<!-- tax stuff -->
<bean id="blTaxModule" class="org.broadleafcommerce.core.pricing.service.tax.provider.SimpleTaxProvider">
<property name="itemPostalCodeTaxRateMap">
<map>
<entry key="4410" value=".095" />
<entry key="75034" value=".085" />
</map>
</property>
</bean>
<bean id="myTaxProviders" class="org.springframework.beans.factory.config.ListFactoryBean">
<property name="sourceList">
<list>
<ref bean="blTaxModule" />
</list>
</property>
</bean>
<bean class="org.broadleafcommerce.common.extensibility.context.merge.LateStageMergeBeanPostProcessor">
<property name="collectionRef" value="myTaxProviders"/>
<property name="targetRef" value="blTaxProviders"/>
</bean>
But nothing changes in the admin UI, I can not chose a tax rate at all - so I do get the tax stuff configured her to show up in the admin UI?
Help is highly appreciated,
thanx in advance,
Florian
I'm banging my head against walls and wanna achieve sth really simple (and well documented): I wanna add a simple tax provider enabling me to chose the tax rate in the admin while creating a product, there is a "Financial" section in the bottom which shows "Tax Code => No Values found for this enumeration".
I followed the instructions to add a SimpleTaxProvider by modifying my applicationContext-admin.xml (btw.: is this the place the bean should be configured in or should it be site/applicationContext.xml or core/applicationContext.xml?):
<!-- tax stuff -->
<bean id="blTaxModule" class="org.broadleafcommerce.core.pricing.service.tax.provider.SimpleTaxProvider">
<property name="itemPostalCodeTaxRateMap">
<map>
<entry key="4410" value=".095" />
<entry key="75034" value=".085" />
</map>
</property>
</bean>
<bean id="myTaxProviders" class="org.springframework.beans.factory.config.ListFactoryBean">
<property name="sourceList">
<list>
<ref bean="blTaxModule" />
</list>
</property>
</bean>
<bean class="org.broadleafcommerce.common.extensibility.context.merge.LateStageMergeBeanPostProcessor">
<property name="collectionRef" value="myTaxProviders"/>
<property name="targetRef" value="blTaxProviders"/>
</bean>
But nothing changes in the admin UI, I can not chose a tax rate at all - so I do get the tax stuff configured her to show up in the admin UI?
Help is highly appreciated,
thanx in advance,
Florian