[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();
https://www.ads-software.com/extend/plugins/featured-sticky-products/
Viewing 2 replies - 1 through 2 (of 2 total)
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.