programmatically get a fixed product tax in product page
-
16-10-2019 - |
Pergunta
I'am looking for a code that permit me to get the fixed product taxe named "ecotaxe" for France.
Is anyone know how to get this value ?
Thanks,
Solução
It's called "weee tax" in Magento and it's defined by product.
Everything is located in weee_tax table in Magento database. It's something existing by default in Magento but not often used.
I found a solution, hope it'll help :
http://www.magentocommerce.com/knowledge-base/entry/ce18-and-ee113-fpt-tax
And my code looks like that after creating the specific attribute :
$ecotaxe = $_product->getEcotaxe();
echo $ecotaxe[0]['value'];
Licenciado em: CC-BY-SA com atribuição
Não afiliado a magento.stackexchange