roz Posted April 7, 2014 Share Posted April 7, 2014 hello! is there a way how to display the start and end date of product promotion on product page? or how to edit the source code to include it? thanks in advance! Link to comment Share on other sites More sharing options...
NemoPS Posted April 7, 2014 Share Posted April 7, 2014 Inside product.tpl (theme folder) try: {$product->specificPrice.from} {$product->specificPrice.to} Of course, use a condition to check if there is a specific price first, and dates are actually valid! Link to comment Share on other sites More sharing options...
roz Posted April 8, 2014 Author Share Posted April 8, 2014 i'm actually not a php coder mind doing the conditions for me? i tried it inserting first and it's showing the correct dates. only need the conditions and the formatting of date many thanks! Link to comment Share on other sites More sharing options...
roz Posted April 8, 2014 Author Share Posted April 8, 2014 Inside product.tpl (theme folder) try: {$product->specificPrice.from} {$product->specificPrice.to} Of course, use a condition to check if there is a specific price first, and dates are actually valid! okay i now only need the correct way how to format this in DD-MM-YYYY. can help how to code it? Link to comment Share on other sites More sharing options...
vekia Posted April 8, 2014 Share Posted April 8, 2014 you can try to use smarty |date_format modifier http://www.smarty.net/docsv2/en/language.modifier.date.format.tpl 1 Link to comment Share on other sites More sharing options...
roz Posted April 9, 2014 Author Share Posted April 9, 2014 you can try to use smarty |date_format modifier http://www.smarty.net/docsv2/en/language.modifier.date.format.tpl thanks Vekia! already done with the conditions too Link to comment Share on other sites More sharing options...
Recommended Posts