I'd like to add a external file to the CS Cart.
In the admin view I have a link:
{include file="buttons/button_popup.tpl" but_text=Check but_href="orders.check?order_id=`$order_info.order_id`" but_role="tool"}
For this in the orders.php file I added a function:
} elseif ($mode == 'check') {
if (!empty($_REQUEST['order_id'])) {
$order_info = fn_get_order_info($_REQUEST['order_id']);
if (empty($order_info)) {
return array(CONTROLLER_STATUS_NO_PAGE);
}
$view_mail->assign('order_info', $order_info);
$view_mail->display('orders/check.php');
exit;
}
So with this code I'm trying to access a php file that is located in the orders folder.. it doesn't matter, it could be located in the root folder too.
I want my external script to work with Smarty Class, I'd like to get oder_id in my code in order to work with it in my code.
I was working fine, but after my client changed the design (skin) it's breaking down.
in the pup-up window I'm getting this error:
Warning: Smarty error: unable to read resource: "orders/check.php" in D:\Server\xampp\htdocs\tele\lib\templater\Smarty.class.php on line 1095