Juhy Posted December 18, 2012 Share Posted December 18, 2012 Hi, can anyone help me with my case? I'll have the products, which will be time limited. How do I set the time for a specific product ex: from time 20-01-2012:12:00 to 20-01-2012:17:00. When the time is up the product is hidden. Thnx for any help and infos. I'm using PrestaShop 1.5.2 Regards, Juhy Link to comment Share on other sites More sharing options...
math_php Posted December 20, 2012 Share Posted December 20, 2012 Hi Juhy, I would make a script called by cron to hide product after time limit. Is your web hosting up to run cron ? You need a table with id_product and 'show time' Best regards Link to comment Share on other sites More sharing options...
Juhy Posted December 20, 2012 Author Share Posted December 20, 2012 (edited) Hi, thnx for response. Yes, my hosting run cron. So, i have to set new fild in BO on product tab for date_time_to and check with script every ex: 5min for that date_time_to and disabled it? (i had written the code when customer buy last product quantity on stock - it disable that product) Regards, Juhy Edited December 20, 2012 by Juhy (see edit history) Link to comment Share on other sites More sharing options...
math_php Posted December 20, 2012 Share Posted December 20, 2012 You want to use customized fields ? each time for each product ? I would rather create a table ps_db_prefix.limited_offer. Tell me what solution you will apply. 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