News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Remove Shipment Address Button

Started by sscheidegger, August 22, 2013, 17:44:35 PM

Previous topic - Next topic

sscheidegger


In my template I would like to display a "Remove" button in the checkout process for removing a previously entered shipment address. In previous versions of VM 2 I got this to work with the following code:

    <form method="post" id="adminForm" name="userForm" class="form-validate" action="index.php?option=com_virtuemart&view=user&task=editaddresscart&addrtype=ST&cid[]=<?php echo $this->cart->lists['current_id']; ?>">
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="view" value="user" />
<input type="hidden" name="controller" value="user" />
<input type="hidden" name="task" value="savecartuser" />
<input type="hidden" name="address_type" value="ST" />
<input type="hidden" name="virtuemart_userinfo_id" value="0" />
<a class="details" href="javascript:document.userForm.submit();"><?php echo JText::_('MY_VM_REMOVE'); ?></a>
    </form>


In the current version of VM, this only removes the non mandatory fields of the shipment address, but not all of it.
Does anyone know how to do it?