0

As the title says - cart just reloads:

{exp:cartthrob:update_cart_form 
    class="validate"
    id="form-basket"
    return="shop/basket"
    secure_action="yes"
    }

    basket code here

    <button type="submit" name="clear_cart">Empty Basket</button>

{/exp:cartthrob:update_cart_form}

Any idea why this might be the case?

EE is 2.7.2, CT is Pro 2.4.

Thanks

1 Answer 1

0

try using an input instead of a button

<input type="submit" name="clear_cart" value="Empty Basket">
2
  • I have absolutely no idea why I didn't think of that in the first place! Thanks @mjr.
    – Russ Back
    Commented Jan 21, 2014 at 10:20
  • awesome, glad you got it sorted!
    – mjr
    Commented Jan 21, 2014 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.