Some of my customers forget to use a free reward in their cart, and ask me to adjust their orders after the fact. Which is fine, but time consuming.
So I'm working on some javascript to add to the built-in CheckIt function on the OrderSystem->Shopping Cart page to remind customers if they have unused rewards when they press the Checkout button.
I'm ok with counting the products and rewards already in the cart, from the supplied javascript variables. The only thing I'm missing is an automatic way to detect that I've got a promotion going. Otherwise I'll mistakenly tell them they have a reward due, when there's no promotion running. I just need to know that at least one reward has been earned, hence a promotion is running.
I see that the shopping cart includes some html <table class="program_reward_order"> where it shows the "You have earned a Reward" text. Can you think of a way I can detect the presence of this in my javascript? Or perhaps there's some variable I can access that says a reward has been earned?