This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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(); |