VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: pietrek on April 12, 2014, 22:26:35 PM

Title: Latest products view on homepage, where is .php?
Post by: pietrek on April 12, 2014, 22:26:35 PM
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!
Title: Re: Latest products view on homepage, where is .php?
Post by: jenkinhill on April 12, 2014, 23:39:03 PM
Template to display each product in latest (and featured, top ten & recently viewed) is components/com_virtuemart/views/virtuemart/tmpl/default_products.php
Title: Re: Latest products view on homepage, where is .php?
Post by: pietrek on April 13, 2014, 00:00:13 AM
Thank you very much! ;D

I am.grateful {happines-level:highest;}
Title: Re: Latest products view on homepage, where is .php?
Post by: FrankWe on September 16, 2014, 09:41:01 AM
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
Title: Re: Latest products view on homepage, where is .php?
Post by: GJC Web Design on September 16, 2014, 09:55:32 AM
Then you must be using template over rides
look in your templates/YOUR_TEMPLATE/html/com_virtuemart folder
Title: Re: Latest products view on homepage, where is .php?
Post by: FrankWe on September 16, 2014, 11:00:03 AM
Yey, I am using template over rides but not for this file.

Regards,
Frank
Title: Re: Latest products view on homepage, where is .php?
Post by: GJC Web Design on September 16, 2014, 11:29:40 AM
well if you change it you should... :)
Title: Re: Latest products view on homepage, where is .php?
Post by: 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?
Title: Re: Latest products view on homepage, where is .php?
Post by: guybr on September 16, 2014, 12:35:15 PM
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
Title: Re: Latest products view on homepage, where is .php?
Post by: GJC Web Design on September 16, 2014, 13:19:46 PM
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 --