admin

July 31, 2015

Magento – AheadWorks Blog – Display Blog Posts To CMS Pages

AW Blog is a Magento extension from aheadWorks that is reckoned among the best buzz and word of mouth marketing tips. It not only provides your […]
June 3, 2015

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” […]
May 26, 2015

Getting the recent one Week,month or year records from MySQL table

Weekly : select * from dt_table where `date` >= DATE_SUB(CURDATE(), INTERVAL 7 DAY) Monthly : select * from dt_table where `date` >= DATE_SUB(CURDATE(), INTERVAL 1 MONTH) […]
May 22, 2015

Smooth Scrolling On Anchor Tag In HTML

$(function() { $(‘a[href*=#]:not([href=#])’).click(function() { if (location.pathname.replace(/^\//,”) == this.pathname.replace(/^\//,”) && location.hostname == this.hostname) { var target = $(this.hash); target = target.length ? target : $(‘[name=’ + this.hash.slice(1) […]
May 14, 2015

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 […]
March 3, 2015

How to import .sql file in mysql database using php

<?php // Name of the file $filename = 'DBNAME.sql'; // MySQL host $mysql_host = 'localhost'; // MySQL username $mysql_username = 'root'; // MySQL password $mysql_password = […]
February 28, 2015

Create Database with out root access Using Cpanel API

A PHP Class for Interacting with cPanel’s XML-API https://github.com/CpanelInc/xmlapi-php <?php include(“xmlapi.php”); $db_host = “localhost”; $cpaneluser = “cpaneluser”; $databasename = ‘mydatabasename’;//do not prepend with username $databaseuser = […]
February 7, 2015

Override controller Not Working in Prestashop 1.6

In some cases override method is not working in prestashop 1 .6 for overcome this issue we need to remove or rename the following file from root […]
January 22, 2015

Copy File from one Folder to another using PHP

<?php $src = ‘myfolder’; $dst = ‘dest’; $files = glob(“myfolder/*.*”); foreach($files as $file){ $file_to_go = str_replace($src,$dst,$file); copy($file, $file_to_go); } ?>
Contact us

We are glad that you preferred to contact us. Please fill our short form and one of our friendly team members will contact you back.


    X
    Request a Quote