lfischer

Otto - Price

May 7th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function criteo_price(){
  2.     var population = criteo_population();
  3.     if(population == "A"){
  4.         return regular_price; //regular_price variable to be defined according to dataLayer
  5.     } else if( population == "B"){
  6.         return regular_price*margin; //regular_price and margin variable to be defined to dataLayer
  7.     } else{
  8.         console.log("Population setup error.")
  9.         return regular_price;
  10.     }
  11. })
Advertisement
Add Comment
Please, Sign In to add comment