skip to Main Content

Magento Detect checkout success page

I'm working with Magento 1.9 and have a PHP include file that I'm using to display facebook pixel code based on the page type. IE: cart, checkout, product details, catalog, cms... I'm looking at the page request module, controller, action,…

VIEW QUESTION

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
Back To Top
Search