Questions tagged [mage-shell]
The mage-shell tag has no summary.
15 questions
0 votes
1 answer
54 views
No errors shown/logged beyond shell script
I have a strange issue where no errors are shown or logged if it occurs beyond the shell script. I have a Magento shell script (... extends Mage_Shell_Abstract), which serves as an entry point for a ...
1 vote
1 answer
291 views
shell script magento cant load product model
in shell directory is file myscript.php with code <?php require_once 'abstract.php'; class MyModule_Shell_Myscript extends Mage_Shell_Abstract { protected $_argname = array(); public ...
1 vote
1 answer
457 views
Magento2 - is there any class such as Mage_Shell_Abstract to extend?
I mean, what's the right / best approach to write shell scripts, as the ones in Magento1 /shell folder?
1 vote
1 answer
310 views
Magento1.9 : My block is not calling in shell script
My block is not calling in shell script. <?php ini_set('display_errors', 1); require_once 'abstract.php'; class Mage_Shell_ReportMail extends Mage_Shell_Abstract{ public function run(){ ...
1 vote
1 answer
136 views
I wrote a shell script to remove old files inside /shell [closed]
I would like to move all files that are older than 24 hours. Currently I'm just deleting them. When I'm in the shell folder and I try to run the script in terminal: php clean_fc_export.php i get the ...
2 votes
0 answers
46 views
Move all native magento reviews from my default store 0 to my new store
My script currently works for all stores except the store it's pulling from. I want to pull all reviews from my default store / main store and only push the reviews to my new store with a websiteId = ...
1 vote
2 answers
3k views
Use all images from my default store on my new store view
I have a new store view and i've updated all the products using the magento admin: Manage Products > Select all > Update Attributes and then selecting the new store. Now that all my products are ...
1 vote
1 answer
65 views
how do I bootstrap a mysql upgrade installer?
I would appreciate help on this, I'm having trouble bringing these two together. I am basically familiar with the mysql upgrade process in magento. In a folder's etc/config.xml file you update the ...
1 vote
1 answer
4k views
Custom Magento Shell Script - can't get argument value
I'm attempting to create a custom shell script that will extract a zip file in my media/tmp directory. I've created a labeler.php file in the shell directory. It extends Mage_Shell_Abstract and run()...
0 votes
1 answer
404 views
Patch does not create new files
If I run the ./PATCH_SUPEE-6788_CE_1.7.0.2_v1-2015-10-27-12-00-16.sh no new files are created. For example app/code/core/Mage/Admin/Model/Resource/Block.php in the patch but does not exist after the ...
1 vote
2 answers
182 views
How 'Add Design Change' with magento shell script?
I want add new theme with magento shell script. I think it's possible with direct access to MySQL 'design_change' table. But I don't know how to do it. Any ideas?
2 votes
2 answers
2k views
How To Automatically Check For Available Magento Extension Updates
Is there any way how I can automatically check for available Magento extension updates on the CLI? I thought about the mage tool as well as about n98-magerun, but both options do not seem to work. ...
1 vote
1 answer
211 views
adminhtml URL generation from admin and shell script
I'm creating a module that sends data to a custom API when creating an order and/or customer and when one of them changes. It also holds a magento shell script to send initial data. The contents of ...
1 vote
2 answers
1k views
Export daily sales report via command line
I was curious if there is a way to export sales reports to a CSV via the command line. I can handle the cron setup to make it run daily, I'm just curious how you would go about doing this in the shell....
1 vote
1 answer
883 views
My Mage_Shell script doesn't work: Mage::getModel() can't find class
So, I just ran into this and scratched my head quite a few times and since the Magento bug tracker is dead, let's do it here. Symptom: Class 'MyNameSpace_MyModule_Helper_Data' not found in /var/www/...