Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Sara needs an expert plz


Juto

Recommended Posts

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...