Friday, May 20, 2011

How to integrate external system in magento using oauth?

Do you have any idea on how to do this, please feel free to comments here...

Monday, April 11, 2011

Creating users to use MySQL and Changing Root Password in Linux debian

By default mysql creates user as root and runs with no passport. You might need to change the root password.

To change Root Password
= mysql -u root
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD('new-password') WHERE user='root';

Friday, February 4, 2011

Storing variable or other data using pear cache

You can do this by using the base cache class:

$cache = new Cache(“file”, array(“cache_dir” => “cache/”) );
$id = $cache->generateID(“this is a unique key”);

if ($data = $cache->get($id)) {

print “Cache hit.
Data: $data”;

} else {

$data = “The quality of mercy is not strained…”;
$cache->save($id, $data, $expires = 60);
print “Cache miss.


To save the data we use save(). If your unique key is already a legal file name, you can bypass the generateID() step. Objects and arrays can be saved because save() will serialize the data for you. The last parameter controls when the data expires; this can be the seconds to cache the data, or a Unix integer timestamp giving the date and time to expire the data, or zero to use the default of 24 hours. To retrieve the cached data we use get().

You can delete a cached data item using $cache->delete($id) and remove all cached items using $cache->flush().

New: A faster Caching class is Cache-Lite. Highly recommended.

Wednesday, November 10, 2010

how to customized tax in virtuemart?

Customizing tax in virtue-mart is not an easy task to do.
1.go to ps_checkout.php in classes folder
2.custom the code in there about the task you want to. have to be carefull in doing customizing the code cause it affects all virtue-mart process.
4.Just touch the code that ralate to the issue.
5. create your own function so that will not affect the other functions in there
6. You can use the other function through your fnction created.

Thursday, October 28, 2010

Creating your own desired joomla template

Creating joomla template is just a simple task to do. Any body can make their own template according to the design they want, but basically you need to be familiar of the joomla CMS itself.

Wednesday, August 11, 2010

How to custom the shipping methods in joomla virtuemart?

1. go to\administrator\components\com_virtuemart\html\
2. Open order.order_print.php
3. then edit the shipping information you want to.

Wednesday, July 7, 2010

How to edit mailfrom in joomla?

Mostly of the developer encountered problem in editing the default mailfrom in joomla
but there are many solution on this.
First Solution:
1. Go to site_url/
2. Edit the configuration.php
 var $mailfrom
4.Then Edit to the desired mail from

Second Solution:
1. Go to admin/global Configuration/Server
2. Edit Mail From Field.

3rd Solution:
1.Go to PHPmyadmin
3. Search the old mailfrom
4. Edit to the new one