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

LEAVE, Front end editor, Back To Button

Started by saviB, May 11, 2015, 15:03:55 PM

Previous topic - Next topic

saviB

Joomla! 3.4.1
VirtueMart 3.0.8

I'd like to override the destination for the "leave" button found in the administrator while editing a product from the front end. Currently, it returns to a page with no content. Could someone help me with:

- If I can create an override file, which file is this found in?

<button class="btn btn-small" onclick="location.href='index.php?option=com_virtuemart&manage=0';">

Also, please try this:

1. Navigate to product details page
2. Click edit icon
3. Click Leave To Product
4. Click Back To (whatever category)

The user is sent back to the administrator. I would say this is because that button is a simple back button, but it isn't. If you view a page with FEATURED PRODUCTS and click a product to view its detail page, the "back to" button take the user to the product category - NOT back to featured products.

5. Click Leave to Product again
6. Click HOME or any product menu item
7. User is sent back to administrator

Now the user is stuck in the administrator. To get out of this loop, they would have to click on a non Virtuemart page.




Studio 42

Hi,
perhaps chaging:
<button class="btn btn-small" onclick="location.href='index.php?option=com_virtuemart&manage=0';">
to <a class="btn btn-small" href="index.php?option=com_virtuemart&manage=0">