WordPress E-Commerce Software License Management integration with older WP E-commerce

Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInPrint this page

Older version of WordPress E-Commerce (lower than 3.8.10) will require a small template update to allow the front interface to update. The file which need update is called wpsc-user-log.php and is located within your theme folder. If you can’t find it, this need to be moved through Store interface. Proceed at Settings > Store > Presentation and select the file in the list like the following screenshot:

wp-e-commerce-theme-setings

Click the Move Template Files button and the wpsc-user-log.php will be moved to your theme.
Open the file with a php editor, it will show something like this:

<!--?php if ( is_user_logged_in() ) : ?--></pre>
<div>|
<a href="<?php echo esc_url( get_option( 'user_account_url' ) ) . $separator . ">"><!--?php _e('Your Details','wpsc'); ?--></a> |
<a href="<?php echo esc_url( get_option( 'user_account_url' ) ) . $separator . ">"><!--?php _e('Your Downloads','wpsc'); ?--></a>
 <!--?php do_action('wpsc_additional_user_profile_links', '|'); ?--></div>
<pre>
	<!--?php endif; ?-->


	<!-- 	START OF PROFILE PAGE -->
	<!--?php if ( is_wpsc_profile_page() ) : ?-->

The following update is necessarily:

<!--?php if ( is_user_logged_in() ) : ?--></pre>
<div>|
<a href="<?php echo esc_url( get_option( 'user_account_url' ) ) . $separator . ">"><!--?php _e('Your Details','wpsc'); ?--></a> |
<a href="<?php echo esc_url( get_option( 'user_account_url' ) ) . $separator . ">"><!--?php _e('Your Downloads','wpsc'); ?--></a>
<!--?php do_action('wpsc_additional_user_profile_links', '|'); ?--></div>
<pre>
<!--?php endif; ?-->


<!--?php if(is_user_logged_in() && !empty($_REQUEST['key_generator']) ) : $WPEC_SL_interfaces = new WPEC_SL_interfaces(); $WPEC_SL_interfaces--->key_generator();

?>
<!--?php elseif ( is_user_logged_in() && !empty($_REQUEST['licences']) ) : ?-->

<!--?php $WPEC_SL_interfaces = new WPEC_SL_interfaces(); $WPEC_SL_interfaces--->licences();

?>

<!--?php elseif ( is_user_logged_in() && is_wpsc_profile_page() ) : ?-->