• Resolved andywatt

    (@andywatt)


    Hello!

    I was wondering if there is a possibility to add a delete products in the checkout page. Right now when I select a product I can’t remove it so things double up.

    Here is an example where you can order a product and continue directly to the checkout.
    https://www.innbetween.almering.nl/events/tafelen/

    thanks!

    Andrea

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter andywatt

    (@andywatt)

    okay found the answer:

    add_action( ‘woocommerce_add_cart_item_data’, ‘woocommerce_clear_cart_url’ );

    function woocommerce_clear_cart_url() {

    global $woocommerce;
    $woocommerce->cart->empty_cart();
    }

Viewing 1 replies (of 1 total)
  • The topic ‘Adding a delete button to checkout’ is closed to new replies.