Support » Plugin: WooCommerce » Problem when adding "Remove item" on Content product page

  • Hi,
    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">&times;</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.

    http://wordpress.org/plugins/woocommerce/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem when adding "Remove item" on Content product page’ is closed to new replies.