javascript - Woocommerce sliding cart - add remove button for each product -
i use woocommerce cart tab. possible add remove button product?
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">×</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
Post a Comment