Monthly Archives: January 2014
-
January 30, 2014
Create the Dropbox app use this following url http://www.samdoit.com/news/how-to-create-dropbox-app
Go to your admin panal menu click the menu by
System-->Tools->Multibackup
then click the button called
Check Available Backup
all the already taken bakup files are uploaded to Dropbox what are already linked to this site.
-
January 23, 2014
Create DropBox app
- Use following link to create new app in DropBox .
-
Create App using following image shown.
Then click the button “Create App” . then you hava a access key and secret look like following image
After Creating DropBox App login to your Magento store admin go to
-
January 11, 2014
Use of session in Magento:
Let’s start this blog with the session definition, ‘It is a way to preserve certain data across subsequent accesses’. This enables you to build more customized applications and increase the appeal of your web site. Now, Let’s see how to set ,unset and retrieve a session in Magento.Generally, Magento session is handled by core Module ‘core/session’. We use “set<session name>” to set a session variable. For more understanding, look on to the following syntax and example.
Mage::getSingleton(‘core/session’)->set<YOUR SESSION NAME>(<VARIABLE NAME>);
Example :
$myValue =’test’;
Mage::getSingleton(‘core/session’)->setMyValue($myValue);In this example, I have declared
-
January 11, 2014In this blog we will see advanced operations in model and collection, to execute complex sql queries. We will look into collections and details of resource models.
First let’s look at model and collection architecture in magento. If you look at a magento model class it extends Mage_Core_Model_Abstract which intern extends Varien_Object.The class Mage_Core_Model_Abstract has function like getId(), load(), save(), delete() etc .
SQL and Mysql4 Resource FilesMysql4 resource files, as I mentioned earlier are used to perform database queries on tables. Below will list how we do sql operations inside resource files.
SELECT QUERY
Suppose we have the file Excellence_Test_Model_Mysql4_Test resource file.
<?php class Excellence_Test_Model_Mysql4_Test
-
January 11, 2014
Magento Wordpress Related Post using fishpig integration display Related Post
-
January 11, 2014
If you are modifyed some file automaticaly like log , cache in any application , web site on development or live . you does`t want to update that particular file into your git repository .
You have a question about How to change Git updated index to previous index setting , just use this following comment in your comment line with current available git copy of your folder .
find {your folder} -type f -exec git update-index --assume-unchanged '{}' \;
for example from magento change the index of media folder
find media/catalog/product/v/ -type f -exec git update-index --assume-unchanged '{}' \;
-
January 11, 2014
Hi friends,
Some people ask about the difference betweenMage::getModel() and Mage::getSingleton()
in Magento. Here is the difference between these two:
Mage::getModel('module/model')
will create a new instance of the model object (if such object exists in configuration)
So if we write:Mage::getModel('catalog/product'),
it will create new instance of the object product each time. So,
$p1 = Mage::getModel('catalog/product');
$p2 = Mage::getModel('catalog/product');
Then $p1 is a one instance of product and $p2 is another instance of product.While Mage::getSingleton('catalog/product') will create reference on existing object (if object does not exist then this method will create an instance using ::getModel() and returns reference to it).
So, if -
January 11, 2014
Magento Wordpress Integrated Search
Magento Wordpress integrated search is used to search your blog content in your magento search.view your blog content results in magento front end .
Content Search From
* wordpress blog
* Hesk Knowledgebase
* Drpal content
* Joomla content
comeing soon...
-
January 11, 2014
Here is the detail for Get current store id in magento
Magento Get store data.
Mage::app()->getStore();
Magento Store IdMage::app()->getStore()->getStoreId();
Magento Store codeMage::app()->getStore()->getCode();
Magento Website IdMage::app()->getStore()->getWebsiteId();
Magento Store NameMage::app()->getStore()->getName();
Magento Is ActiveMage::app()->getStore()->getIsActive();
Magento Store Home Url.Mage::app()->getStore()->getHomeUrl();
-
January 11, 2014
You want to integrate your store to blog.simply follow my simple steps.
Step 1:
Goto magneto store files edit index.php add these lines
if ( strpos($_SERVER['REQUEST_URI'], 'index.php/admin') === FALSE )
{
define('WP_USE_THEMES', false);
require_once('../wp-load.php'); // configure your WordPress location.
}
Step 2:
copy "Your-magento-folder/app/code/core/Mage/Core/functions.php"
to "Your-magento-folder/app/code/local/Mage/Core/functions.php"
If u not have the folder structure create that folder and paste .
Step 3: