I see in the edit_orders.php some of the code have <? and some of it has <?php shouldn't all open tags for php have <?php and clsoe tag ?> ?
Printable View
I see in the edit_orders.php some of the code have <? and some of it has <?php shouldn't all open tags for php have <?php and clsoe tag ?> ?
Stenrique and DrByte thanks for your help
I have another problem when i up Zencart says message "Success Success: Order has been successfully updated." But the e-mails are been bouced back because it's not putting the users e-mail address in tot he send to field, so the update is happening but the customer doesn't receive the update
Hi, I am getting this error when clicking the edit button:
Parse error: syntax error, unexpected $end in ...\admin\edit_orders.php on line 1338
Any idea or fix please?
MG
I think I have just fixed this problem by allowing short <? tags on my testing server. I have spotted some thing else though.
If I add a value into the tax field when I edit and order. It does not change the inc price or excl price they are still held as the same value as the product originally had.
Should this not apply a tax rate entered (eg. 17.5% for VAT)
MG
I am also getting the following error when taking a product off the order either by setting qty to 0 or when just deleting the qty and or deleting the decription and all other fields:
Fatal error: Cannot use object of type order as array in ....\admin\edit_orders.php on line 271
don't know if this has been spotted. any fix? if I hit the back button it goes back to the order with out the line on it (so correct result) and stock is put back on the product qry ( also a correct result).
Look forward to a fix.
Thanks
MG
Sorry this is my 4th post in a row but I have also spotted a couple of other things.
After adding a product with attributes, the attribute does not appear on the order. eg I have a t-shirt blue 0-6 - I get the product name -T-shirt but 0-6 and blue not showing. Also if you have the product stock by attributes module installed it does not take the stock down off this module
The last one would be a great nice to have as this is crucial to stock control for me.
Look forward to comments and solutions - Sorry I am not a programmer and so would not know where to start to fix but I hope this helps in terms of feed back on the module.
Best regards
MG
The strange thing is that the top of the file has been made wrong in this version - if you cut the top bit:
from the top so that <?php is the start, and paste that top bit under the line that saysCode:<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<script language="javascript" src="includes/general.js"></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
(which will now be around line 519)Code:<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
then it works.
Need a small fix in admin/edit_orders.php, replace lines 267 - 274 with following:
PHP Code:
$db -> Execute($Query);
$row = $db->fields;
//UPDATE_INVENTORY_QUANTITY_START##############################################################################################################
#$order = zen_db_fetch_array($order_query);
if ($products_details["qty"] != $row->fields['products_quantity']){
$differenza_quantita = ($products_details["qty"] - $row->fields['products_quantity']);
$db -> Execute("update " . TABLE_PRODUCTS . " set products_quantity = products_quantity - " . $differenza_quantita . ", products_ordered = products_ordered + " . $differenza_quantita . " where products_id = '" . (int)$row->fields['products_id'] . "'");
}
I use currency € as default. After updating prices, some values now turn up as $
Sub-Totaal: $28.04
Tariefzones (Verzenden naar: NL): €3.95
FL TAX 7.0%: $1.96
Kosten Betaalwijze: €0.35
Totaal: $34.30