WordPress.org

Forums

WooCommerce - excelling eCommerce
Problem when adding "Remove item" on Content product page (3 posts)

  1. metallicamu
    Member
    Posted 1 year ago #

    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/

  2. metallicamu
    Member
    Posted 1 year ago #

    Noone can help me?

  3. Willem-Siebe
    Member
    Posted 1 year ago #

    Hi,

    I tried to use that filter as well without succes, do you managed to get it working for you?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.