$additional_check='';
$form_name = 'hikashop_checkout_form';
if(JRequest::getVar('hikashop_check_order')) $additional_check='&& hikashopCheckChangeForm(\'order\',\''.$form_name.'\')';
$cartClass = hikashop_get('class.cart');
$empty='';
jimport('joomla.html.parameter');
$params = new HikaParameter($empty);
echo $cartClass->displayButton(JText::_('HIKA_REGISTER'),'register',$params,'','if(hikashopCheckChangeForm(\'register\',\''.$form_name.'\') && hikashopCheckChangeForm(\'user\',\''.$form_name.'\') && hikashopCheckChangeForm(\'address\',\''.$form_name.'\')'.$additional_check.'){ var button = document.getElementById(\'login_view_action\'); if(button) button.value=\'register\'; document.'.$form_name.'.submit();} return false;');