Category Archives: MAGENTO

Magento fixes, hacks, solutions

OsCommerce to Magento Migration

I have created a set of external OsCommerce to Magento import scripts.  I can import Categories with Images,  Products with Images (Image Gallery), Orders, Shipping, Customers, Customer Carts, Reviews, Invoices and More. If you are looking to migrate your OsCommerce … Continue reading

Magento Deleting Stores Manually

If you ever ruin into a situation where you need to remove stores or websites from Magento using the database.   You can do so using the tables listed below: core_website – to remove websites core_store – to remove store … Continue reading

Speed Up Magento

If you enable Gzip compression by changing .htaccess, you can speed up Magento significantly. Assuming that you have Gzip enabled on your server. Uncomment the part of the code in your htaccess file that matches the code below. You uncomment … Continue reading

Magento Clear Cache

Use the code below to clear your cache in Magento using ssh. rm -rf var/cache/*  

Magento Reset File Permissions

Use this code to reset your file permissions using ssh find . -type f -exec chmod 644 {} \; find . -type d -exec chmod 755 {} \; chmod 550 pear

Magento Clean Logs

Below is a way to clean your Magento logs via ssh. php /path/to/magento/shell/log.php clean

Magento Reindexing

Below are ways to run indexer.php from command line. Check for the current status of all indices: php /path/to/magento/shell/indexer.php –status Refresh a specific index. Choose a specific area to index. php /path/to/magento/shell/indexer.php info which gives you catalog_product_attribute     Product Attributes catalog_product_price         … Continue reading

Magento Cron Jobs

If you want to initiate cron jobs in Magento, just use the below code. /usr/local/bin/php /path/to/magento/cron.php

Magento Cookies Create, Edit, Delete

Understanding Magento Cookies and how to manipulate <?php /** * set cookie * name and value are mandatory; other parameters are optional and can be set as null * $period = cookie expire date in seconds */ Mage::getModel(‘core/cookie’)—>set($name, $value, $period, … Continue reading

Magento Delete Shopping Cart or Entire Session

Programmatically clear Magento’s shopping cart Clear Shopping Cart Mage::getSingleton(‘checkout/cart’)->truncate(); Clear Checkout Session Mage::getSingleton(‘checkout/session’)->clear();

Magento Help

Advertisement

OsCommerce to Magento Migration.

I have created a set of external OsCommerce to Magento
Continue Reading
Advertisement

Magento Deleting Stores Manually.

If you ever ruin into a situation where you need to
Continue Reading
Advertisement

Speed Up Magento.

If you enable Gzip compression by changing .htaccess,
Continue Reading
Advertisement

Magento Clear Cache.

Use the code below to clear your cache in Magento using
Continue Reading