/** * wpsc showing products * Displays the number of page showing in the form "10 to 20". * If only on page is being display it will return the total amount of products showing. * @return (string) Number of products showing */ function wpsc_showing_products() { global $wpsc_query; // If we are using pages... if (get_option('use_pagination') == 1) { $products_per_page = $wpsc_query->query_vars['number_per_page']; if ($wpsc_query->query_vars['page'] > 0) { $startnum = ($wpsc_query->query_vars['page'] - 1) * $products_per_page; } else { $startnum = 0; } return $startnum + 1 . ' to ' . ($startnum + wpsc_product_count()); } return wpsc_total_product_count(); }
/** * count total products on a page * see http://plugins.svn.wordpress.org/wp-e-commerce/tags/3.7.8/themes/iShop/products_page.php * * @return int */ function wpsc_total_product_count() { _deprecated_function(__FUNCTION__, '3.8'); return wpsc_product_count(); }
</tr> <tr class="list_view_description"> <td colspan="5"> <div id="list_description_<?php echo wpsc_the_product_id(); ?>"> <?php echo wpsc_the_product_description(); ?> </div> </td> </tr> <?php endwhile; ?> <?php /** end the product loop here */?> </table> <?php if(wpsc_product_count() < 1):?> <p><?php echo __('There are no products in this group.', 'wpsc'); ?></p> <?php endif ; ?> <?php if(function_exists('fancy_notifications')) { echo fancy_notifications(); } ?> <!-- Start Pagination --> <?php if ( ( get_option( 'use_pagination' ) == 1 && ( get_option( 'wpsc_page_number_position' ) == 2 || get_option( 'wpsc_page_number_position' ) == 3 ) ) ) : ?> <div class="wpsc_page_numbers"> <?php if ( wpsc_has_pages() ) : ?>
</a> <?php } ?> </h2> </div><!--close default_product_display--> <?php } ?> <?php /** end the product loop here */ ?> </div> <?php if (wpsc_product_count() == 0) { ?> <h3><?php _e('There are no products in this group.', 'wpsc'); ?> </h3> <?php } ?> <?php do_action('wpsc_theme_footer'); ?> <?php if (wpsc_has_pages_bottom()) { ?>
} ?> </div> </div> </div> <?php } ?> <?php /** end the product loop here */ ?> <?php if (wpsc_product_count() < 1) { ?> <p><?php echo TXT_WPSC_NOITEMSINTHISGROUP; ?> </p> <?php } ?> <?php if (function_exists('fancy_notifications')) { echo fancy_notifications(); } ?>