VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: texturesdepot on October 17, 2012, 09:22:14 AM

Title: Hello... I want to put the product image above, remove the product name and...
Post by: texturesdepot on October 17, 2012, 09:22:14 AM
Hello... Im new in Virtuemart... In the front page and in each category list-grid I would like to put the product image above, remove the product name and put the "view details" button below the image... how could I do this?

Thanks in advance for your reply and help...!
Title: Re: Hello... I want to put the product image above, remove the product name and...
Post by: Eugen S. on October 17, 2012, 10:57:48 AM
Hello ,

this can be done by joomla template overrides or by modifying the core files.

Following files are responsible for the output of products:

Products within a category:
/components/com_virtuemart/views/category/tmpl/default.php

Products on VirtueMart frontage:
/components/com_virtuemart/views/virtuemart/tmpl/default_products.php


I don`t think that you will have a good change in the forum that somebody will describe every line of code which you have to change. But with a little PHP understanding this is easy. It`s just moving some code blocks. A developer should be able to do this within 15 - 20 minutes.



Sincerely,

Eugen Stranz
Title: Re: Hello... I want to put the product image above, remove the product name and...
Post by: texturesdepot on October 17, 2012, 13:22:01 PM
Thanks for your reply... I really prefer to modify the theme... Im using atisteer and stylizer for that. TAlking about the theme, do you know what files contain that info? I know how to modify colors, sizes, etc., but I dont know how to modify order of elements into that container... what variable need I to include or modify?

Just to be sure, Im talking about to put the product name and all text below the image product, not beside...

Thanks a lot for your help...!
Title: Re: Hello... I want to put the product image above, remove the product name and...
Post by: jenkinhill on October 17, 2012, 15:42:22 PM
This has got nothing to do with Artisteer - although the css that system uses can play havoc with styling VirtueMart. That is for your Joomla template. Components display by using view templates, which can be edited and then used as overrides to control the component layout.

Try these:
http://forum.virtuemart.net/index.php?topic=90935.0
http://forum.virtuemart.net/index.php?topic=98505.0
http://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system
Title: Re: Hello... I want to put the product image above, remove the product name and...
Post by: BKintera on September 19, 2013, 00:26:25 AM
Quote from: Eugen S. on October 17, 2012, 10:57:48 AM
Hello ,

this can be done by joomla template overrides or by modifying the core files.

Following files are responsible for the output of products:

Products within a category:
/components/com_virtuemart/views/category/tmpl/default.php

Products on VirtueMart frontage:
/components/com_virtuemart/views/virtuemart/tmpl/default_products.php


I don`t think that you will have a good change in the forum that somebody will describe every line of code which you have to change. But with a little PHP understanding this is easy. It`s just moving some code blocks. A developer should be able to do this within 15 - 20 minutes.



Sincerely,

Eugen Stranz

I register just to say thank you, thank you, thank you very much!
Title: Re: Hello... I want to put the product image above, remove the product name and...
Post by: Eugen S. on November 24, 2013, 18:14:41 PM
Quote from: BKintera on September 19, 2013, 00:26:25 AM
Quote from: Eugen S. on October 17, 2012, 10:57:48 AM
Hello ,

this can be done by joomla template overrides or by modifying the core files.

Following files are responsible for the output of products:

Products within a category:
/components/com_virtuemart/views/category/tmpl/default.php

Products on VirtueMart frontage:
/components/com_virtuemart/views/virtuemart/tmpl/default_products.php


I don`t think that you will have a good change in the forum that somebody will describe every line of code which you have to change. But with a little PHP understanding this is easy. It`s just moving some code blocks. A developer should be able to do this within 15 - 20 minutes.



Sincerely,

Eugen Stranz

I register just to say thank you, thank you, thank you very much!

You are welcome ;-)