Home Forums Basel support forum The grid don't show the products

The grid don't show the products

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #74474

    sisegrau
    Participant

    Hi. I have a grid at the homepage with 4 different filters, some of these show the grid in a wrong way.
    Look at the site you see only 2 products, and when you push the button it shows some more, but it has empty spaces.
    All the images at the web have the same width.
    Some clue?

    NOTE: this problem is ONLY in the french (second language) version.

    Attachments:
    You must be logged in to view attached files.
    #74486

    Artem Temos
    Keymaster

    Hi,

    Try to go to Dashboard -> WooCommerce -> Settings -> Products -> Inventory and disable this option https://gyazo.com/fe46d3e0a1e9c1ad5713b4b537d1908a

    Regards

    #74490

    sisegrau
    Participant

    Hi! Thank you for your rapid answer.

    The “visual problem” is solved, but now we show the products we haven’t at the stock. Don’t you have another solution from the theme to hide the out of stock products?

    Thanks!

    #74492

    Artem Temos
    Keymaster

    Try to edit the file basel/inc/shortcodes.php and customize the function basel_shortcode_products(); as shown on screenshot http://prntscr.com/jwress

    Add the following code

    if ( 'yes' === get_option( 'woocommerce_hide_out_of_stock_items' ) ) {
    	$args['meta_query'][] = array( 'key' => '_stock_status', 'value' => 'outofstock', 'compare' => 'NOT IN' );
    }
    #74493

    sisegrau
    Participant

    I think nothing changes…

    https://vaive.shoes/fr/#1535363391044-80824083-a4a2

    I don’t make enable again the “hide the products out of stock”.
    Thanks for your help!

    #74501

    Artem Temos
    Keymaster

    Use the code we sent and enable this option on your website.

    #74522

    sisegrau
    Participant

    It works! Thanks a lot.

    #74531

    Artem Temos
    Keymaster

    Great, you are welcome.

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘The grid don't show the products’ is closed to new replies.