Page 3 - Git
-
- 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 the variable $myValue as “test”. I am going to set this variable in session. To do so, I have used the default syntax of the Magento in line 2. Now the session variable is set in the magento.Wow, its easy to set the session variable.
Let’s now look, how to get value from the session variable
-
- 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 extends Mage_Core_Model_Mysql4_Abstract { public function _construct() { $this->_init('test/test', 'test_id'); } public function loadByField($field,$value){ $table = $this->getMainTable(); $where = $this->_getReadAdapter()->quoteInto("$field -
- 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
Magento e-commerce has a standard newsletter function that is useful if you get it to work. This post will highlight the major reasons why your newsletter is not sent to your customers.
- Magento schedules and sends the newsletters using a cronjob script called “cron.php” in your Magento installation root folder. To schedule this cronjob you need to access your web server using SSH (You can use for example Putty). For more information see the Magento wiki.
- If you don’t want to schedule the cronjob you need to go twice to the cron.php file in your browser e.g. www.yoursite.com/cron.php every time you want to send your newsletter. The first time it will schedule the newsletter and the second time it will send it.
- After login with ssh type: crontab -e This will open an editor. The contents may be empty if you have never set up crontabs for the current user.
- To schedule the cronjob every 5 minutes you should enter: */5 * * * * php /absolute/path/to/magento/cron.php
- Save and close
- Now you can