Okay
  Public Ticket #1328063
Issue on Products Display
Closed

Comments

  • gcontrerase started the conversation

    We have enabled the option to "not show in front store" products that are out of stock.

    The problem is that the Store leaves an empty space  for the "out of stock products" as can be seen on the example URL.

    I was exploring the code and it seems that on themes/automatic/woocommerce/archive-product.php Lines 163 to 190 a check for the $product->is_visible() is required before adding a new <li>.

    Thanks

  • [deleted] replied

    Dear Customer. 

    We see this error. Can you take me your site ftp, We will update for you.

    Thank you!

  •   gcontrerase replied privately
  •   gcontrerase replied privately
  • [deleted] replied

    Dear. 

    My developers are fixing them.
    I will send you packet that fixed this problem on tomorrow.

    Thank you

  • gcontrerase replied

    Perfect , thanks for your always Outstanding level of service !

  • [deleted] replied

    Dear,

    Please update theme, plugin and check again.

    Thank you!

  • gcontrerase replied

    I would like to know what files i need to add / overwrite , this is because a few months ago  your team made direct changes on the theme to fix a speed issue and i dont want to risk loosing those changes.

    The automatic-shortcodes plugin needs updating as well ?

    Thank you.

  • [deleted] replied

    Dear, 


    So I think that, I need your ftp or cpanel your site.

    Thank you

  •   gcontrerase replied privately
  • [deleted] replied

    Dear,

    I see that you enabled the option to "not show in front store". But I don't see your problem on shop page.

  •   gcontrerase replied privately
  • [deleted] replied

    Dear.

    Please backup your theme.

    Thank you

  • gcontrerase replied

    I backed it before i sent you the user and password.


     Do you want me to back it up again?

  • [deleted] replied

    Dear.

    Is your problem that?  having blank on your site.

  • gcontrerase replied

    Yes , that is the problem. 

    And also the count of products at the bottom.



  • [deleted] replied

    Dear,

    That is some product haven't price.

    EX. when i enter price for product https://www.computienda.com.sv/wp-admin/post.php?post=13241&action=edit, You can see it show on page. 


  • gcontrerase replied

    Some pics that show the issue

  • gcontrerase replied

    Its correct , the product doesnt have a price because it is out of stock. It should not be on the page...or the blank space

    Guillermo

  • [deleted] replied

    Dear.

    That is some product haven't price. You must enter price for product. 

  • gcontrerase replied

    I dont have to put a price , because the product is out of stock.

     It doesnt have stock , it doesnt have price either.   

    I understand that yesterday someone from you team had already seen this issue, fix it and prepared a new package.}

     what happened ? are u aware of that fix on the package that was previously sent to me?

  • [deleted] replied

    Dear. 

    I have just deactive 'automatic-custom-child' and your site work well. 

    Do you custom child theme?

  • gcontrerase replied

    Yes we use a child theme for extra customatization like the mega menu with categories and some other things. 

    But even with the child theme deactivated the issue is still there . Check this url and picture

    https://computienda.com.sv/product-category/computo/computadoras/laptops/page/2/


    Thank you

  • gcontrerase replied

    Please check the first post of this thread, the issue and possible fix is described there.

    Thanks

  • [deleted] replied

    Dear.

    Check for the $product->is_visible() is required before adding a new <li>.

    No. If you do that then you only don't show <li>, But your site will count products wrong, and navigation bar wrong.

    Thank you!

  • gcontrerase replied

    Hi,

    Ok, but  will you be able to solve this issue? 

    Thank you

  • gcontrerase replied

    Hi , just wanted to check up the status on this.

    Just an idea  - > Could the issue be coming from the wp_query itself ?

  • [deleted] replied

    Dear,

    Please remove file \inc\functionswoocommerce.php in child theme custom.

    If you want build function in child theme. Please build in file function.php

  • gcontrerase replied

    Hi ,

    The file in child thema at /inc/functions/woocommerce.php was empty , but it has been deleted anyways.

    I can confirm that the issue still remains .


    Your help is gladly appreciated.

  • [deleted] replied

    Dear. Please try remove file.

  • gcontrerase replied

    I confirm that the file has been removed.

    Thanks

  •   gcontrerase replied privately
  • gcontrerase replied

    Hi Sorry for the inconvenience , is thete any other instruction?

    Is someone still checking up this issue?

    Thanks,

    Guillermo

  • [deleted] replied

    Dear, 

    Can you send me your sever ftp info? I need check code of your custom child theme.

    Thank you!

  • gcontrerase replied

    Issue has been solved in our side and it wasnt related to the theme but to a classification on the database.

    Thank You

  • [deleted] replied

    Dear,


    Thank you!