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

Setting the number of upsell products

chelleleslie's Avatar

chelleleslie

18 Apr, 2012 09:03 AM

I really love Jigoshop and the Cross-sell/Up-sell extension. I found it really intuitive so far.

One thing I'm struggling with though, is setting the number of products that show in the Up-sells panel.

I'd like to show 3 products but it's only showing 2.

I've tried changing the column number to 3 on line 264 in the 'up-sell-cross-sell.php' file but it didn't seem to help.

$columns = 2;

Anyone got any ideas?

  1. 2 Posted by Matt on 18 Apr, 2012 01:49 PM

    Matt's Avatar

    Try this somewhere in your functions.php:

    add_filter( 'jigoshop_upsell_products_args', 'my_upsell_columns' );
    function my_upsell_columns( $args ) {
        $args['posts_per_page'] = '3';
        return $args;
    }
    

    Where the number is the amount of upsell products to show.

  2. 3 Posted by chelleleslie on 19 Apr, 2012 03:17 AM

    chelleleslie's Avatar

    Thanks Matt, but unfortunately that didn't work for me.

    I tried it in both my theme's 'functions.php' and in the Jigoshop plugin folder's 'jigoshop_template_functions.php'

    My theme is a child theme of twenty ten.

    Any other ideas?

  3. 4 Posted by jrfehringer on 03 May, 2012 01:57 PM

    jrfehringer's Avatar

    Does anyone have an answer to this yet? I'm dealing with the same issue plus the cross-sells don't show up at all.

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.