Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Check Product Promotion Rate Topic   - - - - -

 
  • dataspotgr
  • Advanced Member
  • Authorized Reseller
  • Join Date: 04-Sep 13
  • 52 posts

Posted 26 November 2020 - 10:23 AM #1

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?



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 22015 posts

Posted 26 November 2020 - 02:03 PM #2

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


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    Multi-Vendor PLUS           USD 3100 (2775)
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      Multi-Vendor Ultimate       USD 7500 (6000)

 
  • dataspotgr
  • Advanced Member
  • Authorized Reseller
  • Join Date: 04-Sep 13
  • 52 posts

Posted 27 November 2020 - 07:16 AM #3

 

 

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!