Tips and Tricks WP eCommerce

eCommerce Solution for WordPress Blog

  • Home
  • eCommerce Plugins
  • WP eStore Documentation
  • WP Shopping Cart Doc

Customize the Item Name in the Shopping Cart

You can customize the item name display in the shopping cart by overriding the default output.

By default, the item name will link to the page where the item was added from. In the following section I will show you how it can be overridden and the link is removed.

The “wspsc_cart_item_name” filter can be used to override the item name that gets displayed in the shopping cart.

Add the following block of code to your functions.php file of the theme which will replace the linked item name with just plain text name:

add_filter('wspsc_cart_item_name', 'wspsc_customize_cart_item_name', 10, 2);
function wspsc_customize_cart_item_name( $item_name, $item ){
    $item_name = esc_attr( $item['name'] );
    return $item_name;
}

Note: We provide technical support for our premium plugins via our customer only support forum

Your Shopping Cart

Shopping Cart Empty
Shopping Cart is Empty
Visit The Shop

Search

Featured Documents

Stylish Product Display Options for WP eStore WP eStore Quick Setup and Usage Video Tutorial WP eStore Shortcodes and Functions Reference WordPress eStore Plugin Features WordPress eStore Plugin Demo What Our Customers Have to Say About Our Products WordPress eStore WishList (Feature Suggestions) WordPress eStore Frequently Asked Questions (FAQ) How to Show Add to Cart buttons

Featured Plugins

WP Express Checkout Plugin
wordpress_estore_icon
wordpress membership plugin icon
wordpress_affiliate_plugin_icon

Copyright © 2025 | eCommerce Plugins