Support » Plugins and Hacks » [Plugin: Featured-sticky-products] Suggestion for theming Featured Sticky Products

  • Tried out the features products plugin and really like it. What I really found I wanted was control over the template file for how it appeared. Managed to come up with a really simple patch for the plugin…

    In the wpsc_display_featured_products_page function I updated it to first look in the WPSC theme folder for a template and resolve back to using the one in the plugin if one doesn’t exist:

    $theme_file = wpsc_get_theme_file_path( 'featured-products-template.php' );
    ob_start();
    if ( file_exists( $theme_file ) ) {
    	include( $theme_file );
    } elseif( file_exists( $this_directory . "template/featured-products-template.php" ) ) {
    	include( $this_directory . "template/featured-products-template.php" );
    }
    $output = ob_get_contents();
    ob_end_clean();

    http://wordpress.org/extend/plugins/featured-sticky-products/

Viewing 2 replies - 1 through 2 (of 2 total)
  • jghazally

    (@jghazally)

    Hi Ben,
    Just replied through the mailing list, if you can provide me with a diff file I can go in and make that change for you.
    Would be good if you could document the change in the readme too 😉
    best
    jeff

    Can this be used in the sidebar?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Featured-sticky-products] Suggestion for theming Featured Sticky Products’ is closed to new replies.