VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: duchaidlu on November 18, 2014, 11:02:29 AM

Title: How to custom Related Products virtuemart 2.9.9.5
Post by: duchaidlu on November 18, 2014, 11:02:29 AM
I don't edit file Related Products. i don't know edit file
I using Joomla 3.3.6 and VM 2.9.9.5
Pls help me!
Title: Re: How to custom Related Products virtuemart 2.9.9.5
Post by: jenkinhill on November 18, 2014, 12:21:43 PM
The files used for display of related products are:
components/com_virtuemart/views/productdetails/tmpl/default_relatedproducts.php
and the sublayout at
components/com_virtuemart/sublayouts/related.php

If you edit them be sure to use the edited files as template overrides.

AS 2.9.9.5 is still a test version there is a configuration for related products (which is now in custom field format) at [yourdomain]/administrator/index.php?option=com_virtuemart&view=custom&task=edit&virtuemart_custom_id=1
Title: Re: How to custom Related Products virtuemart 2.9.9.5
Post by: duchaidlu on November 19, 2014, 02:22:55 AM
I can't find file: components/com_virtuemart/sublayouts/related.php
I tried file default_relatedproducts.php
But can't change related products
(http://i.imgur.com/GoeG5yM.png)
Title: Re: How to custom Related Products virtuemart 2.9.9.5
Post by: AH on November 19, 2014, 09:41:06 AM
FYI

There is no sublayout for related products and categories in 2.9.9.5

components/com_virtuemart/sublayouts/related.php

Title: Re: How to custom Related Products virtuemart 2.9.9.5
Post by: jenkinhill on November 19, 2014, 12:13:23 PM
It is in the latest version from SVN and in the VM3 version we have for internal testing. I suggest not to change template layouts/styles on the RC versions but wait for the public "stable" VM3 as there still may be template/style changes.
Title: Re: How to custom Related Products virtuemart 2.9.9.5
Post by: AH on November 21, 2014, 18:46:14 PM
Yep jump to VM3 no longer use 2.9.9.5

related.php is a new sublayout