VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: da8iwr on February 12, 2014, 15:17:44 PM

Title: How to Remove VMED on Virtuemart admin home page
Post by: da8iwr on February 12, 2014, 15:17:44 PM
Hi Guys
We have updated VM to the latest stable version and the VMED (Virtuemart extension directory) is showing on the home page.

Does anybody know how to turn them off, as the site is finished and working great as well as the client doesn't need to know these extensions as they are not developers in any form.

Many thanks
Ian
Title: Re: How to Remove VMED on Virtuemart admin home page
Post by: jenkinhill on February 12, 2014, 16:40:43 PM
Edit administrator/components/com_virtuemart/views/virtuemart/tmpl/default_controlpanel.php  to remove the sections you don't want the client to see and use the edited file as a template override.
Title: Re: How to Remove VMED on Virtuemart admin home page
Post by: da8iwr on February 13, 2014, 01:48:24 AM
Thanks Kelvyn
I have actually been asking how to make the template over ride, as I have tried and it isn't working from my tests. I have asked on Joomla.org and got no reply, but would you know the answer?
http://forum.joomla.org/viewtopic.php?f=615&t=835363

Many thanks
Ian
Title: Re: How to Remove VMED on Virtuemart admin home page
Post by: AH on February 13, 2014, 09:30:44 AM
You need to put your override in the correct place for admin overrides to function.

In the case of the control panel put it here:-

administrator/templates/YOUR admin template/html/com_virtuemart/virtuemart/default_controlpanel.php
Title: Re: How to Remove VMED on Virtuemart admin home page
Post by: da8iwr on February 13, 2014, 12:38:37 PM
Thanks Hudson, but i have tried this (template over ride) and it didn't work... This is what i wrote in the Joomla forum.

QuoteHi Guys
We are trying to work out if it is possible to make an override for the bluestork template, which changes a file in Virtuemart.

We know how to do this by hacking VM so it shows an extra feature in Virtuemart adding a product page, but we want to do this using a override, so if/when VM updates, it won't lose the new extra features.

This is what I have tried and it didn't work so far.

Copying this file
administrator/components/com_virtuemart/views/product/tmpl/product_edit.php

To here
administrator/templates/bluestork/html/administrator/components/com_virtuemart/views/product/tmpl/product_edit.php

Even tried here incase the admin directory wasn't needed
administrator/templates/bluestork/html/components/com_virtuemart/views/product/tmpl/product_edit.php

and it didn't work :(

Does anybody know if this is possible?

PS, I tried here rather than a VM forum, as this is a Joomla over ride, not a VM technical issue.

Many thanks
Ian
Title: Re: How to Remove VMED on Virtuemart admin home page
Post by: jenkinhill on February 13, 2014, 14:33:35 PM
As Hutson says, the override should be placed as
administrator/templates/bluestork/html/com_virtuemart/virtuemart/default_controlpanel.php 
and not in the strange places you tried to use. Template overrides have been part of Joomla since J1.5 was first introduced, for help on these see http://docs.virtuemart.net/tutorials/33-templating-layouts.html and http://www.ostraining.com/blog/joomla/overrides

Title: Re: How to Remove VMED on Virtuemart admin home page
Post by: AH on February 13, 2014, 20:59:21 PM
 :'(

I really thought I had tried hard to help?

Thanks jenkin  8)
Title: Re: How to Remove VMED on Virtuemart admin home page
Post by: razor7 on June 27, 2014, 03:04:56 AM
The Override trick did the job!

Just added this at the beginning of the file

Quote$this->virtuemartFeed = $this->extensionsFeed = false;
Title: Re: How to Remove VMED on Virtuemart admin home page
Post by: Milbo on June 27, 2014, 03:41:24 AM
Consider that this is not helpful to maintain the project.
Title: Re: How to Remove VMED on Virtuemart admin home page
Post by: AH on June 27, 2014, 09:29:22 AM
Agreed Milbo

However, I doubt the volume of people removing the advertising in the backend will have any significant impact.

Users will click on anything and that, sometimes, is less than desirable.

One of the reasons why many will be happy with the removal of the out of date/update button from the VM page.

Title: Re: How to Remove VMED on Virtuemart admin home page
Post by: Maxim Pishnyak on July 07, 2014, 15:20:53 PM
Quote from: razor7 on June 27, 2014, 03:04:56 AM
The Override trick did the job!

Just added this at the beginning of the file

Quote$this->virtuemartFeed = $this->extensionsFeed = false;
Should I report this post to moderator? Wait ... I'm moderator!