javascript - Woocommerce sliding cart - add remove button for each product -


i use woocommerce cart tab. possible add remove button product?

enter image description here

it's simple this:

navigate wp-content/plugins/woocommerce/templates/cart , open mini-cart.php. inside li tag, add following code:

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

this add remove button (a x) each product in sliding cart.

and you're done.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -