Home Forums Pro Themes Clean Commerce Pro Change count of cross sale columns

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #75121
    Danil Badretdinov
    Participant

    How can I change count of cross sale columns?

    I mean this section on a goods page https://www.screencast.com/t/rYMsZDRYfQHy

    I see four columns, but they don’t show correctly because of a category widget on the left side – https://www.screencast.com/t/45hvzQK03

    I want to change the count of cross sale columns from four to three. How can I do this?

    #75219
    wensolutions
    Keymaster

    Hello @danilko-kuyandex-ru,

    First of all thank you very much for using the pro version of the theme.

    Actually, the space at the right is the widget area. So to remove the sidebar widget are you can go to that particular page edit screen and manage the layout setting.

    In the page edit screen, you will find the ” Theme setting: meta option. Go to layout option and chose “No Sidebar” from the drop-down.

    http://prntscr.com/k458km

    Hope this helps.

    Regards!!

    #75224
    Danil Badretdinov
    Participant

    But I need to show the sidebar on pages.

    I want to change the count of cross sale columns from four to three. How can I do this?

    #75229
    wensolutions
    Keymaster

    Hello @danilko-kuyandex-ru,

    Can you provide the site URL so that we can precise fix on this?

    Thank you.

    #75230
    Danil Badretdinov
    Participant
    #75295
    wensolutions
    Keymaster

    Hello @danilko-kuyandex-ru,

    To manage the count you have to activate the child theme.

    You can create the child theme manually or simply create the child theme using the available plugins.

    After activating the child theme please below-given code in your child theme’s functions.php file.

    add_filter( 'woocommerce_output_related_products_args',
    'clean_commerce_custom_woocommerce_upsell_display_args' );	
    function clean_commerce_custom_woocommerce_upsell_display_args( $args ) {	  $args['posts_per_page'] = 3;
    $args['columns']        = 3; 
    return $args;	}

    Hope this helps.

    Best Regards!!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.