Skip to content

Instantly share code, notes, and snippets.

@mhhansen
Last active November 16, 2020 10:31
Show Gist options
  • Save mhhansen/9493703 to your computer and use it in GitHub Desktop.
Save mhhansen/9493703 to your computer and use it in GitHub Desktop.
Magento : Testing File
<?php
/**
* Magento Testing file
*
* - Copy paste this code and save it as your-filename.php
* - Place it in your Magento root
* - Access to this file to view results: http://<your_domain>/your-filename.php
*/
require 'app/Mage.php';
if (!Mage::isInstalled()) {
echo "Application is not installed yet, please complete install wizard first.";
exit;
}
//Mage::app('admin')->setUseSessionInUrl(false);
umask(0);
// UNCOMMENT TO USE SPECIFIC STORE VIEW - otherwise default scope will be retrieved
//$store_id = Mage_Core_Model_App::ADMIN_STORE_ID;
//$store_id = 'YOUR_STOREVIEW_CODE_HERE';
//Mage::app()->setCurrentStore($store_id);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// ADD YOUR TESTING CODE BELOW
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment