News:

Support the VirtueMart project and become a member

Main Menu

Modify the first page products layout

Started by changlee, July 25, 2012, 13:55:55 PM

Previous topic - Next topic

changlee

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
Free SMTP Newsletter at https://www.emailbat.com and my complete SEO services at http://www.blb.gr

ivus

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

       
  • Shopping Cart  => cart/default
  • VirtueMart Categories Layout  => categories/default
  • Category Layout  => category/default
  • Manufacturer Default Layout  => manufacture/default
  • Manufacturer Details Layout  => manufacturer/details
  • List Orders  => orders/default
  • Product Details Layout  => productdetails/default
  • Account Maintenance  => user/default
  • User Edit Address  => user/edit_address
  • Displays vendor contact  => vendor/contatc
  • Displays vendors  => vendor/default
  • Displays vendor details  => vendor/details
  • View vendor TOS  => vendor/tos
  • Front page  => virtuemart/default
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.

changlee

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

:)
Free SMTP Newsletter at https://www.emailbat.com and my complete SEO services at http://www.blb.gr

ivus

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

changlee

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
Free SMTP Newsletter at https://www.emailbat.com and my complete SEO services at http://www.blb.gr