Jump to content
xt:Commerce Community Forum

Hilffee. row actions Bestellung erwetiern


Eddyyrama@gmail.com

Recommended Posts

Hilfe bin am verzweifeln 

 

versuche die ganze Zeit die Bestlelungen durch eine row Action mit einer Action zu erweitern und zwar soll nur ein icon angezeigt werden und er soll mir ein Dialog Feld beim klick darauf anzeigen leider zeigt er mir nichts an immer kommt die gleiche Fehlermeldung

 

 

<?xml version="1.0" encoding="utf8"?>
<xtcommerceplugin>
    <title>Lock Order</title>
    <version>1.0.0</version>
    <code>plg_lock_order</code>
    <url>http://www.xt-commerce.com</url>
    <description>Bestellungen sperren</description>
    <type>example</type>
    <icon></icon>

    <db_install><![CDATA[

$db->Execute("INSERT INTO ".TABLE_ADMIN_NAVIGATION." (`pid` ,`text`
,`icon` ,`url_i` ,`url_d` ,`sortorder` ,`parent` ,`type` ,`navtype`)
VALUES (NULL , 'plg_lock_order', 'images/icons/tag_orange.png',
'&plugin=plg_lock_order', 'adminHandler.php', '4000', 'shop', 'I',
'W');");
]]></db_install>

    <db_uninstall><![CDATA[
$db->Execute("DELETE FROM ".TABLE_ADMIN_NAVIGATION." WHERE text =
'plg_tagging'");
]]></db_uninstall>
    <plugin_code>

        <code>
            <hook>class.order.php:_getParams_row_actions</hook>
            <phpcode><![CDATA[
/*
* Erweiterung der _getParams Funktion in der Klasse products um eine * "Row-Action"
*/
$rowActions[] = array('iconCls' => 'plg_lock_order', 'qtipIndex' => 'qtip1', 'tooltip' => 'ich bin millionär');
if ($this->url_data['edit_id'])
$js = "var edit_id = ".$this->url_data['edit_id'].";\n"; else
$js = "var edit_id = record.id;";


$js .= "Ext.Msg.show({title:'".TEXT_DELETE_ORDER."',
				msg: '".TEXT_DELETE_ORDER_ASK."',
				buttons: Ext.Msg.YESNOCANCEL,
				animEl: 'elId',
				fn: function(btn){deleteOrder(edit_id,btn);},
				icon: Ext.MessageBox.QUESTION
				});";
$rowActionsFunctions['plg_lock_order'] = $js;

]]></phpcode>
            <order>1</order>
            <active>1</active>
        </code>

        <code>
            <hook>css_admin.php:css</hook>
            <phpcode><![CDATA[
// CSS für Adminbereich erweitern, Icon für neuen Button
echo '.plg_lock_order {background-image: url(images/icons/tag_orange.png) !important;}';
]]></phpcode>
            <order>2</order>
            <active>1</active>
        </code>



    </plugin_code>

</xtcommerceplugin>

 

 

[22-Sep-2015 03:33:09 Europe/Berlin] PHP Strict standards:  Only variables should be assigned by reference in /Applications/MAMP/htdocs/Shop1/xtFramework/library/phpxml/xml.php on line 57
[22-Sep-2015 03:33:09 Europe/Berlin] PHP Stack trace:
[22-Sep-2015 03:33:09 Europe/Berlin] PHP   1. pluginGenerateXML->generateXml() /Applications/MAMP/htdocs/Shop1/xtFramework/classes/class.plugin.php:0
[22-Sep-2015 03:33:09 Europe/Berlin] PHP   2. XML_serialize() /Applications/MAMP/htdocs/Shop1/xtFramework/classes/class.pluginGenerateXML.php:214

 

 

 

Hilfffeee komme nicht weiter wer kann helfen. bitte Bitte

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...