Author Topic: VM - Featured products Module Layouts  (Read 754 times)

talkinggoat

  • Beginner
  • *
  • Posts: 2
  • A beginner
VM - Featured products Module Layouts
« on: September 13, 2015, 22:04:43 pm »
I am trying to make a new layout for the Featured Products module. I created a template override and renamed default.php to override.php, changed the html and refreshed the module, but it doesn't show up as a Layout choice. I only have default and single. Am I changing the right file?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9390
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.6.8
Re: VM - Featured products Module Layouts
« Reply #1 on: September 13, 2015, 22:24:40 pm »
We can't say as u don't mention where you put your over ride

if it the correct path just name it 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

talkinggoat

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: VM - Featured products Module Layouts
« Reply #2 on: September 13, 2015, 23:37:59 pm »
Aren't all overrides supposed to go in template/TEMPLATE NAME/html/mod_MDOULE NAME? I tried creating a templ folder, like the one in the modules folder, in the mod_virtuemart_product, but it did not change anything. I also tried renaming the default.php and using the default.php with the modifications. So the question is, where do I need to put templates for the featured items module?

EDIT:
After looking at the .xml file, for the module, it is hard coded to search in the mod_virtuemart_product/tmpl folder, on line 21. Is there any way to override the setting, that will last an upgrade?

Another EDIT:
Apparently, you have to clear and purge the cache, before you will see any changes. Putting the template file in html/mod_virtuemart_product/NEWNAME.php, clearing then purging the cache updated the module and the new layout showed up as a choice.