I'm running into an odd issue with CartThrob's gift certificates that doesn't seem to be turning up any google results, so I'm hoping someone can help point out what I'm doing wrong or share if they've run into the same issue.
In my shopping cart (and my checkout page, but they're both displaying the same chunk of code so we'll stick with this one) I have the following chunk of code showing order totals & associated information:
{exp:cartthrob:cart_info}
<span class="label">Subtotal:</span>
<span class="amount">{cart_subtotal}</span>
{if "{cart_shipping}" != "$0.00"}
<span class="label">Standard Shipping:</span>
<span class="amount">{cart_shipping}</span>
{/if}
{if "{cart_discount}" != "$0.00"}
<span class ="label">Discounts:</span>
<span class="amount">-{cart_discount}</span>
{/if}
{if "{exp:cartthrob_gift_certificates:applied}" != "$0.00"}
<span class="label">Gift Certificates:</span>
<span class="amount">-{exp:cartthrob_gift_certificates:applied}</span>
{/if}
{if "{cart_tax}" != "$0.00"}
<span class ="label">Estimated Tax:</span>
<span class="amount">{cart_tax}</span>
{/if}
<span class ="label total">Total:</span>
<span class="amount total">{exp:cartthrob_gift_certificates:cart_total_minus_gift_certificates}</span>
{/exp:cartthrob:cart_info}
For my example cart, which has no tax and no discounts, and for which I have not applied a gift certificate (No gift certificates have been applied in this session at all), I see the following:
http://cl.ly/image/060u1n182I2D
Subtotal: $5.00 Standard Shipping: $6.00 Gift Certificates: -$2.00 Total: $11.00
Which shows the correct subtotal, shipping and total, but shows a phantom $2 discount that's not actually applied to the total.
Has anyone seen anything like this happen with CT gift certificates? Any thoughts about how to fix the issue? It seems like the total behavior is correct (no gift certificate applied) but the number output by cartthrob_gift_certificates:applied is incorrect.