VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: arturmuse200 on August 07, 2012, 20:22:43 PM

Title: How create "User Account" personal Page?
Post by: arturmuse200 on August 07, 2012, 20:22:43 PM
Hi dear guys. Please help me to create user personal account page for customers in my site.
So, that registered customer can go to their orders, look at the Purchase history, to change something in the new orders (add, delete, change the delivery address, personal info.change password, etc..)? Prompt implementation of the road? may have a ready nice module or component? I searched but could not find anything, how I can do this?
Please look the attached screenshot for example.
(http://i43.fastpic.ru/big/2012/0807/50/10cbffb03bf391d8920bb149d9b60650.jpg)
Title: Re: How create "User Account" personal Page?
Post by: Attilio on November 20, 2012, 15:27:22 PM
Hello have you find solutions?
Title: Re: How create "User Account" personal Page?
Post by: WebStuff on November 20, 2012, 15:30:18 PM
You can add an "Acount Maintenance" link to the Login form like so:
1/. Navigate to [YOUR_SITE_ROOT]/modules/mod_login/tmpl
2/. Copy the the file default.php
3/. Navigate to [YOUR_SITE_ROOT]/templates/[YOUR_TEMPLATE]/html (if html doesn't exist just create it and set permissions)
4/. Create a folder called mod_login
5/. Set any permissions for the folder so it is readable by the web user.
6/. Paste the default.php here and (set it's permissions too).
7/. Open the file and add the following code to it where you would like it to appear:
<div>
<a href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=user&layout=edit'); ?>">
<?php echo JText::_('Account Maintenance'); ?></a>
</div>

It must be in the <form> at the top denoted by:<?php if ($type == 'logout') : ?>
Otherwise it will appear before anyone has logged in.

If you also want a "Order History" link then you can add this (though there is a view order link on the account maintenance page) :
<div>
<a href="<?php echo JRoute::_('index.php?option=com_virtuemart&view=orders&layout=list'); ?>">
<?php echo JText::_('Account Maintenance'); ?></a>
</div>


Or just create menu items pointing to those pages.

Hope this helps.