WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Featured-sticky-products] Suggestion for theming Featured Sticky Products (3 posts)

  1. Ben Huson
    Member
    Posted 4 years ago #

    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/

  2. jghazally
    Member
    Posted 4 years ago #

    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

  3. MikesSite
    Member
    Posted 3 years ago #

    Can this be used in the sidebar?

Topic Closed

This topic has been closed to new replies.

About this Topic