I tried to add the “Remove item” on Content product page buy using this code on content_product.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 this item', 'woocommerce' ) ), $cart_item_key );
But there is a problem like that: It will display as many “Remove item” as product on Cart beside the “Add to cart” button.
Can someone help me?
Thank you so much.
- The topic ‘Problem when adding "Remove item" on Content product page’ is closed to new replies.