Quote Originally Posted by battra View Post
I get 2 errors when using this addon:

1. Where is FILENAME_ORDER_EDIT defined? I cannot find it anywhere.

2. When I click 'Email PDF' button, received this error: Parse error: syntax error, unexpected T_NEW in /home/username/public_html/admin/dompdf/include/functions.inc.php on line 240
ok , im sorry , i had editable orders addon installed first ...

"
NAME:

=====

Edit Orders



VERSION:

========

1.53 - 8/1/2008 - 1.5, 1.51, 1.52, and 1.53 Changes by Scott Turner
"

if u dont have this installed it should just be this:



if (sizeof($order->products) > 0) {
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>');
}
break;
}


########
you want it to look like this:
########




if (sizeof($order->products) > 0) {

$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_ORDERS, zen_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->orders_id . '&action=edit', 'NONSSL') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a>&nbsp;&nbsp;<a href="pdfmail.php?oID=' . $oInfo->orders_id . '&email=' . $order->customer['email_address'] . '">' . zen_image_button('button_pdf.gif', 'Email PDF') . '</a>'');

}

break;

}



---------



try that instead