We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 28436
    • 242 Posts
    Hello Guys

    I wrote a plugin to translate modx-documents to a xtcommerce-product. To move an xtc-product to another categorie in need a event like "OnDocMove"

    INSERT INTO `modx_system_eventnames` (`id`, `name`, `service`, `groupname`) VALUES ('100', 'OnDocMove', '1', 'Documents');

    then in move_document.processor.php somewhere around line 107
    // invoke OnDocMove event
        $modx->invokeEvent("OnDocMove",
            array(
                'id'         => $_REQUEST['id'],
                'new_parent' => $_REQUEST['new_parent']
        ));


    maybe this could be interesting for some other peoples.

    ciao, Stefan