Jump to content

how to pass the RRp price to a xml file


Recommended Posts

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.

Thanks
Dimitri

37796_3esze4Z7p3rJH8vyuKjW_t

Link to comment
Share on other sites

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

×
×
  • Create New...