Dear jenkinhill
Thank you so much! (you helped me often for which i want to give you my special thanks!)
For everybody who wants to remove shipping address, pls remove following code from /components/com_virtuemart/views/cart/tmpl/default_pricelist.php. I tested it and everything else still works in good order:
<div class="width50 floatleft">
<span><span class="vmicon vm2-shipto-icon"></span>
<?php echo JText::_('COM_VIRTUEMART_USER_FORM_SHIPTO_LBL'); ?></span>
<?php // Output Bill To Address ?>
<div class="output-shipto">
<?php
if(empty($this->cart->STaddress['fields'])){
echo JText::sprintf('COM_VIRTUEMART_USER_FORM_EDIT_BILLTO_EXPLAIN',JText::_('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL') );
} else {
if(!class_exists('VmHtml'))require(JPATH_VM_ADMINISTRATOR.DS.'helpers'.DS.'html.php');
echo JText::_('COM_VIRTUEMART_USER_FORM_ST_SAME_AS_BT'). VmHtml::checkbox('STsameAsBT',$this->cart->STsameAsBT).'<br />';
foreach($this->cart->STaddress['fields'] as $item){
if(!empty($item['value'])){ ?>
<!-- <span class="titles"><?php echo $item['title'] ?></span> -->
<?php
if ($item['name'] == 'first_name' || $item['name'] == 'middle_name' || $item['name'] == 'zip') { ?>
<span class="values<?php echo '-'.$item['name'] ?>" ><?php echo $this->escape($item['value']) ?></span>
<?php } else { ?>
<span class="values" ><?php echo $this->escape($item['value']) ?></span>
<br class="clear" />
<?php
}
}
}
}
?>
<div class="clear"></div>
</div>
<?php if(!isset($this->cart->lists['current_id'])) $this->cart->lists['current_id'] = 0; ?>
<a class="details" href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=ST&cid[]='.$this->cart->lists['current_id'],$this->useXHTML,$this->useSSL) ?>">
<?php echo JText::_('COM_VIRTUEMART_USER_FORM_ADD_SHIPTO_LBL'); ?>
</a>
</div>
only when you want to change ""bill to" address, so you click on that, than in that case still at the bottom of that page is showing: add/alter shipping address. I will look into this and hope to find a solution for that too. (however i am already very happy with the result right now)
Kind regards
Renata