我已经安装了ohana组件,但是当我使用离线付款处理结帐选项时,它将给我0找不到模板“ com://site/ohanah.checkout.default.html”。
如何解决?
受保护的函数_afterAdd(KControllerContextInterface $ context) {
error_reporting(E_ALL);
ini_set('display_errors', 1);
echo "helloooo";
$entity = $context->result;
echo " we are gerere";
echo $entity->ohanah_event_id;
echo "date ".$entity->ohanah_date_id;
echo "</br>";
echo "payment gatway".$entity->payment_gateway;
echo "</br>";
echo "FirstName".$entity->first_name;
echo "</br>";
echo "LastName".$entity->last_name;
echo "<pre>";print_r($this->getObject('com://site/ohanah.controller.order'));
exit;
# $entity->payment_gateway ="12";
# $entity->full_name = "fsaf";
# $entity->ticket_types = "1";
$order = $this->getObject('com://site/ohanah.controller.order')->add(array(
'ohanah_event_id' => $entity->ohanah_event_id,
'ohanah_date_id' => $entity->ohanah_date_id,
'first_name' => $entity->first_name,
'last_name' => $entity->last_name,
'full_name' => $entity->full_name,
'email' => $entity->email,
'payment_gateway' => $entity->payment_gateway,
'ticket_types' => $entity->ticket_types
));
echo "<pre>";print_r($order);exit;
print_r($this->getObject('com://site/ohanah.model.orders'));
exit;
$order = $this->getObject('com://site/ohanah.model.orders')->uuid($context->request->query->uuid)->fetch();
$url = $this->_buildUrl($order);
$context->response->setRedirect($this->getObject('lib:http.url', array('url' => $url)));
return false;
if ($order instanceof KModelEntityInterface) {
$url = clone $context->request->getUrl();
$url->query['view'] = 'order';
$url->query['uuid'] = $order->uuid;
}
$url = $this->_buildUrl($order) ? $this->_buildUrl($order) : $url;
// // echo "<pre>";
// // print_r($url); exit;
$context->response->setRedirect($this->getObject('lib:http.url', array('url' => $url)));
}
这是componetns / com_ohana / controllers / behavior / orderable.php