Try our conversational search powered by Generative AI!

Creating Discounts in code

Vote:
 

Hi Folks,

I'm looking for some examples on how to create a discount in code.  For context we are integrating a third party platform which allows influencer types to create discount codes.  These are sent to our Optimizely site and we will create the discount in the system and save it under a specific campaign.  Has anyone done anything similar or seen it documented anywhere?

Many thanks,

Dave

#306822
Aug 15, 2023 15:50
Vote:
 

You can see example here. It reads from an xml file in the app_data or the project.  If it is the same discount amount for each code you can use one promotion per influencer.  You could probably make work in jist one promotion as well.  If you want them to be single use couponse check out here and here.

#306824
Aug 15, 2023 18:12
Vote:
 

Fantastic, that's exactly what I was looking for. Cheers!

#306872
Aug 16, 2023 8:05
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.