News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

RE: NO MORE THEME. 2.0 uses VIEWS [SOLVED]

Started by Athlon, July 27, 2014, 11:33:56 AM

Previous topic - Next topic

Athlon

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 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
Currently using VM2.6.6 on Joomla 2.5.20 PHP 5.3.28

AH

move all the  files that you are going to modify
Regards
A

Joomla 3.10.11
php 8.0

Athlon

#2
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?
Currently using VM2.6.6 on Joomla 2.5.20 PHP 5.3.28

Athlon

#3
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 ;)
Currently using VM2.6.6 on Joomla 2.5.20 PHP 5.3.28

AH

Regards
A

Joomla 3.10.11
php 8.0

Athlon

Currently using VM2.6.6 on Joomla 2.5.20 PHP 5.3.28

AH

oops I meant copy!

Damn keyboard has a mind of its' own!  :o
Regards
A

Joomla 3.10.11
php 8.0

Athlon

#7
It must have been the TIME of the day ;)
Currently using VM2.6.6 on Joomla 2.5.20 PHP 5.3.28