Skip to content

Instantly share code, notes, and snippets.

@nordeveloper
nordeveloper / shopping.php
Created June 9, 2018 09:51 — forked from Nolwennig/shopping.php
Magento Google Shopping - Simple Script
<?php
if(php_sapi_name() != 'cli')
{
die('only via cli');
}
require 'app/Mage.php';
umask(0);
<?php
/* vars for export */
// database record to be exported
$db_record = 'XXXXXXXXX';
// optional where query
$where = 'WHERE 1 ORDER BY 1';
// filename for export
$csv_filename = 'db_export_'.$db_record.'_'.date('Y-m-d').'.csv';
// database variables
<?php defined('SYSPATH') or die('No direct access allowed.');
/**
* Ajax Template Controller template
*
* @package Templates
* @author Sergei Gladkovskiy <[email protected]>
*/
abstract class Controller_Ajax_Template extends Controller {