To set and stick to a budget for online shopping, create a realistic spending plan, track your expenses, and use tools like price comparison sites and coupon codes to maximize your savings.