VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: luiskar on April 14, 2014, 19:45:11 PM

Title: How upgrade wtihout overwrite
Post by: luiskar on April 14, 2014, 19:45:11 PM
I modify some virtuemart files but i don't know how to overwrite with me template. Any ideas how can i do it without losing my configuration. I'm using virtuemart 2 and joomla 2.5.
Title: Re: How upgrade wtihout overwrite
Post by: jenkinhill on April 14, 2014, 19:54:23 PM
Template overrides: http://docs.virtuemart.net/tutorials/33-templating-layouts.html and http://www.ostraining.com/blog/joomla/overrides

Upgrading:  http://forum.virtuemart.net/index.php?topic=99127
Title: Re: How upgrade wtihout overwrite
Post by: luiskar on April 21, 2014, 18:20:12 PM
Quote from: jenkinhill on April 14, 2014, 19:54:23 PM
Template overrides: http://docs.virtuemart.net/tutorials/33-templating-layouts.html and http://www.ostraining.com/blog/joomla/overrides

Upgrading:  http://forum.virtuemart.net/index.php?topic=99127
I'm alredy try that but i don't know why in virtuemart overwrite does't work.
Title: Re: How upgrade wtihout overwrite
Post by: Maxim Pishnyak on April 24, 2014, 09:08:56 AM
What did you do?
Title: Re: How upgrade wtihout overwrite
Post by: luiskar on April 26, 2014, 10:44:05 AM
Quote from: Maxim Pishnyak on April 24, 2014, 09:08:56 AM
What did you do?
I create the folder com_virtuemart in template folder an then i copy the file i want to overwrite but the changes i made on it doesn't show in the pag, but if i change it in the original place then it works. Know I want to upgrade virtuemtar but if i do that i will lost all the changes.
Title: Re: How upgrade wtihout overwrite
Post by: jenkinhill on April 26, 2014, 11:37:02 AM
Did you follow the right directory stricture with your overrides? eg if you edit the file components/com_virtuemart/views/productdetails/tmpl/default.php then the edited file should be placed in [yourjoomlatemplate]/html/com_virtuemart/productdetails/

If the filename is the same as the original then it should override automatically, but if the file name is different then it should be selected in VM configuration.
Title: Re: How upgrade wtihout overwrite
Post by: luiskar on April 26, 2014, 19:10:20 PM
Quote from: jenkinhill on April 26, 2014, 11:37:02 AM
Did you follow the right directory stricture with your overrides? eg if you edit the file components/com_virtuemart/views/productdetails/tmpl/default.php then the edited file should be placed in [yourjoomlatemplate]/html/com_virtuemart/productdetails/

If the filename is the same as the original then it should override automatically, but if the file name is different then it should be selected in VM configuration.
For example I modify default.php from com_virtuemart/views/tmpl/category. I put the file already modified in templates/ja_zeolite/html/com_virtuemart/views/category/default.php and the changes does't show. But if I put the same file in the original folder it works.
Title: Re: How upgrade wtihout overwrite
Post by: jenkinhill on April 26, 2014, 20:37:36 PM
Quotetemplates/ja_zeolite/html/com_virtuemart/views/category/default.php
is wrong.

Should be templates/ja_zeolite/html/com_virtuemart/category/default.php
Title: Re: How upgrade wtihout overwrite
Post by: luiskar on May 03, 2014, 10:59:12 AM
Quote from: jenkinhill on April 26, 2014, 20:37:36 PM
Quotetemplates/ja_zeolite/html/com_virtuemart/views/category/default.php
is wrong.

Should be templates/ja_zeolite/html/com_virtuemart/category/default.php
Thank so much, finally works
PD: Update to vm 2.6 and all works great
PD2: How can I overwrite com_virtuemart located in the folder administrator?