tebdilikiyafet Posted August 27, 2013 Share Posted August 27, 2013 Hi everybody; There is variable in authentication.tpl which is called $months and it is used for birthday. There is a function in tools.php (dateMonths()) and I think this is come from here. I wonder is there any database record for this? And for example where can we add another month? Link to comment Share on other sites More sharing options...
vekia Posted August 27, 2013 Share Posted August 27, 2013 classes/tools.php you've got there function: public static function dateMonths() { $tab = array(); for ($i = 1; $i != 13; $i++) $tab[$i] = date('F', mktime(0, 0, 0, $i, date('m'), date('Y'))); return $tab; Link to comment Share on other sites More sharing options...
tebdilikiyafet Posted August 28, 2013 Author Share Posted August 28, 2013 So it is impossible to add a new month? Link to comment Share on other sites More sharing options...
vekia Posted August 28, 2013 Share Posted August 28, 2013 you can define new month, just increase the $i != 13; param in the function i mentioned above. + you will need to define the "new" month name in the return variable. btw. why you want to add additional "months" ? Link to comment Share on other sites More sharing options...
tebdilikiyafet Posted August 28, 2013 Author Share Posted August 28, 2013 I couldn't understand how can I define new month name? Actually I want to make a custom function with using this. In another topic we had talked about towns of cities. I want to create a function to get towns of cities with $towns function. Related topic: http://www.prestashop.com/forums/topic/270441-city-selection-list-in-address-form/page__p__1353654 Link to comment Share on other sites More sharing options...
Recommended Posts