News:

Support the VirtueMart project and become a member

Main Menu

Overriding templates.....did I miss something here?

Started by romeo2die, August 06, 2013, 14:06:17 PM

Previous topic - Next topic

romeo2die

Hi guys,

I've been struggling with this template overriding stuff for over a week. I have followed some tutorials I found on google but still no result. The last one I followed was from this:

QuoteMost VirtueMart 2 users want to change the styles and layouts as defined in the default vmsite-ltr.css. We recommend to create an override file, to which you can apply all desired changes. The only difference from overriding other VirtueMart files is the location of the vmsite-ltr.css override. The file should be copied into your Joomla template's css folder, i.e.:

yourdomain\templates\yourtemplate\css\vmsite-ltr.css

However, after doing this, the image paths for some VirtueMart images and icons, like for example the background.png for the 'Add to Cart' button, are not valid for the new location of vmsite-ltr.css in your template folder. The most simple trick to solve this small problem, is to copy the folder

    vmgeneral

and the image files

    vm2-sprite.png (holds i.e. the 'update quantity in cart' and 'delete from cart' icons)
    color-stars.png (the stars for displaying product ratings in the product details view)
    icon_external_link.png

from

yourdomain\components\com_virtuemart\assets\images

into your template's image folder, i.e.:
yourdomain\templates\yourtemplate\images

After doing this, you should have a working override file, which doesn't become overridden upon each update of VirtueMart 2.
http://docs.virtuemart.net/tutorials/33-templating-layouts/106-override-vmsite-ltr-css.html

I have modified the file after that, but still no change yet. Did I miss anything on the progress? I really need you guys help.

Regards



AH

It would be useful to know what you are trying to override!
Regards
A

Joomla 4.4.5
php 8.1

romeo2die

I am trying to override my PRODUCTDETAILS layout page

AH

You should read this, it has all the details and relevant post you need to do overrides to a template.

http://forum.virtuemart.net/index.php?topic=92756.0


Ensure that you create template overrides in the relevant root/yourtemplate/html/viewname

Do not just go and edit the view template in components/com_virtuemart/views/tmpl

As these will get overwritten with any updates
Regards
A

Joomla 4.4.5
php 8.1