Skip to content

Instantly share code, notes, and snippets.

<?php
ini_set('display_errors',1);
error_reporting(E_ALL^E_STRICT);
require_once('app/Mage.php');
Mage::app();
$collection = Mage::getModel('catalog/product')->getCollection();
@ldusan84
ldusan84 / magentodebug.php
Created October 24, 2015 11:03
Magento debug and arrays
<?php
require_once('app/Mage.php');
Mage::app();
$model = Mage::getModel('catalog/product');
$model->setSomething(array('value' => null));
var_dump($model->debug());
var_dump($model->getData());
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
Feature: Exchange rates update
In order to have correct exchange rates
As a store owner
I need to be able to update them from external web service
Background:
Given I am logged in as administrator
And there are following exchange rates:
| currency | rate |
| USD | 0.76496 |