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

TOPIC: Delete button in address box

Delete button in address box 9 years 1 month ago #11851

I have a problem with the button "cancel" in the pop up window "add/edit invoice address information". The link went to the home page, so I changed the file edit_adress.php in this line:
<button class="btn" type="reset" onclick="window.location.href='<?php echo JRoute::_ ('index.php/shop/user/editaddresscartBT?tmpl=component&flexible=edit' . $rview); ?>'"><?php echo JText::_ ('COM_VIRTUEMART_CANCEL'); ?></button>

But it doesn't work properly because at the top of the window I see also the section: SIGN UP BELOW TO CREATE YOUR ACCOUNT.
And the in the Delivery address window I have the same text of the invoice (always after I click the delete button).

Which is the correct line of code?

Thank you very much for the help.

Website test.clockcardsrus.com/
The administrator has disabled public write access.

Delete button in address box 9 years 1 month ago #11889

Hi,

Actually you should better remove the "Cancel" button completely, it is redundant. Because there is already a CLOSE icon at top-right corner to close the modal-popup, (or clicking outside of modalPopup also closes the popup)

To remove the "Cancel" button, eliminate these lines:
<button class="btn" type="reset" onclick="window.location.href='<?php echo JRoute::_ ('index.php?option=com_virtuemart&view=' . $rview); ?>'"><?php echo JText::_ ('COM_VIRTUEMART_CANCEL'); ?></button>

from the /templates/flexible_stylemart/html/com_virtuemart/user/edit_address.php file.

Regards.
The administrator has disabled public write access.
Time to create page: 0.265 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