Le0DaVinci Posted January 31, 2011 Share Posted January 31, 2011 Hi, I'm working on a xml file that passes info regarding my products to a comparison site.At the moment is passing the retail price before tax and I need to change the code so that the retail after tax is passed.This is how the code looks at the moment : . "".number_format($product_obj->price,2)."\n" Is it only matter of calling a different value? If so what's the value for the retail price including taxes? Alternatively as my taxes are always 10% I was thinking to multiply the price ( price*1.1) but I can't find a way to do it, as I don't really know php.ThanksDimitri Link to comment Share on other sites More sharing options...
Le0DaVinci Posted February 1, 2011 Author Share Posted February 1, 2011 any suggestion ?Thanks Link to comment Share on other sites More sharing options...
Le0DaVinci Posted February 1, 2011 Author Share Posted February 1, 2011 From what I understand I have 2 ways to fix this, I had tried and tried but I don't seem to call the correct variable.OPTION 1:this line returns the final price after reduction . "".Product::getPriceStatic(intval($Product['id_product']))."\n" how can I change this line to return the Retail price with tax?OPTION 2:Alternatively I could work with this line that returns the Pre-tax retail price . "".number_format($product_obj->price,2)."\n" // MSRP /RRP how can I change this line to return the Retail price with tax?Thanks Dimitri Link to comment Share on other sites More sharing options...
Recommended Posts