WordPress.org

Forums

[Plugin: WP eCommerce] Remove Link to Your Downloads in My Account (4 posts)

  1. ohsnapjulie
    Member
    Posted 1 year ago #

    Hello,

    I am not selling any downloadable items so I would like to remove the link to "Your Downloads" that is shown when I login to my Account on WP eCommerce. It currently looks like this once I login.

    Purchase History|Your Details|Your Downloads | Saved Credit Card, Bank or Shipping Information

    How can I remove that one link option?

    Thanks for your help.

  2. shubhamk
    Member
    Posted 1 year ago #

    Hey

    I'm facing the same problem, need to remove 'Your Downloads' link.

    Any ideas anyone?

  3. lanmangoo
    Member
    Posted 1 year ago #

    plugins/wp-e-commerce/wpsc-theme/functions/wpsc-user_log_functions.php
    find function wpsc_user_profile_links
    here you can remove the line you don't want to see

    $profile_tabs = apply_filters( 'wpsc_user_profile_tabs', array(
    'purchase_history' => __( 'Purchase History', 'wpsc' ),
    'edit_profile' => __( 'Your Details', 'wpsc' ),
    'downloads' => __( 'Your Downloads', 'wpsc' )
    ) );

    for example

    $profile_tabs = apply_filters( 'wpsc_user_profile_tabs', array(
    	'purchase_history' => __( 'Purchase History', 'wpsc' ),
    	'edit_profile'     => __( 'Your Details', 'wpsc' )
    ) );

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum's parser.]

  4. Ben Kaminski
    Member
    Posted 1 year ago #

    $profile_tabs = apply_filters( 'wpsc_user_profile_tabs', array(
    'purchase_history' => __( 'Purchase History', 'wpsc' ),
    'edit_profile' => __( 'Your Details', 'wpsc' ),
    /*'downloads' => __( 'Your Downloads', 'wpsc' )
    ) );

    Or you could just comment out the downloads rather than remove. Preserving plugin author architecture.

    I wrote an article on this exact issue here:
    benkaminski.com

Topic Closed

This topic has been closed to new replies.

About this Topic