Reply To: Questions

#98879
Tom Anbinder
Moderator
Plugin Support

Hi,

1. Unfortunately at the moment displaying total sum raised for all products at once is not possible, but I will be adding this in next plugin version. You can however display total sum raised for each product on front page – by adding product_id attribute to the shortcode (i.e. in this case the shortcode will display info for your set product ID, instead of retrieving current product’s ID automatically), e.g.:

[product_crowdfunding_total_sum product_id="123"]

2. Our plugin is not really dealing with the way products are displayed on front page in WooCommerce, however you can display products short description on archives (i.e. front page) by adding this snippet to your (child) theme’s functions.php file:

add_action( 'woocommerce_after_shop_loop_item', 'show_product_short_description_on_loop' );
if ( ! function_exists( 'show_product_short_description_on_loop' ) ) {
	/**
	 * show_product_short_description_on_loop.
	 */
	function show_product_short_description_on_loop() {
		$product = wc_get_product();
		echo '<p>' . $product->get_short_description() . '</p>';
	}
}

And if you prefer the plugin solution, please check Info Blocks for WooCommerce plugin.

3. To list backers on another page, you again need to add product_id attribute to shortcode, e.g.:

[product_crowdfunding_list_backers product_id="123"]

Hope that helps and please let me know if you have any more questions.

And I will get back to you when new shortcodes for displaying info for all products at once are ready.