• Resolved Flamekebab

    (@flamekebab)


    In the cart there’s a field that shows how much discount is being applied:

    Normally it shows “Discount: Free” and if one adds a coupon it shows the discount:

    If one then removes the coupon the field goes away entirely:

    Personally I don’t want it there by default – mostly because “Discount: Free” makes no sense. It suggests that the order will be free, which it won’t be, and just generally makes things look weird.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You don’t have our styles added – there is no style for “not-active” for that field, and thus it displays when it’s empty – the rest is a matter of Jigoshop’s price formatting ??

    Thread Starter Flamekebab

    (@flamekebab)

    Ah, yes, you’re absolutely right.

    Adding

    #cart-discount.not-active {
    	display:none;
    }

    To my theme’s style.css fixed the problem immediately.

    Edit: For anyone else finding this topic later this problem was caused by the steps taken here to remove JigoShop’s CSS so that my own theme would load properly.

    • This reply was modified 7 years, 7 months ago by Flamekebab. Reason: Adding a link to a topic on the cause of the problem
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Discount field behaves strangely in cart [Potential Bug]’ is closed to new replies.