magento training 3

Subject:
Add "TVA" after product  price when the price including tax.

Note:
The aim is to make you be familiar with how to use the tax.

After you make the tax rate and tax rule, in file 
app/design/frontend/intershop/default/template/catalog/product/view/type/default.phtml, we Add code


  
  
  
  
  1. <?php  
  2.     $taxClassId = $_product->getData("tax_class_id"); 
  3.     if($taxClassId != 0) echo "TVA";  
  4. ?> 

本文出自 “Epicor, magento” 博客,转载请与作者联系!

你可能感兴趣的:(Magento,exercise)