Magento Themes and Magento Extensions

Cannot saveShippingMethod in Magento One Page Checkout

Share
Posted on October 18th, 2012 | Posted by admin

Cannot saveShippingMethod in Magento One Page Checkout

In summary, I am calling these functions in order:

$checkout = Mage::getSingleton(‘checkout/type_onepage’);
$checkout->saveCheckoutMethod(‘guest’);
$checkout->saveBilling($billingAddress, false);
$checkout->saveShipping($shippingAddress, false);
$checkout->saveShippingMethod(‘flatrate_flatrate’);
$checkout->savePayment(array(‘method’=>’checkmo’));
// Extra part not on the site but saw it in the original magento onpage checkout controller
$checkout->getQuote()->getPayment()->importData(array(‘method’=>’checkmo’));
//
$checkout->saveOrder();

Magento Performance Boost: Cleanup Old Session Files

Share
Posted on October 18th, 2012 | Posted by admin

If left unchecked, Magento session files can grow out of control and have a negative impact on your sites performance (aswell as taking up storage space). This article explains how to make sure old session files are removed automatically.

Magento stores it’s session files in var/session and I’ve seen too many Magento installations where the size of this directory has grown into the gigabytes. A quick browse of this directory should tell you whether you have a problem or not.

PHP has it’s own ‘garbage collection’ process for deleting old session files, but it’s disabled in Debian “due to the strict permissions on /var/lib/php5″

Listing products by attribute

Share
Posted on October 17th, 2012 | Posted by admin

This is step by step tutorial for the beginners that will show you how to list products by attribute. I will start with functions that Magento already has built-in: New products and Promotional products. All the instructions below is made from Magento Professional 1.9.0.0

Listing products with attribute New

You can find settings for defining New attribute in Magento administration under Manage products in Products management. For this tutorial I will use CMS page called Homepage as example. In CMS Page layout -> Layout Update XML is defined template for CMS page by

Solution for “Invalid OAuth access token” in Magento Facebook App

Share
Posted on October 16th, 2012 | Posted by admin

If you have encountered the “Invalid oAuth token error” while saving a product in the Magento Catalog Page, please follow the below steps to get rid of the error:

Please confirm whether the CURL function is enabled in your server. If it is not been enabled, please contact your hosting provider to enable the CURL function in your server.

If still the problem persist,

Go to your Magento root path and find the below file
app/code/local/apptha/facebookapp/model/Observer.php
and find the public function get_app_token($appid, $appsecret)

now replace the existing code

Display Image in Magento From Skin Folder

Share
Posted on October 15th, 2012 | Posted by admin

Display Image in Magento From Skin Folder
Read more...   |   No Comments