Hi Nicolas,
I bought the business package a couple weeks ago. I checked the update/about and it says "You have the latest stable version : 1.5.8"
This is my current checkout/address_view.php. Maybe I did something wrong when I modified it to show selected address only.
<?php
global $Itemid;
$url_itemid='';
if(!empty($Itemid)){
$url_itemid='&Itemid='.$Itemid;
}
$same_address = false;
if($this->shipping_address==$this->billing_address){
$same_address = true;
}
if(!empty($this->addresses)){
?>
<table>
<?php
$varname = $this->type.'_address';
if(empty($this->$varname) || !isset($this->addresses[$this->$varname])){
$first = reset($this->addresses);
$this->$varname = $first->address_id;
}
$done = false;
$nb_addresses = count($this->addresses);
$k=0;
foreach($this->addresses as $address){
$this->address =& $address;
$checked = '';
if(($this->$varname==$address->address_id)||(empty($address->address_id) && !$done)){
$checked = 'checked="checked"';
$done = true;
}
else{
continue;}
if($this->config->get('auto_submit_methods',1)&&empty($checked)){
$checked.=' onclick="this.form.submit(); return false;"';
}
?>
<tr class="<?php echo "row$k"; ?>">
<td>
<input id="hikashop_checkout_<?php echo $this->type;?>_address_radio_<?php echo $address->address_id;?>" class="hikashop_checkout_<?php echo $this->type;?>_address_radio" type="radio" name="hikashop_address_<?php echo $this->type;?>" value="<?php echo $address->address_id;?>" <?php echo $checked; ?> />
</td>
<td><label for="hikashop_checkout_<?php echo $this->type;?>_address_radio_<?php echo $address->address_id;?>" style="cursor:pointer;">
<span class="hikashop_checkout_<?php echo $this->type;?>_address_info">
<?php
$params = null;
$js = '';
$html = hikashop_getLayout('address','address_template',$params,$js);
foreach($this->fields as $field){
$fieldname = $field->field_namekey;
$html=str_replace('{'.$fieldname.'}',$this->fieldsClass->show($field,$address->$fieldname),$html);
}
echo str_replace("\n","<br/>\n",str_replace("\n\n","\n",preg_replace('#{(??!}).)*}#i','',$html)));
?>
</span>
</label>
</td>
<td>
<span class="hikashop_checkout_<?php echo $this->type;?>_address_buttons">
<?php if($nb_addresses>1){ ?>
<?php }
?>
</span>
</td>
</tr>
<?php
$k = 1-$k;
}
?>
</table>
<?php
}else{
$app =& JFactory::getApplication();
$app->enqueueMessage( JText::_('CREATE_OR_SELECT_ADDRESS') );
}
?>
<span id="hikashop_checkout_<?php echo $this->type;?>_address_new" class="hikashop_checkout_<?php echo $this->type;?>_address_new">
<?php $html = $this->cart->displayButton(JText::_('HIKA_NEW'),'new',$this->params,'','var link = document.getElementById(\'hikashop_checkout_'. $this->type.'_address_new_link\'); if(link) return hikashopEditAddress(link,'.(int)$same_address.',true); return false;');
if(strpos($html,'<a')!==false) echo $html; ?>
<a id="hikashop_checkout_<?php echo $this->type;?>_address_new_link" rel="{handler: 'iframe', size: {x: 450, y: 480}}" href="<?php echo hikashop_completeLink('address&redirect=checkout&task=add&step='.$this->step.'&type='.$this->type.$url_itemid,true);?>" onclick="return hikashopEditAddress(this,<?php echo (int)$same_address; ?>,true);">
<?php if(strpos($html,'<a')===false) echo $html; ?>
</a>
</span>