Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - PureMart (SKU# FLEX-00010)

TOPIC: Edit user override

Edit user override 11 years 2 months ago #2533

Hello,

I noticed there is no override for edit user page (Virtuemart >Account Maintenance page) in puremart template: when user goes here www.mysite.com/index.php?option=com_virtuemart&view=user&layout=edit to modify bill data or to add/edit shipment address the style is default virtuemart’s one and also the functionality is compromised - going to add/edit shipment address it should be opened in a popup frame so clicking on “cancel” the window should be closed. In this case new page is loaded in the same window and button “cancel” doesn’t work (javascript error: Uncaught TypeError: Object [object Window] has no method 'close_facebox').

So are you going to provide override for edit user page to solve this issue or maybe I’m doing something wrong?

Attachment userpage.PNG not found



Attachment add-editshipment.PNG not found




Thanks and best regards.
The administrator has disabled public write access.

Edit user override 11 years 2 months ago #2554

Hi,

Yes, our VM Template (PureMArt) doesn't cover the account maintenance page.
But we keep improving our VM Template, and i am writing this down, I am sure this will be tackled in the next PureMart release, since it is an easy thing to do.

About your Cancel Button question, since we didn't care about much for account maintenance we didn't notice this failure before.

But here is the patch, it is extremely easy to apply.
Open this PHP page:
ROOT/templates/<yourjoomlatemplate>/html/com_virtuemart/user/edit_address.php

Find this line below: (199th line)
 <button  formtarget="_parent" class="default" type="reset" on-click="parent.close_facebox()" ><?php echo JText::_('COM_VIRTUEMART_CANCEL'); ?></button>

And replace it with this:
<?php if ($rview == 'cart') {  ?>
	<button  formtarget="_parent" class="default" type="reset" on-click="parent.close_facebox()" ><?php echo JText::_('COM_VIRTUEMART_CANCEL'); ?></button>
<?php } else {  ?>
	<button  formtarget="_parent" class="default" type="reset" on-click="window.history.back()" ><?php echo JText::_('COM_VIRTUEMART_CANCEL'); ?></button>
<?php }?>

Don't forget to change on-click with onclick while copy-pasting to php file. Since it is forum, i can't type onclick in the code field!!

And everything will be good to go.
Thanks for letting us know about this issue.

Regards.
Forum Support.
Last Edit: 11 years 2 months ago by Support.
The administrator has disabled public write access.
Time to create page: 0.107 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo