Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mage-shell]

The tag has no usage guidance.

0
votes
1answer
36 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
1answer
166 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
1answer
228 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
1answer
165 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
1answer
93 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
0answers
32 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
2answers
914 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
1answer
38 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
1answer
3k 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
1answer
238 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
2answers
110 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
2answers
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
1answer
177 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
2answers
757 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
1answer
734 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/...