Tags » Magento

Current Category with list of Subcategory

//Current URL

$currentUrl = Mage::helper(‘core/url’)->getCurrentUrl();
$url = Mage::getSingleton(‘core/url’)->parseUrl($currentUrl);
$path = $url->getPath();

//Current Category with list of Subcategory
if (strstr(“$path”,”snow”) )
{
$children = Mage::getModel(‘catalog/category’)->load(‘251’);
} 224 more words

Magento

Magento: raveinfosys order export model changes

In the following script changes made to full fill client requirement like :

  • The order id exported never will export again :
  • delimiter should be ; .
  • 963 more words
Magento

Magento: Update Tracking Number From Third Party Ftp Server Csv File

The Following file will downlode the all csv from ftp server to local server process the file add tracking number to shipment if shipment is not created it will create first after add the tracking number and delete the csv files from server and local server… 536 more words

Magento

Magento: Update Inventory From Ftp Server

The Following file will downlode the csv from ftp server to local server process the file update inventory,delete the files from server and local server… 416 more words

Magento

Magento: Generate Inventory File Csv By Script

<?php
    define('MAGENTO', realpath(dirname(__FILE__)));
    require_once 'app/Mage.php';
    umask(0);
    Mage::app();
    Mage::app()->getCacheInstance()->flush();
    $products = Mage::getModel("catalog/product")->getCollection()->addAttributeToFilter('type_id', array('eq' => 'simple'));
    $fileName = 'InventorySnapshot_' . date("YmdHis") . '.csv';
    $file = fopen(MAGENTO . '/var/export/Inventory/'. 104 more words
Magento

Magento : Helper

What is a Helper?
-> A Helper is a PHP class in magento which can be used to call reusable functions all over the site. Anyone (block, controller, model, template) or anywhere you can call a helper to use its functions. 207 more words

Helper