Please refer to TemplateMonster Support for any issues surrounding TemplateMonster/TemplateTuning Themes – thanks, Jigoshop Team

Excerpt in Product Catalogue

James's Avatar

James

16 Jun, 2012 12:32 PM

Hi All,

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"?

Thanks!

  1. 2 Posted by Matt on 17 Jun, 2012 01:54 PM

    Matt's Avatar

    Add this 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
    }
    

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.