Friday, April 19, 2013

Save Core Config data prgramatically

$coreConfig = new Mage_Core_Model_Config(); $coreConfig ->saveConfig($path, $value, $scope = 'default', $scopeId = 0); Mage::app()->getConfig()->reinit(); Mage::app()->reinitStores();

Redirect to My Downloads page in checkout success

Redirect to My Downloads page in checkout success

Get and Set Config data

$lastUpdatedDate = Mage::getStoreConfig('test/newarrivals/updateddate'); Mage::getModel('core/config')->saveConfig('test/newarrivals/updateddate', $lastUpdatedDate );

Required Extensions for new Magento instance


Banner Slider:

Order Eraser:

Featured Products:
 

Installing Magento via SSH

Magento SSH

Magento script to clean logs

Clear logs

Display date in specified format in Magento

Display date in specified format in Magento Mage::helper('core')->formatDate($date, $format, $showTime=false) Argument 1: Date that you want change the format (This may be database driven or manual) Argument 2: Date format: short, long, medium, full Argument 3: Show Time: True to display time and false to not display time

Wednesday, November 21, 2012

my paypal details

my paypal details :

Login : mayank.patel@live.in

Seller Account : mayank_1354093144_biz@live.in / mayank_seller
Buyer Account : mayank_1354092969_per@live.in / mayank_buyer

Clean Magento database

TRUNCATE TABLE `dataflow_batch_export`;
TRUNCATE TABLE `dataflow_batch_import`;
TRUNCATE TABLE `log_customer`;
TRUNCATE TABLE `log_quote`;
TRUNCATE TABLE `log_summary`;
TRUNCATE TABLE `log_summary_type`;
TRUNCATE TABLE `log_url`;
TRUNCATE TABLE `log_url_info`;
TRUNCATE TABLE `log_visitor`;
TRUNCATE TABLE `log_visitor_info`;
TRUNCATE TABLE `log_visitor_online`;
TRUNCATE TABLE `report_viewed_product_index`;
TRUNCATE TABLE `report_compared_product_index`;
TRUNCATE TABLE `report_event`;

magento: insert query for a custom table

Insert query for custom table

Show subcategory in a category page

Show subcategory in a category page