Category: "Joomla"
500 - An error has occurred. XML file did not load.
When I release a website from the staging to production I got an error (500 - An error has occurred. XML file did not load.) when I click the template in administration interface. The solution is easy. Just re-load templatedetails.xml in your template folder.
Google Web Fonts went strange
I have experienced a virtuemart page went very well in the development environment but after it went live, some fonts in the template went strange. That is because the live environment is https enabled and the template is hard code of the css files of Google Web Fonts in the page:
such as:
Code
<link href='http://fonts.googleapis.com/css?family=Oswald&v1' rel='stylesheet' type='text/css'> |
Well, that is not hard just two lines of PHP codes
Firstly, we should check whether they are in https site
Code
$httporhttps = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; |
Then, we change all font css reference like this:
Code
<link href='<?php echo $httporhttps; ?>fonts.googleapis.com/css?family=Oswald&v1' rel='stylesheet' type='text/css'> |
Finally, the fonts will display correctly
How to remove the VirtueMart Logo
There is an option to turn off VirtueMart Logo.
1. Go to the VirtueMart Component in Admin.
2. Click Admin->Configuration.
3. Go to the "Site" tab.
4. Unchecked "Show footer".
Finally, all VirtueMart will be gone.
How to add shortcut in control panel in Joomla
I wish to add a shortcut in the control panel in Joomla.That is the homepage of admin interface in Joomla. So that, the user is easier to access a component. That is so easy!
You just need to modify \administrator\modules\mod_quickicon\mod_quickicon.php
And at the end of the file, adding the following codes:
Code
$link = 'index2.php?option=com_virtuemart'; | |
quickiconButton( $link, 'menu_logo.gif', 'virtuemart' ); |
Virtuemart supports Joomla 1.7
Virtuemart is my choice for shopping cart. It can integrate with Joomla. But that only supported Joomla 1.5 before, even version 1.7 is the market for a few months. Yesterday, I saw there is Virtuemart 2.0, which supports Joomla 1.7. That is great!
Please click here to download Virtuemart.