How to remove sold items from latest products?

LiteCart Fan
Nuo United States
Narys nuo kov. 2022

How can I remove the sold items off the latest products section?
I have a separate category for sold items specifically, but I do not want them to show up on the latest products ( front page )

Thank you.

tim
Founder
Nuo Sweden
Narys nuo geg. 2013
tim

LiteCart does either. So for one component to do it, but the others not you would need to modify where there should be an anomaly.

https://github.com/litecart/litecart/blob/2.5.1/public_html/includes/functions/func_catalog.inc.php#L45-L192
https://github.com/litecart/litecart/blob/2.5.1/public_html/includes/boxes/box_latest_products.inc.php#L9-L12

A quick way to solve it is to modify the lc_products.date_created straight in phpMyAdmin so they don't show among the latest.

Another idea to solve it could be to sort products with quantities less than 0 last.

LiteCart Fan
Nuo United States
Narys nuo kov. 2022

@ Tim, so do I replace both of my files, with those two you posted above?
Sorry I'm a bit confused.

tim
Founder
Nuo Sweden
Narys nuo geg. 2013
tim

They are not for replacing. They are a reference of what files you need to modify to implement such a feature.

This thread has been closed due to long inactivity. Posting to it is not possible.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.