• Hi, sorry for my bad English but i will try to explain my problem.

    I’m trying to add “remove from cart” button in my floating cart for woocommerce.

    It look like this https://prntscr.com/dmjv4o

    That is Avada cart menu item from navigation menu which i changed to be fixed on page and to float right. It displays product name, picture, price and quantity but i need “remove from cart X” also.

    Is there any way to add that action to this cart? I know that i should contact Avada support but they have told that is not what their support can solve.

    Thanks

    • This topic was modified 8 years, 3 months ago by Mare13ki.
Viewing 1 replies (of 1 total)
  • Find out the php file from which that floating cart is coming and then you just need to use following WooCommerce code snippet at appropriate place:

    <?php echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf('<a href="%s" class="remove" title="%s"> X </a>', esc_url( WC()->cart->get_remove_url( $cart_item_key ) ), __( 'Remove this item', 'woocommerce' ) ), $cart_item_key ); ?>

Viewing 1 replies (of 1 total)
  • The topic ‘ADD “remove from cart” button’ is closed to new replies.