VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Athlon on July 27, 2014, 11:33:56 AM

Title: RE: NO MORE THEME. 2.0 uses VIEWS [SOLVED]
Post by: Athlon on July 27, 2014, 11:33:56 AM
Hey Guys/Girs,

Im new here so be gentle.

Working on "Product Details" layout and got stucked with this original post
"NO MORE THEME. 2.0 uses VIEWS (Layout Override)" http://forum.virtuemart.net/index.php?topic=90935.0 (http://forum.virtuemart.net/index.php?topic=90935.0) dated back to 2011
Many pages links to that topic.

It says:
QuoteDoing a Joomla Template Override is easy.
Open the view folder you want to change, THEN, the tmpl folder.
COPY the "default.php"
THEN< follow the steps below.
In your JOOMLA template folder. You create a folder called  "html" then a folder called "com_virtuemart" in it.
Then for each view you want to override. Create a folder for it.
Then place your modified "default.php" an that views folder.
So , to override the product details page. You create YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php

Doing a Joomla Template override guarantees the view will use your modified default.php

But the thing is, when i open the folder components/com_virtuemart/views/productdetails/tmpl i do have a "default.php" file there, but I want to change "default_showprices.php" file.

My question is, should i move ONLY the "default.php" file?
or any file i'm going to modify?

Thanks for answers.

VM2.6.6
J 2.5.20
Title: Re: RE: NO MORE THEME. 2.0 uses VIEWS
Post by: AH on July 27, 2014, 11:48:27 AM
move all the  files that you are going to modify
Title: Re: RE: NO MORE THEME. 2.0 uses VIEWS
Post by: Athlon on July 27, 2014, 11:53:48 AM
Thats what i thought, Thanks

But, I have a problem with editing the file now.
Whenever I update the copied file dafault.php, it wont show any changes (all rights are set to 755)
but when I change the original file it does show changes.

Any thoughts?

Hutson, you said MOVE?
Title: Re: RE: NO MORE THEME. 2.0 uses VIEWS
Post by: Athlon on July 27, 2014, 13:49:39 PM
Ok sorted.

Original
/web/components/com_virtuemart/views/virtuemart/tmpl/default.php

forgot about one folder to make;)
Copy
/web/templates/corporate_response/html/com_virtuemart/productdetails/default.php

Hope it helps someone ;)
Title: Re: RE: NO MORE THEME. 2.0 uses VIEWS
Post by: AH on July 27, 2014, 21:24:44 PM
yep I said move and you moved!

8)
Title: Re: RE: NO MORE THEME. 2.0 uses VIEWS
Post by: Athlon on July 27, 2014, 21:38:30 PM
I moved the copy  ::)
Title: Re: RE: NO MORE THEME. 2.0 uses VIEWS
Post by: AH on July 28, 2014, 10:28:56 AM
oops I meant copy!

Damn keyboard has a mind of its' own!  :o
Title: Re: RE: NO MORE THEME. 2.0 uses VIEWS [SOLVED]
Post by: Athlon on July 28, 2014, 11:39:42 AM
It must have been the TIME of the day ;)