Last active
August 3, 2017 11:03
-
-
Save CB9TOIIIA/faf4a1bb32e8e3af0371b1122aa53620 to your computer and use it in GitHub Desktop.
Addcomment JBZoo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Class JBCartElementHookJBAdvert | |
*/ | |
class JBCartElementHookAddcomment extends JBCartElementHook | |
{ | |
/** | |
* @param array $params | |
*/ | |
public function notify($params = array()) | |
{ | |
$order = $this->getOrder(); | |
// $orderModel = JBModelOrder::model(); | |
// $orderz = $orderModel->getById($order->id); | |
$object = new stdClass(); | |
$object->id = $order->id; | |
$object->comment = $order->id.'-'.date('His',strtotime($order->created)); | |
// $object->comment = 'text'; | |
$result = JFactory::getDbo()->updateObject(ZOO_TABLE_JBZOO_ORDER, $object, 'id'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment