Excerpt in Product Catalogue
Q: At this point in time my product catalogue has just the price and add to cart button. Is there a way to add the excerpt text for each product to this page as well. If not all the text then perhaps a character limit and then a "read more link"?
A: Add below code to your theme's functions.php file:
remove_action( 'jigoshop_after_shop_loop_item_title' , 'jigoshop_template_loop_price', 10, 2);
add_action( 'jigoshop_after_shop_loop_item_title' , 'jigoshop_template_loop_price_custom', 10, 2);
function jigoshop_template_loop_price_custom( $post, $_product ) {
if ($post->post_excerpt) echo wpautop(wptexturize($post->post_excerpt));
?><span class="price"><?php echo $_product->get_price_html(); ?></span><?php
}
-
Getting Started
-
Jigoshop Settings
-
Creating Products
-
Using Jigoshop
-
Customize Jigoshop
-
Testings - in case of problems on Jigoshop web site
-
FAQ - Jigoshop plugin user questions
- Add a new tab to a product page / Custom tabs on product pages?
- Adding a Continue Shopping button to the single product page
- Adding Product Category Terms in a dropdown box for Custom Post Meta
- Add Alternate text on product picture and title
- Adding buttons / info to the end of each product
- View all (171 more)
-
FAQ - Jigoshop extensions user questions
-
API
-
Screencasts