Good morning, experts of Modx, I have a question of this nature, modifying the functionality of ordering, namely integration with Frontpad.
I add my code to the msGetOrder snippet which is executed after pressing the button to place an order, but my code is executed several times (3 times), as a result of which 3 identical orders arrive at once in Frontpad.
if (!empty($toPlaceholder)) {
$modx->setPlaceholder($toPlaceholder, $output);
}
else {
// Код находится в данном месте
return $output;
}
I can not figure out why this is happening, tell me the reason.
Thank.