nunoprud Posted February 11, 2014 Share Posted February 11, 2014 Hi everyone, I have the following problem. How i can put the promotion date visible in article? Regards, Nunoprud Link to comment Share on other sites More sharing options...
vekia Posted February 11, 2014 Share Posted February 11, 2014 by article you mean product page? or cms article page? Link to comment Share on other sites More sharing options...
nunoprud Posted February 11, 2014 Author Share Posted February 11, 2014 I´m sorry, yes, is in the product page. Link to comment Share on other sites More sharing options...
vekia Posted February 11, 2014 Share Posted February 11, 2014 to display special price expiry date: {$product->specificPrice['to']} start date: {$product->specificPrice['from']} you can use these variables in your product.tpl template file 1 Link to comment Share on other sites More sharing options...
nunoprud Posted February 17, 2014 Author Share Posted February 17, 2014 Ok. Thank you. With these variables i can do what i want. Regards, Link to comment Share on other sites More sharing options...
marhor.hr Posted April 3, 2014 Share Posted April 3, 2014 Thanks for the info, but date display is formated as yyyy-mm-dd hh:mm:ss Any idea how can I format it like dd.mm.yyyy? Thanks! Link to comment Share on other sites More sharing options...
marhor.hr Posted April 3, 2014 Share Posted April 3, 2014 Thanks for the info, but date display is formated as yyyy-mm-dd hh:mm:ss Any idea how can I format it like dd.mm.yyyy? Thanks! And, in addition, the date format in localization -> languages for my country is set the way I want it. But date is not displayed using the set format... Link to comment Share on other sites More sharing options...
marhor.hr Posted April 3, 2014 Share Posted April 3, 2014 And, in addition, the date format in localization -> languages for my country is set the way I want it. But date is not displayed using the set format... Got it! I've seen that history.tpl uses {dateFormat date=$order.date_add full=0} to display the order date. So i have changed {$product->specificPrice['to'] in product.tpl into {dateFormat date=$product->specificPrice['to']}. Now it's displayed using the country format. 1 Link to comment Share on other sites More sharing options...
b22c Posted April 6, 2014 Share Posted April 6, 2014 Hi, this work for prestashop 1.6? Thanks Link to comment Share on other sites More sharing options...
clearsky1 Posted September 30, 2014 Share Posted September 30, 2014 Hi, I am trying to get this function using the newest version of Pretaahop. Just putting {$product->specificPrice['to']} gives me nothing.at http://www.emartpromo.com/index.php?id_product=2&controller=product As you can see, the discount comes out but not the date duration? Presta 1.6.0.9 Thanks, N Link to comment Share on other sites More sharing options...
PrestaSOO Posted September 30, 2014 Share Posted September 30, 2014 (edited) You can use {$product->specificPrice['to']} and {$product->specificPrice['from']} if your prestashop version is 1.5. For both Prestashop 1.5 and 1.6 , you should use this function: SpecificPrice::getSpecificPrice to get all informations about product's special price! We used that way to get the Special Price's time to display Prestashop countdown discount Edited October 29, 2014 by DeJour (see edit history) 1 Link to comment Share on other sites More sharing options...
Ziaur Rahman Posted September 13, 2016 Share Posted September 13, 2016 to display special price expiry date: {$product->specificPrice['to']} start date: {$product->specificPrice['from']} you can use these variables in your product.tpl template file It shows date and time for all special products. If I want only for limited time offer, is it possible? 1 Link to comment Share on other sites More sharing options...
Recommended Posts