WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
Unable to edit 'Your Account' page text (8 posts)

  1. shubhamk
    Member
    Posted 1 year ago #

    Hey

    Need to edit the Status-Date-Price heading in 'Your Account' Page and also Purchase History|Your Details|Your Downloads thing needs to go.

    I tried editing the wpsc-account-purchase-history.php file in themes folder after having copied the core theme files to my active theme folder ( Settings > Store > Presentation ). But it doesn't work for Status - Date - Price heading neither the code for Purchase History|Your Details|Your Downloads is visible in there.

    I've also tried editing wpsc-account-downloads.php and wpsc-account-edit-profile.php files. Didn't work.

    How do I do this?

    http://wordpress.org/extend/plugins/wp-e-commerce/

  2. toastdesign
    Member
    Posted 9 months ago #

    Same issue here - any luck @shubhamk ?

  3. nicknack
    Member
    Posted 9 months ago #

    Try wpsc-user-log.php

  4. toastdesign
    Member
    Posted 9 months ago #

    Able to edit the wpsc-user-log.php template, but the wpsc-account-edit-profile.php and wpsc-account-purchase-history.php template files are stilling be pulled from the /wpsc-theme/ folder, rather than the copied ones.

    Think it might have something to do with the do_action( 'wpsc_user_profile_section_' . $current_tab ); function

    Edit: Upon further inspection, the do_action( 'wpsc_user_profile_section_' . $current_tab ); does seem to be the culprit. The functions it references in wpsc-user_log_functions.php contain includes which specifically reference the wpsc-theme folder - they don't check to see if you have copied them to your own theme folder.

  5. toastdesign
    Member
    Posted 9 months ago #

    I did some snooping on github and it looks like someone has committed a patch for this, but I don't think it's has been merged to a stable release as of yet.

    The temporary fix I am using is simply commenting out do_action( 'wpsc_user_profile_section_' . $current_tab ); and using if statements to pull in the right templates:

    <?php
        if($current_tab == 'purchase_history'){ include('wpsc-account-purchase-history.php'); }
        if($current_tab == 'edit_profile'){ include('wpsc-account-edit-profile.php'); }
    ?>

    The download section requires a bit of extra code, which can be found in wpsc-theme/functions/wpsc-user_log_functions.php on line 760

  6. mginop
    Member
    Posted 9 months ago #

    Nice fix @toastdesign. Thanks!

  7. Wammy
    Member
    Posted 8 months ago #

    A good way to fix this without breaking any future functionality is to replace:

    do_action( 'wpsc_user_profile_section_' . $current_tab );

    In wpsc-user-log.php to:

    if ($current_tab == 'purchase_history') {
                include('wpsc-account-purchase-history.php');
            } elseif ($current_tab == 'edit_profile') {
                include('wpsc-account-edit-profile.php');
            }else {
                do_action( 'wpsc_user_profile_section_' . $current_tab );
            }
  8. Wammy
    Member
    Posted 8 months ago #

    Actually, that first if section for purchase_history can be removed unless you are doing fancy things like I am.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic