<?php

/**
 * @package     VP Neoteric
 *
 * @author      Abhishek Das <info@virtueplanet.com>
 * @link        https://www.virtueplanet.com
 * @copyright   Copyright (C) 2023-2025 Virtueplanet Services LLP. All Rights Reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;
?>
<?php echo $this->loadTemplate('address_userfields'); ?>

<?php if ($this->userDetails->virtuemart_user_id) : ?>
    <?php echo $this->loadTemplate('address_addshipto'); ?>
<?php endif; ?>

<?php if (!empty($this->virtuemart_userinfo_id)) : ?>
    <input type="hidden" name="virtuemart_userinfo_id" value="<?php echo (int) $this->virtuemart_userinfo_id; ?>" />
<?php endif; ?>

<input type="hidden" name="task" value="saveUser" />
<input type="hidden" name="address_type" value="<?php echo $this->address_type; ?>" />