News:

Support the VirtueMart project and become a member

Main Menu

Templates overrides.....what did I do wrong on these steps?

Started by romeo2die, August 07, 2013, 10:17:09 AM

Previous topic - Next topic

romeo2die

Ok guys, I have followed all the step-by-step provided in this forum. I've been pulling my hair dealing with this. But I have a feeling I almost get it. Here's all the step-by-step I've done.

1) I copied and move the default.php (some doesn't have default.php) ...for each folders I found here components/com_virtuemart/views/MANY FOLDERS to
templates/MYTEMPLATE/html/com_virtuemart/MANYFOLDERSIMADE

2) I also copied the file vmsite-ltr.css from
components/com_virtuemart/assets/css to
templates/MYTEMPLATE/css

3) I also have copied some images and icons from
components/com_virtuemart/assets/images to
templates/MYTEMPLATE/images

4) Not to mention I have turn off "use vm css" on VM configuration page in administrator, only to find out the product detail pages I am trying to modify look messy. I have some additional images for some products, and those images were shown in the real size, making the page look messy.


Can anyone please help me dealing with this issue, specially for modifying the product detail page? MY QUESTIONS:
1)Which additional folder/files in com_virtuemart I have to copy?
2)Any other additional codes I have to put in any files?

Thanks

AH

The files that are releated to views are in the views/viewname/tmpl folders

If you want to adjust a view Create an folder in your template/html

e.g.

Your template name is "beez5"
You want to adjust the product details page view (but this is made up for more than just default.php!!)  See the first post on this thread for the files and their purpose
http://forum.virtuemart.net/index.php?topic=98505.0

To adjust any one of these elements:-

1.) Create folder root/templates/beez5/html/com_virtuemart/productdetails
2.) Copy the file/s you are want to adjust from the root/components/com_virtuemart/views/productdetails/tmpl

to adjust the main structure of the page - copy over default.php
to adjust the image display - copy over  default_images.php  -    Main Image & Additional Images
to adjust the prices layout - copy over  default_showprices.php -    Main Image & Additional Images

3. Now adjust the view as required

Use this post to see what some of the variable are etc,
http://forum.virtuemart.net/index.php?topic=92756.0
Regards
A

Joomla 4.4.5
php 8.1

romeo2die

@Hutson

Thanks a lot, I really appreciate it! I will give it a try!


romeo2die

Quote from: Hutson on August 07, 2013, 13:02:49 PM
The files that are releated to views are in the views/viewname/tmpl folders

If you want to adjust a view Create an folder in your template/html

e.g.

Your template name is "beez5"
You want to adjust the product details page view (but this is made up for more than just default.php!!)  See the first post on this thread for the files and their purpose
http://forum.virtuemart.net/index.php?topic=98505.0

To adjust any one of these elements:-

1.) Create folder root/templates/beez5/html/com_virtuemart/productdetails
2.) Copy the file/s you are want to adjust from the root/components/com_virtuemart/views/productdetails/tmpl

to adjust the main structure of the page - copy over default.php
to adjust the image display - copy over  default_images.php  -    Main Image & Additional Images
to adjust the prices layout - copy over  default_showprices.php -    Main Image & Additional Images

3. Now adjust the view as required

Use this post to see what some of the variable are etc,
http://forum.virtuemart.net/index.php?topic=92756.0

It doesn't work, the layout still messy as before. Is there any additional configuration I have to do in VM administrator? I have set the virtuemart configuration template as my current template, disable vm css, but still getting the same result. Or do I have to modify the files I have copied to my template folder?

romeo2die

not to mention:
Quote) I also copied the file vmsite-ltr.css from
components/com_virtuemart/assets/css to
templates/MYTEMPLATE/css

Do I need to do anything with the vmsite-ltr.css? where is the right folder to put this file at?

romeo2die

QuoteThe files that are releated to views are in the views/viewname/tmpl folders

If you want to adjust a view Create an folder in your template/html

e.g.

Your template name is "beez5"
You want to adjust the product details page view (but this is made up for more than just default.php!!)  See the first post on this thread for the files and their purpose
http://forum.virtuemart.net/index.php?topic=98505.0

To adjust any one of these elements:-

1.) Create folder root/templates/beez5/html/com_virtuemart/productdetails
2.) Copy the file/s you are want to adjust from the root/components/com_virtuemart/views/productdetails/tmpl

to adjust the main structure of the page - copy over default.php
to adjust the image display - copy over  default_images.php  -    Main Image & Additional Images
to adjust the prices layout - copy over  default_showprices.php -    Main Image & Additional Images

3. Now adjust the view as required

Use this post to see what some of the variable are etc,
http://forum.virtuemart.net/index.php?topic=92756.0

Ok, I have tried to do those steps above, making modification etc, but still no effect yet.....Can someone please help me?

Maxim Pishnyak

You can support Community by voting for Project on the JED
https://extensions.joomla.org/extension/virtuemart/#reviews
Join us at
https://twitter.com/virtuemart