Displaying price with tax and without tax

Pepso

No avatar

2006-06-28 08:59

Hi all,

is there any possibility to display 2 prices - with tax and without tax at once for each product?

Peter

treewood (OpenSolution)

Avatar: treewood

2006-06-28 15:52

Pepso - it is possible but it need to calculate new price. if You add without tax You need to create variable and add tax to price. Do You know PHP good or not ? If not it will be a problem...

Pepso

No avatar

2006-06-28 16:06

Thanks for your reply. I modify PHP scripts but I never wrote my own script from A to Z.

Peter

treewood (OpenSolution)

Avatar: treewood

2006-06-28 22:13

see core/products.php functions: throwProductsData() and throwProduct() add line $aList['fPrice2'] = tPrice( $aList['fPrice'] * 1.20 ); before function returns array $aLis.
Add now $aList[fPrice2] to templates/products_list.tpl and templates/products_more.tpl

Back to top
about us | contact