News:

Support the VirtueMart project and become a member

Main Menu

VM - Featured products Module Layouts

Started by talkinggoat, September 13, 2015, 22:04:43 PM

Previous topic - Next topic

talkinggoat

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

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 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

talkinggoat

#2
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.