Author Topic: Billing information-Language changes back to defult language after clicking save  (Read 2414 times)

ksanna

  • Beginner
  • *
  • Posts: 2
I have virtumart 1.1.4, joomfish 2.1.7, and joomla 1.5.23.
When I modify fields (ex: First Name) of billing information(either during account maintenance or check out) and clicked "save" button, the page language change back to default language. I can fix this by adding the following one line, but then the NEW First Name was only stored in virtumart user not Joomla user. Therefore, the login module showed the OLD  First Name, but the billing information form already showed the NEW First Name. If I don't add that line, the change was stored in both virtumart and Joomla. Does anyone know how to fix it? Thank you.

in the root\components\com_virtuemart\themes\vmtheme068\templates\pages\account.billing.tpl.php
Code: [Select]
<div align="center">
<input type="submit" value="<?php echo $VM_LANG->_('CMN_SAVE'?>" class="button" onclick="return( submitregistration());" />
</div>
<input type="hidden" name="option" value="<?php echo $option ?>" />
<input type="hidden" name="page" value="<?php echo $next_page?>" />
<input type="hidden" name="Itemid" value="<?php echo $Itemid?>" />
<input type="hidden" name="func" value="shopperupdate" />
<input type="hidden" name="user_info_id" value="<?php $db->p("user_info_id"); ?>" />
<input type="hidden" name="id" value="<?php echo $auth["user_id"?>" />
<input type="hidden" name="user_id" value="<?php echo $auth["user_id"?>" />
<input type="hidden" name="address_type" value="BT" />

Add the follwing line
Code: [Select]
<input type="hidden" name="lang" value="us" />
ps:My site alternative language is english.