Juto Posted February 26, 2011 Share Posted February 26, 2011 I am using ajax attribute manager v2.8.9 It has a flaw: A default language is not set in either of these snippets: <!--Original//--> <input type="image" src="<?php echo DIR_WS_CATALOG_LANGUAGES . $amLanguage['directory'] . '/images/' . $amLanguage['image'];?>" title="<?php echo AM_AJAX_CHANGES;?>" <?php echo ($attributeManager->getSelectedLanguage() == $amLanguage['id']) ? 'style="padding:1px;border:1px solid black;" onclick="return false;";' : 'onclick="return amSetInterfaceLanguage(\''.$amLanguage['id'].'\')";';?> > <!--test with SetDefaultLanguage()//--> <input type="image" src="<?php echo DIR_WS_CATALOG_LANGUAGES . $amLanguage['directory'] . '/images/' . $amLanguage['image'];?>" title="<?php echo AM_AJAX_CHANGES;?>" <?php echo ($attributeManager->getSelectedLanguage() == $amLanguage['id']) ? 'style="padding:1px;border:1px solid black;" SetDefaultLanguage();' : 'onclick="return amSetInterfaceLanguage(\''.$amLanguage['id'].'\')";';?> > <!-- AJAX Attribute Manager //--> <script type="text/javascript"> function SetDefaultLanguage(){ return amSetInterfaceLanguage($amLanguage[1]); } So, plz advice me on how I get a default language in either snippet Sara Contributions: http://addons.oscommerce.com/info/8010 http://addons.oscommerce.com/info/8204 http://addons.oscommerce.com/info/8681 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.