Magento Themes and Magento Extensions

How to remove “My Downloadable Products” on Customer Account Dashboard?

Share
Posted on November 28th, 2014 | Posted by admin

Here is a quickly reference for how to remove the “My Downloadable Products” on Customer Account Dashboard.

In app/design/frontend/default/default/layout/downloadable.xml, remove this in the beginning of the file:

1
2
3
4
5
6
7
8
9
<customer_account>
<reference name="customer_account_navigation">
<action method="addLink" translate="label" module="downloadable">
<name>downloadable_products</name>
<path>downloadable/customer/products</path>
<label>My Downloadable Products</label>
</action>
</reference>
</customer_account>

IIS Magento maintenance script

Share
Posted on November 27th, 2014 | Posted by admin

Clear Magento cache and MySQL log tables, perform regular Magento maintenance on IIS web servers for better performance

Now for IIS web servers too: optimize the speed and performance of your Magento ecommerce webshop by carrying out important maintenance; remove old MySQL database log files and Magento cache data on a regular basis.

Magento Community Edition is a very popular ecommerce and webshop solution. And very bloated as we all know. Anywhere you run your Magento webshop, it’s important to perform maintenance. Carrying out maintenance on a regular basis optimizes Magento’s -and thus your website’s- speed and performance.
Two of such tasks are clearing out and emptying the MySQL database cache and log tables, and Magento’s file system cache directories in /var. Most scripts and solutions out there are for Linux- and Unix webservers only. I decided to modify a Magento maintenance script to run on Windows Server and IIS too. For MySQL database optimization, it utilizes my MySQLi multi_query statement tooptimize all MySQL tables in one statement.

Magento frontend does not display product image

Share
Posted on November 26th, 2014 | Posted by admin

One of the very common problem I found in magento sharing hosting is product Image display. I spent hours on fixing this problem finally got very easy solution and it worked me perfectly.

I increased just memory_limit variable in php.ini file. In initial it was just 64M (which I did not care) but when I make it 256M(please be careful letter case for “M” because in some hosting it has problem). The problem is solved quickly.

if your hosting don’t have option to change php.ini file then rename php.ini.sample file to php.ini and place in ~/public_html/ path. this might work but I am not sure because it works for my hosting.

Enjoy and please let me know if you have other difficult.

Adding a step to the Onepage Checkout

Share
Posted on November 21st, 2014 | Posted by admin

The default Magento onepage checkout includes six steps for the customer to complete. However, sometimes you may have a requirement to create an extra checkout step. An example of this might be an option for your customer to choose a free gift as part of their order, or an extra step to collect special delivery instructions. Using delivery instructions as an example, we’ll demonstrate how this can be achieved.

The first file we need to modify is app/code/core/Mage/Checkout/Block/Onepage.php. Obviously we don’t want to modify the code in the core context, so copy the file toapp/code/local/Mage/Checkout/Block/Onepage.php. Magento will use this file automatically.

In the getSteps() method of this class there is an array of the step codes, in order of viewing. We need to add our own step code in this array, in the relevant place. For this example, the code will bedeliveryinstructions so we will change the line to be this:

$stepCodes = array('billing', 'shipping', 'shipping_method', 'deliveryinstructions', 'payment', 'review');

Next, we need to create a new file -app/code/local/Mage/Checkout/Block/Onepage/Deliveryinstructions.php. As you can see from the name, this is the block file that runs our new step. You can use this class to do any special setup work for your block, but more than likely all you’ll need is this:

<?php
class Mage_Checkout_Block_Onepage_Deliveryinstructions extends Mage_Checkout_Block_Onepage_Abstract
{
    protected function _construct()
    {

WHAT IS FULL PAGE CACHE AND WHY DOES MAGENTO USE IT?

Share
Posted on November 20th, 2014 | Posted by admin

WHAT IS FULL PAGE CACHE AND WHY DOES MAGENTO USE IT?
The answer the the first question is, quite literally, full page caching involves the storage of the full output of a page in a cache, so that in subsequent page loads will not require much server load at all. For high-traffic Enterprise level eCommerce sites, full page caching is imperative in order to keep server load as low as possible, and to avoid downtime during periods of high traffic. If 1000 users are visiting the site at the same time, the amount of memory used with full page caching enabled is inconsequential when compared to the server load caused by 1000 users instantiating Magento at once. Additionally, full page caching will increase site speed, since all the server needs to do is fetch and render the page from the cache. So, now that we’ve established that full page caching (henceforth FPC) is important, let’s evaluate it critically.
ARE THERE ANY DRAWBACKS TO USING FULL PAGE CACHE?

Page 1 of 3123»