Author Topic: How Do We Have A Back To Main Shop Page On Category Overview?  (Read 434 times)

trevorellis

  • Beginner
  • *
  • Posts: 35
  • A beginner
  • VirtueMart Version: VirtueMart 3.2.14
How Do We Have A Back To Main Shop Page On Category Overview?
« 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.

trevorellis

  • Beginner
  • *
  • Posts: 35
  • A beginner
  • VirtueMart Version: VirtueMart 3.2.14
Re: How Do We Have A Back To Main Shop Page On Category Overview?
« Reply #1 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!

Jörgen

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3225
    • Kreativ Fotografi
  • VirtueMart Version: 3.4.x
Re: How Do We Have A Back To Main Shop Page On Category Overview?
« Reply #2 on: November 04, 2020, 12:46:04 pm »
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

  • Beginner
  • *
  • Posts: 35
  • A beginner
  • VirtueMart Version: VirtueMart 3.2.14
Re: How Do We Have A Back To Main Shop Page On Category Overview?
« Reply #3 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.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 10027
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: How Do We Have A Back To Main Shop Page On Category Overview?
« Reply #4 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
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation