VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: changlee on July 25, 2012, 13:55:55 PM

Title: Modify the first page products layout
Post by: changlee on July 25, 2012, 13:55:55 PM
Hello dear friends,
I want to modify the first page of products here: http://www.idealproducts.gr/index.php

For example to show the image of the product and the price only. Which file have I to modify?

Thank you
Title: Re: Modify the first page products layout
Post by: ivus on July 25, 2012, 14:21:57 PM
Hi changlee.

Which view are you using? I mean which one did you set up as the home page component? it looks like Category Layout, but I could be wrong.

VirtueMart
They all correspond to a VIEW or a sub-view found within the "/components/com_virtuemart/views/" folder. The names are pretty self explanatory. Good luck.

I hope this helps.
Title: Re: Modify the first page products layout
Post by: changlee on July 27, 2012, 09:12:28 AM
Thank you dear ivus,
In the menu item it is a default menu item and VirtueMart ยป Category Layout TYPE

So what is the file that I have to modify?

default.xml
index.html
default.php

I am in the folder

/public_html/components/com_virtuemart/views/category/tmpl

:)
Title: Re: Modify the first page products layout
Post by: ivus on July 27, 2012, 12:10:14 PM
Hi changlee,

By way of deductions, .xml files are the manifest files, index.html is the blank landing pages to stop directory browsing... which leaves default.php.

Your answer.. default.php
Title: Re: Modify the first page products layout
Post by: changlee on July 27, 2012, 20:01:44 PM
Heloo ivus,
I entered in  default.php

I just want to show a bigger image of the product, the title and the price.

help  :-\

These are the specific lines?

<div class="width70 floatright">



<h2><?php echo JHTML::link($product->link$product->product_name); ?></h2>

<?php // Product Short Description

if(!empty($product->product_s_desc)) { ?>


<p class="product_s_desc">

<?php echo shopFunctionsF::limitStringByWord($product->product_s_desc40'...'?>

</p>

<?php ?>



The file is /public_html/components/com_virtuemart/views/category/tmpl/default.php