I have been trying to figure out how I can display the short description for each product at the shop page(archive-product.php).
Here in this screenshot you can see i have placed a dummy text at the short description field.
http://i255.photobucket.com/albums/hh140/testament1234/excerpt_zpse08fd1d6.jpg
But it doesn’t reflect on the shop page. It only shows the product price, rating and also add to cart button
http://i255.photobucket.com/albums/hh140/testament1234/description_zps916077d0.jpg.
I have already copied the woocommerce templates files and placed them at woocommerce folder in the root of my theme
UPDATE:
//ADD SHORT DESCRIPTION SHOP PAGE
if ( ! function_exists( 'add_product_description' ) ) {
function woocommerce_template_loop_price() {
wc_get_template( 'single-product/short-description.php' );
}
}
You can achieve this using the woocommerce_after_shop_loop_item action hook. In woocommerce you can define your own function which will trigger and add the description to your product. To achieve this ,use
Create a file product_description_snippet.php(inside the theme/woocommerce/loop) ,where you can add code to grab product description.
This is quite old, but I’m going to post the solution I found thanks to @M.P. Korstanje answer.
Insted of using woocommerce_after_shop_loop_item hook, just use woocommerce_shop_loop_item_title hook and echo the excerpt. All hooks in the shop page can be found here
The code is then like that: