each_price = ( (current_price * quantity) - (current_price * (int(quantity / (buyX + getX) * getX) ) ) ) / quantity
Saturday, October 6, 2018
Formula for pricing buy X get X (buy 1 get 1 free) promos
python code:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment