stronyw123 Posted February 18, 2020 Share Posted February 18, 2020 hello Could someone tell me how to make random New products on home page? I'm using Block new products and i would like to have something like refresh every day. There is about 200 products on my shop. blocknewproducts.php Link to comment Share on other sites More sharing options...
Gerardo Martinez G Posted February 18, 2020 Share Posted February 18, 2020 Do you want the date of when you entered it to be updated every day so that it always appears as a new product? Link to comment Share on other sites More sharing options...
stronyw123 Posted February 19, 2020 Author Share Posted February 19, 2020 10 hours ago, Gerardo Martinez G said: Do you want the date of when you entered it to be updated every day so that it always appears as a new product? Yes this will be good! So how to make it? Link to comment Share on other sites More sharing options...
Gerardo Martinez G Posted February 19, 2020 Share Posted February 19, 2020 in database tables ps_product ps_product_shop column `date_add` You can make a script and run the days you want ... (crontab) Inside the scrip the MySQL query. This query will update all the records. You have to look for more options or products you don't want to update .... UPDATE `ps_product` SET `date_add` = curdate(); UPDATE `ps_product_shop` SET `date_add` = curdate(); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now