Last active
November 16, 2020 10:31
-
-
Save mhhansen/9493703 to your computer and use it in GitHub Desktop.
Magento : Testing File
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 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