Support » Theme: OceanWP » Increase number of products in search

  • abdull85

    (@abdull85)


    Hello there how to increase number of products when customer search i can only show 6 products and i tried to increase blogs number, archive but still same number

    pleasee see below:

    Upload complete
    You can create a new album with the content just uploaded. You must create an account or sign in to save this content into your account.
    JPG PNG BMP GIF TIF WEBP HEIC PDF 32 MBRESET
    Embed codes

    HTML full linked

    Screen-Shot-2020-05-30-at-10-58-34-PM

Viewing 6 replies - 1 through 6 (of 6 total)
  • Amit Singh

    (@apprimit)

    Hello,

    You can do it by using the child theme. Install and activate the oceanwp child theme. Copy the oceanwp > woocommerce > loop > loop-start.php file into the child theme following the same path and edit the column as per your need.

    what to change to increase the products when customers search

    // Classes
    $wrap_classes = array( 'products', 'oceanwp-row', 'clr' );
    
    // List/grid style
    if ( ( oceanwp_is_woo_shop() || oceanwp_is_woo_tax() )
    	&& get_theme_mod( 'ocean_woo_grid_list', true )
    	&& 'list' == get_theme_mod( 'ocean_woo_catalog_view', 'grid' ) ) {
    	$wrap_classes[] = 'list';
    } else {
    	$wrap_classes[] = 'grid';
    }
    
    // Responsive columns
    $tablet_columns    = get_theme_mod( 'ocean_woocommerce_tablet_shop_columns' );
    $mobile_columns    = get_theme_mod( 'ocean_woocommerce_mobile_shop_columns' );
    
    if ( ! empty( $tablet_columns ) ) {
    	$wrap_classes[] = 'tablet-col';
    	$wrap_classes[] = 'tablet-' . $tablet_columns . '-col';
    }
    if ( ! empty( $mobile_columns ) ) {
    	$wrap_classes[] = 'mobile-col';
    	$wrap_classes[] = 'mobile-' . $mobile_columns . '-col';
    }
    
    // If infinite scroll
    if ( 'infinite_scroll' == get_theme_mod( 'ocean_woo_pagination_style', 'standard' ) ) {
    	$wrap_classes[] = 'infinite-scroll-wrap';
    }
    
    $wrap_classes = implode( ' ', $wrap_classes ); ?>
    
    <ul class="<?php echo esc_attr( $wrap_classes ); ?>">

    `

    • This reply was modified 7 months, 4 weeks ago by abdull85.

    Try to change the $tablet_columns and $mobile_columns in the code.

    $tablet_columns = 8;
    $mobile_columns = 6;

    I have changed that but the number of products still show 6 per page when i searched on the search bar ?

    Screen-Shot-2020-06-04-at-12-37-55-PM

    please let me know

    I need help Amit I have searched everywhere to this issue

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Increase number of products in search’ is closed to new replies.