A discount code of "x% off" will apply only to the pre-tax total, not to shipping. That's pretty standard though... after all, the USPS isn't going to lower their rate as an exception to anyone - the price is the price! So it doesn't make sense to discount the shipping costs - the seller would have to pay the difference out of pocket. Therefore, the only price that can change is the pre-tax total.