News:

Support the VirtueMart project and become a member

Main Menu

How Do We Have A Back To Main Shop Page On Category Overview?

Started by trevorellis, October 30, 2020, 15:14:10 PM

Previous topic - Next topic

trevorellis

Hello, we would like to have a button that takes you back to the main shop page - https://magicflame.co.uk/menu, when you are on a specific category page e.g. - https://magicflame.co.uk/menu/calzones. We like that you can go back to the category from a specific product e.g. - https://magicflame.co.uk/menu/calzones/bolognese-3-detail with the "Back To [CategoryName]" button/text/label. We want something like that.

How do we achieve this alteration? Is there an option in the Virtuemart configuration? Or do we have to amend code? If so, can we do this with an override so that it's not replaced when we update Virtuemart?

Any assistance would be greatly appreciated. Thanks in advance.

trevorellis

I would really appreciate some help with this. If anybody has any idea or could point me to a relevant forum then please let me know. Thanks in advance!

Jörgen

Edit the category template and add a link to the desired page  ;)

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

trevorellis

Hello, thanks for the suggestion. Is that in templates/TEMPLATENAME/html/com_virtuemart/category? If so, do you how I can do it as an override? Also, what code would I actually need to put in to generate a button doing that?

Thanks in advance.

GJC Web Design



something like

<div id="returntomenu">
<a href="/menu" "class="btn btn-primary">Return to menu</a>
</div>

in  templates/vp_smart/html/com_virtuemart/category/default.php
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation