New Landing How can we help? Atelier update cart "x" change to text.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Posted in: Atelier
  • #205558
    wtflovelife
    Member
    Post count: 113

    Hi! Can you point me in the right direction to the file where I can change the “x” in the update column to text (when you have items in your cart)? I can see it in the inspector but can’t figure out what php file it is in!

    THANK YOU

    #205678
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    You mean to remove the product?

    – Kyle

    #205756
    wtflovelife
    Member
    Post count: 113

    Hi! Yes – exactly. My client would like the “x” to say “update” I found this in the inspector but can’t figure out where that is in the files.

    Attachments:
    You must be logged in to view attached files.
    #205762
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Go to atelier/woocommerce/cart/cart.php and find this line (111):

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

    Change to:

    echo apply_filters( 'woocommerce_cart_item_remove_link', sprintf( '<a href="%s" class="remove" title="%s">Update</a>', esc_url( WC()->cart->get_remove_url( $cart_item_key ) ), __( 'Remove this item', 'swiftframework' ) ), $cart_item_key );

    Not sure why you would want it to say update though? ‘Remove’ makes more sense

    – Kyle

    #205765
    wtflovelife
    Member
    Post count: 113

    Believe me…I COMPLETELY agree with you. Not much that I am doing with this website makes much sense 🙂 Thank you!

    #205766
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register