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

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 Jan 21 '14 at 10:20
  • awesome, glad you got it sorted! – mjr Jan 21 '14 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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