This file contains hidden or 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 | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
require_once './app/Mage.php'; | |
Mage::app(); | |
$productsCollection = Mage::getModel('catalog/product')->getCollection()->addAttributeToSelect(['sku', 'name']); | |
$storeIdCheck = 2; | |
$ids = []; |
This file contains hidden or 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 | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); | |
require_once './app/Mage.php'; | |
Mage::app(); | |
$productsCollection = Mage::getModel('catalog/product')->getCollection()->addAttributeToSelect('sku'); | |
$storeId = 2; | |
$name = []; |
This file contains hidden or 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 | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
ini_set('max_execution_time', 1000); | |
require_once dirname(__FILE__) . './../app/Mage.php'; | |
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID); | |
$arrayProductIds = []; |
This file contains hidden or 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 | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
ini_set('time_limit', 180); | |
set_time_limit(180); | |
require_once dirname(__FILE__) . './../app/Mage.php'; | |
$app = Mage::app('admin'); | |
umask(0); | |
$dirMedia = Mage::getBaseDir('media'); |
This file contains hidden or 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 | |
error_reporting(E_ALL); | |
ini_set('display_errors', '1'); | |
ini_set('time_limit', 180); | |
set_time_limit(180); | |
require_once dirname(__FILE__) . './../app/Mage.php'; | |
$app = Mage::app('admin'); | |
umask(0); | |
$dirMedia = Mage::getBaseDir('media'); |
This file contains hidden or 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); | |
ini_set('display_startup_errors', 1); | |
error_reporting(E_ALL); | |
require_once __DIR__ . '/../app/bootstrap.php'; | |
use Magento\Catalog\Model\Product\Visibility; | |
use Magento\Framework\App\Bootstrap; | |
use Strekoza\ArchiveVisibility\Model\Product\ArchiveVisibility; |
This file contains hidden or 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
RUN apt update | |
RUN apt upgrade -y | |
RUN apt install -y apt-utils | |
RUN a2enmod rewrite | |
RUN apt install -y libmcrypt-dev | |
RUN docker-php-ext-install mcrypt | |
RUN apt install -y libicu-dev | |
RUN docker-php-ext-install -j$(nproc) intl | |
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev | |
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ |
This file contains hidden or 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 | |
/** | |
* A simple fix for a shell execution on preg_match('/[0-9]\.[0-9]+\.[0-9]+/', shell_exec('mysql -V'), $version); | |
* The only edit that was done is that shell_exec('mysql -V') was changed to mysql_get_server_info() because not all | |
* systems have shell access. XAMPP, WAMP, or any Windows system might not have this type of access. mysql_get_server_info() | |
* is easier to use because it pulls the MySQL version from phpinfo() and is compatible with all Operating Systems. | |
* @link http://www.magentocommerce.com/knowledge-base/entry/how-do-i-know-if-my-server-is-compatible-with-magento | |
* @author Magento Inc. | |
*/ |
This file contains hidden or 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 | |
$locale = 'en_US'; | |
Mage::getSingleton('core/session')->setMyLang($langCode); | |
$locale = Mage::getSingleton('core/session')->getMyLang(); | |
Mage::getSingleton('core/translate')->setLocale($locale)->init('frontend', true); | |
$defaultStore = Mage::app()->getStore()->getCode(); |
This file contains hidden or 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
<pre> | |
<?php | |
require_once dirname(__FILE__) . '/app/Mage.php'; | |
Mage::app(); | |
$salesCartRuleId = 348; | |
$min = 4999; | |
$array = array(); | |
$coupons = array(); | |
$coupon = Mage::getModel('salesrule/coupon')->getCollection()->addFieldToFilter('rule_id',$salesCartRuleId); |