Magento Admin Grid Ansicht erweitern am Beispiel Manufacturer

Step 1:
Kopiere folgende Datei:
/app/code/core/Mage/Adminhtml/Block/Catalog/Product/Grid.php
nach:
/app/code/local/Mage/Adminhtml/Block/Catalog/Product/Grid.php

Step 2:
Füge z.B. folgendes unter den anderen “$this->addColumn…” ein.

Details »


Magento product flv video in thickbox

What you need:

http://jquery.com/

http://jquery.com/demo/thickbox/

And download also the player:

http://www.longtailvideo.com/players/jw-flv-player/

Then make an new order in “js” like “jquery” and copy jquery.js, thickbox.js and jwplayer.js files in.
The files “player.swf”, swfobject.js” copy into your skin order “mediaplayer”.

Details »


Magento Snippets

Falls man mal bei einer Bestellung die Adresse und weiteres benötigt, wie z.B. auch Status Newsletter Anmeldung
// order Address
$billing = Mage::getModel('sales/order_address')->load(2);
$customer = Mage::getModel('newsletter/subscriber')->loadByEmail($billing['email']);


Magento Extension mit Editor

form.php:

$fieldset->addField('html', 'editor', array(
'name' => 'html',
'label' => Mage::helper('form')->__('HTML'),
'title' => Mage::helper('form')->__('HTML'),
'style' => 'height:300px;',
'required' => true,
'config' => Mage::getSingleton('cms/wysiwyg_config')->getConfig(),
'order' => '3',
));

in Edit/For.php:

protected function _prepareLayout()
{
parent::_prepareLayout();
if (Mage::getSingleton('cms/wysiwyg_config')->isEnabled()) {
$this->getLayout()->getBlock('head')->setCanLoadTinyMce(true);
}
}