Xpajun Posted January 14, 2011 Share Posted January 14, 2011 This is in template-top.php: <?php if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) { ?> <script type="text/javascript" src="ext/jquery/ui/i18n/jquery.ui.datepicker-<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>.js"></script> <script type="text/javascript"> $.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']); </script> <?php } ?> My store is not echoing the JQUERY_DATEPICKER_I18N_CODE which gives the local language changes causing a 404 error. Anyone have any idea where the code is being returned from (should return en-GB)? My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary Link to comment Share on other sites More sharing options...
pdcelec Posted January 14, 2011 Share Posted January 14, 2011 This is in template-top.php: <?php if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) { ?> <script type="text/javascript" src="ext/jquery/ui/i18n/jquery.ui.datepicker-<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>.js"></script> <script type="text/javascript"> $.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']); </script> <?php } ?> My store is not echoing the JQUERY_DATEPICKER_I18N_CODE which gives the local language changes causing a 404 error. Anyone have any idea where the code is being returned from (should return en-GB)? /public_html/ext/jquery/ui/i18n/jquery.ui.datepicker-en-GB.js Link to comment Share on other sites More sharing options...
Xpajun Posted January 15, 2011 Author Share Posted January 15, 2011 /public_html/ext/jquery/ui/i18n/jquery.ui.datepicker-en-GB.js That is the script that it eventually calls (assuming you are in GB) but " JQUERY_DATEPICKER_I18N_CODE " is the part that detects the language so the right language can be called and it is that bit that is not working and it obviously can't come from the file or script that it calls My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary Link to comment Share on other sites More sharing options...
multimixer Posted January 15, 2011 Share Posted January 15, 2011 I found this in my includes/languages/english.php define('JQUERY_DATEPICKER_I18N_CODE', ''); // leave empty for en_US; see http://jqueryui.com/demos/datepicker/#localization There is also a link to the various language codes My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
Xpajun Posted January 15, 2011 Author Share Posted January 15, 2011 Thank you George, my datepicker is actually working now; and another lesson learnt - check the old file for differences before assuming it's the same as the new one :rolleyes: My store is currently running Phoenix 1.0.3.0 I'm currently working on 1.0.7.2 and hope to get it live before 1.0.8.0 arrives (maybe 🙄 ) I used to have a list of add-ons here but I've found that with the ones that supporters of Phoenix get any other add-ons are not really neccessary Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.