Magento Set All Categories to “Is Anchor = Yes”

<?php error_reporting(E_ALL); ini_set('display_errors', '1'); // Load Up Magento Core define('MAGENTO', realpath('')); require_once(MAGENTO . '/app/Mage.php'); $app = Mage::app(); $categories = Mage::getModel('catalog/category') ->getCollection() ->addAttributeToSelect('*') ->addAttributeToFilter('is_anchor', 0) ->addAttributeToFilter('entity_id', array("gt" => 1)) ->setOrder('entity_id') ;…

Smooth Scrolling On Anchor Tag In HTML

$(function() { $('a:not()').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $(''); if (target.length) { $('html,body').animate({ scrollTop: target.offset().top…

Programmatically importing products into Magento

For Import Product Pragmatically In Magento  (Simple CSV) 2 <?php set_time_limit(0); ini_set('max_execution_time', 0); ini_set('memory_limit', '-1'); include_once "app/Mage.php"; //include_once "downloader/Mage/Controller.php"; Mage::init(); $app = Mage::app('default'); $row = 0; if (($handle = fopen("products/bakery-dairy/test.csv", "r"))…