Magento Themes and Magento Extensions

Creating a Configurable Product

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

Advanced Products
Advanced products in Magento are a way to consolidate product variants onto a single product info page in the front-end. The variants themselves have their own SKUs and stock management. This is very powerful – it allows you to let customers search for the individual variants, but browse only to the consolidated product pages. (If that’s the implementation you want – you could also let customers browse the individual SKUs.)

Configurable Products let your customers select the variant they desire by choosing options. For example, you sell t-shirts in two colors and three sizes. You’d create the six variants as invidivual products (with their own skus) and then add these six to a configurable product from where customers can choose size and color, then add to cart. If desired you could also have customers search for “red medium t-shirt” and land on the specific page for this variant.

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