Pages

Change Domain in Magento

If you need to update the domain name of your Magento installation, just follow these steps:

  1. Login to cPanel.
  2. Click the phpMyAdmin icon.
  3. Select your Magento database
  4. Click the link for the core_config_data table.
  5. Look for the "path" fields named web/unsecure/base_url and web/secure/base_url. (Currently, the "config_id" is 2 and 3.)
  6. Change each "value" to your new domain.
  7. You may need to empty your /var/cache/ folder before it works.

Edit Email Templates in Magento

Default place/locale. You should not customize them in the filesystem.

app/locale/en_US/template/email/

Customize email and to create a new email template you have to go to 

admin -> system -> transactional emails -> add new template -> choose the base template from the drop down and edit as appropriate.

It is possible that your email templates are already saved into the database. Then you can assign the newly created template to proper functionality.

For e.g. if you have created new template for Invoice you can assign as follows.Go to

admin -> system -> configuration -> Sales Emails -> Invoice -> Invoice Email Template

And from the drop down select the template you created for invoice and save config.

Most important step.
- Clear the Cache.
- Go to System –> Cache Management
- Refreh Cache.
- If you have not enabled the Cache OR if it didn’t work even after refreshing the cache, then
- delete the cache folder present inside var (var/cache)

How to change Joomla Admin Folder Name or Path

how to protect your admin side of website. Rename Joomla administrator directory without having to modify any Joomla code.

1. Create a new directory in your root directory (eg. "newadmin")
2. Create an index.php file in your "newadmin" directory

## newadmin/index.php

$admin_cookie_code="1234567890";
setcookie("JoomlaAdminSession",$admin_cookie_code,0,"/");
header("Location: ../administrator/index.php");

3. Add this to the beginning of index.php in real administrator folder

if ($_COOKIE['JoomlaAdminSession'] != "1234567890")
{
header("Location: ../index.php");
}


To login Joomla administration page, go to "http://yoursite.com/newadmin/". The php code will set a cookie that expires at the end of the session and redirect you to your real administration page. No one will be able to load anything from the administrator directory without having gone through the "newadmin" directory first.

Load Flash Video Before Load Front Page Joomla

Create a .htaccess file which contains the following code:

DirectoryIndex index.html index.php

Then create a index.html where you include the flash. If you make the flash linkable and have it go to the index.php it should work.