Reply 334625 to: Number of related products doesn’t change

Avatar: Rose Tyler
Rose Tyler
Support staff
September 21, 2022 at 08:57

Hello,


it is better to reach with php filters/actions but not with CSS styles.
As we see you have previously rewritten file of related.php but it is renamed now -> https://prnt.sc/Hc66fShe7tbl . As you see we provided you before the filter to hide out of stock items -> line 21 (which is commented now) and line 172 (which is commented now as well) -> https://prnt.sc/0FxUv1MoMslF . You may renamed your related09162022.php-> related.php and uncomment those lines described above and check then.

Example: https://prnt.sc/Iz_kZNTdyucE ( before ) = all products instock/outofstock
https://prnt.sc/-tx3TAbXwgw1 (after) = only in stock products

The custom function is located in your child-theme/functions.php -> https://prnt.sc/ycfdAbymXzBh

Regards

Go To The Whole Conversation In Topic
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.