VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: trevorellis on October 30, 2020, 15:14:10 PM

Title: How Do We Have A Back To Main Shop Page On Category Overview?
Post by: trevorellis on October 30, 2020, 15:14:10 PM
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.
Title: Re: How Do We Have A Back To Main Shop Page On Category Overview?
Post by: trevorellis on November 04, 2020, 11:37:49 AM
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!
Title: Re: How Do We Have A Back To Main Shop Page On Category Overview?
Post by: Jörgen on November 04, 2020, 12:46:04 PM
Edit the category template and add a link to the desired page  ;)

Jörgen @ Kreativ Fotografi
Title: Re: How Do We Have A Back To Main Shop Page On Category Overview?
Post by: trevorellis on November 09, 2020, 12:46:01 PM
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.
Title: Re: How Do We Have A Back To Main Shop Page On Category Overview?
Post by: GJC Web Design on November 09, 2020, 13:10:14 PM


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