Check Product Promotion

Hi,

I'm trying to build a script in order to export some product data in a XML file.

I'm having a bit of trouble when i'm trying to export the sales price of a product if that product in in promotion.

Is there any in build CS-Cart function that can check if a product is in promotion and get me the correct sales price?

Use the fn_gather_additional_products_data function (app/functions/fn.catalog.php) with the $params['get_discounts'] = true; parameter

Use the fn_gather_additional_products_data function (app/functions/fn.catalog.php) with the $params['get_discounts'] = true; parameter

I will try that. Thank you a lot!