skip to Main Content

trigger function js when save button admin product is clicked magento

I'm trying to trigger a function in js when clicking on save button in edit product admin page. I followed the suggestions from here: https://magento.stackexchange.com/questions/119542/calling-js-function-when-product-save-button-is-clicked And I modify in app/code/core/Mage/Adminhtml/Block/Catalog/Product/Edit.php $this->setChild('save_button', $this->getLayout()->createBlock('adminhtml/widget_button') ->setData(array( 'label' => Mage::helper('catalog')->__('Save'), 'onclick' => 'productForm.submit(); myFunction();',…

VIEW QUESTION

How to get image url – Twitter API

If I parse a Tweet from the Twitter API using: tweet.entities.media I get the below json. But how would I access media_url property? Its nested in a really difficult place inside the json object. tweet.entities.media[0].media_url returns an error. { "image":…

VIEW QUESTION
Back To Top
Search