magento help logo

All about magento…

10 Jun

Add blog in magento


If you running your magento store and you want to add more functionality like blog in your magento store then this will sure help you

very easy to install and use with all blog functionality .

Click here for more details

very useful blog extension.


10 Jun

Remove index.php from magento


Its very ugly look index.php every time in magento url many client want to remove that and make url seo friendly its easy to do this in magento with .htaccess editing.

open .htaccess from root folder . Open it on a text editor and find this line,
#Rewrite Base /magento/ .
replace it with
Rewrite Base / .

Login in to your magento admin Web Server Rewrites.

fot that go to  System > Configuration > Web > Search Engine Optimization.

Now goto your Cache Management page
System > Cache Management and refresh your Cache and also refresh the Web Redirects.

check you front end .

that it ...


10 Jun

Magento free extensions


i found very good link to get free some cool magento extension
Click here to see

this will sure help your Magento store


18 Feb

Execute faster magento site.


Normally magento takes to much time to load and its such a pain too many files being loaded and many functions and classes also HTTP requests makes it slower.

A small htaccess trick makes magento site real faster.

goto your site root and find the .htaccess file.

find this code there, line no 77 – 97,

  1.  
  2. ## http://developer.yahoo.com/performance/rules.html#gzip
  3.  
  4. # Insert filter on all content
  5. ###SetOutputFilter DEFLATE
  6. # Insert filter on selected content types only
  7. #AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
  8.  
  9. # Netscape 4.x has some problems...
  10. #BrowserMatch ^Mozilla/4 gzip-only-text/html
  11.  
  12. # Netscape 4.06-4.08 have some more problems
  13. #BrowserMatch ^Mozilla/4.0[678] no-gzip
  14.  
  15. # MSIE masquerades as Netscape, but it is fine
  16. #BrowserMatch bMSIE !no-gzip !gzip-only-text/html
  17.  
  18. # Don't compress images
  19. #SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
  20.  
  21. # Make sure proxies don't deliver the wrong content
  22. #Header append Vary User-Agent env=!dont-vary
  23.  

Replace it with this

  1.  
  2. ## http://developer.yahoo.com/performance/rules.html#gzip
  3.  
  4. # Insert filter
  5. SetOutputFilter DEFLATE
  6.  
  7. # Netscape 4.x has some problems…
  8. BrowserMatch ^Mozilla/4 gzip-only-text/html
  9.  
  10. # Netscape 4.06-4.08 have some more problems
  11. BrowserMatch ^Mozilla/4.0[678] no-gzip
  12.  
  13. # MSIE masquerades as Netscape, but it is fine
  14. BrowserMatch bMSIE !no-gzip !gzip-only-text/html
  15. # Don’t compress images
  16. SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
  17.  
  18. # Make sure proxies don’t deliver the wrong content
  19. Header append Vary User-Agent env=!dont-vary
  20.  
  21. # enable resulting html compression
  22. php_flag zlib.output_compression on
  23.  

16 Feb

Problem in passing shipping address to paypal from magento


Problem in passing shipping address to paypal from magento
At several places many people have posted problem regarding this problem.

Simple solution to this problem is to pass address_override variable with value 1 to paypal. Check the value in the following file.

Path : magento\app\code\core\Mage\Paypal\Mode\Api
file:standart.php

find: ‘address_override’ change to: : “‘address_override’ => 1” , if it is 0.
Keep this thing in mind that you have to enter the valid address in magento to have the proper results at paypal. If the address_override value is 1 and you will enter the wrong address into magento it will give following error when it redirects to paypal.

“Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address.”
Second solution to avoid paypal error :

In magento if address_override variable is set to 0 it is not carring shipping address to paypal. To change this that even if you set address_override to 0 and not enter the valid address details & want magento and paypal to work on this follow these steps.

Path : magento\app\code\core\Mage\Paypal\Model

file:standart.php
find:

  1.  
  2. if ($isQuoteVirtual) {
  3. $api->setNoShipping(true);
  4. } elseif ($address->getEmail()) {
  5. $api->setAddress($address);
  6. }
  7.  

