News:

Support the VirtueMart project and become a member

Main Menu

Latest products view on homepage, where is .php?

Started by pietrek, April 12, 2014, 22:26:35 PM

Previous topic - Next topic

pietrek

Hello,

VM 2.6, J 2.5.14

Which .php file is rensponsible for displaying products on front page in a group "latest products"?

I want to keep the same look of product display both when browsing category and on home page, where I use core function - latest products.

Someone somewhere wrote, that the .php file is: template/html/mod_virtuemart_product/default.php, but changing it doesn't work for me, even if I make a bug per purpose.

Thanks in advance. Otherwise, maybe there is better way to display 30-40 cross-category products list on shop's homepage?

Thanks in advance!

jenkinhill

Template to display each product in latest (and featured, top ten & recently viewed) is components/com_virtuemart/views/virtuemart/tmpl/default_products.php
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

pietrek

Thank you very much! ;D

I am.grateful {happines-level:highest;}

FrankWe

Hello jenkinhill,

I am using VM 2.6.10 and the file you mentioned is not working for me. Changes in this file do not change the looking of the product list with the latest products!

So I am still searching for the correct php file.

Regards,
Frank

GJC Web Design

Then you must be using template over rides
look in your templates/YOUR_TEMPLATE/html/com_virtuemart folder
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

FrankWe

Yey, I am using template over rides but not for this file.

Regards,
Frank

GJC Web Design

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

FrankWe

I have now copied the file "default_products.php" from

    /components/com_virtuemart/views/virtuemart/tmpl/default_products.php

to

    /templates/<templatename>/html/com_virtuemart/default_products.php

I now made some changes in this file but the changes I made are not being used in the module "latest products".  :(

So what is going wrong here?

guybr

Quote from: FrankWe on September 16, 2014, 12:21:33 PM
I have now copied the file "default_products.php" from

    /components/com_virtuemart/views/virtuemart/tmpl/default_products.php

to

    /templates/<templatename>/html/com_virtuemart/default_products.php

I now made some changes in this file but the changes I made are not being used in the module "latest products".  :(

So what is going wrong here?

I think you're missing the subdirectory name in your override location: you need to add /virtuemart/ - thus:   /templates/<templatename>/html/com_virtuemart/virtuemart/default_products.php

GJC Web Design

QuoteI think you're missing the subdirectory name in your override location: you need to add /virtuemart/ - thus:   /templates/<templatename>/html/com_virtuemart/virtuemart/default_products.php

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