replace with this

  1.  
  2. if ($isQuoteVirtual) {
  3. $api->setAddress($address);
  4. } elseif ($address->getEmail()) {
  5. $api->setAddress($address);
  6. }
  7.  

After this changes if user enter correct details it will take the shipping details as passed through else it will take the paypal details you previously filled in to paypal


16 Feb

Magento set product list in decending order


Problem in passing shipping address to paypal from magento
At several places many people have posted problem regarding this problem.

Simple solution to this problem is to pass address_override variable with value 1 to paypal. Check the value in the following file.

Path : magento\app\code\core\Mage\Paypal\Mode\Api
file:standart.php

find: ‘address_override’ change to: : “‘address_override’ => 1” , if it is 0.
Keep this thing in mind that you have to enter the valid address in magento to have the proper results at paypal. If the address_override value is 1 and you will enter the wrong address into magento it will give following error when it redirects to paypal.

“Unable to process payment. Please contact the merchant as the shipping address provided by the merchant is invalid, and the merchant has requested that your order must be shipped to that address.”
Second solution to avoid paypal error :

In magento if address_override variable is set to 0 it is not carring shipping address to paypal. To change this that even if you set address_override to 0 and not enter the valid address details & want magento and paypal to work on this follow these steps.

Path : magento\app\code\core\Mage\Paypal\Model

file:standart.php
find:

  1.  
  2. if ($isQuoteVirtual) {
  3. $api->setNoShipping(true);
  4. } elseif ($address->getEmail()) {
  5. $api->setAddress($address);
  6. }
  7.  

replace with this

  1.  
  2. if ($isQuoteVirtual) {
  3. $api->setAddress($address);
  4. } elseif ($address->getEmail()) {
  5. $api->setAddress($address);
  6. }
  7.  

After this changes if user enter correct details it will take the shipping details as passed through else it will take the paypal details you previously filled in to paypal.

Magento set product list in decending order

In magento by-default product display its asc
but if you want to show product as per recent added product follow this.

go to: app/code/core/Mage/Catalog/Block/Product/List and open up toolbar.php,

search the function getAvailableOrders()

add this line before return $this->_direction = "desc";

or paste this code

  1.  
  2. public function getAvailableOrders()
  3. {
  4. $this->_direction = "desc";
  5. return $this->_availableOrder;
  6. }
  7.  

and all set now your product will display as per recent added product
Hope so this will help to many magento developer.


16 Feb

Magento Changing Theme/Template/Design


Magento has great template system you can change template with few clicks from admin

first login in admin panel of magento

go to: System->Desing

if its your first time to change your theme then click on Add Design Change button then from drop-down select theme which you want to enable for front end then click on save button.

Note-if your cache is enable then first disable it

From: System->Cache Management

Now refresh your home page and see the changes.


16 Feb

Magento deleting cache


Hello here am with small but useful magento things which is cache handling in magento.

Magento itself install with cache enable so for beginners who changed something and didn't get any changes in edited page so its cache issue in magento.

for that login in admin area

go to: System->Cache Managemenet

click on select all link and at the right side there  is drop down select disable option and submit the form.

now go to front end refresh the page.

hope this will help .


16 Feb

Magento path hints for developer


Magento has lots of folders and thousands of file and for beginners if they don't know where and in which file have to change so magento provide great feature for developer called template hint path.

first login in admin panel of magento

go to: System->Configuration->Developer

and now from left top menu  Current Configuration Scope drop-down select  main web site click on debug and then select template path hint is yes and save it.

now go to front end and refresh your page you will get all physical path of pages.

Hope this will help for beginners


15 Feb

Problem in magento admin login


After installing magento in localhost its if admin cant login then some change have to do

Modify the core Magento code

go to: app/code/core/Mage/Core/Model/Session/Abstract and open up varien.php, and comment out lines 73 (comment out the comma at the end of the line) through 76 so that it looks like the following:

// set session cookie params
session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath() //remove this after putting on server (leave the comma)   ,
//$this->getCookie()->getDomain(),
//$this->getCookie()->isSecure(),
//$this->getCookie()->getHttponly()
);
.