Rather than a semicolon, you've probably removed or added extra braces: } or {
Printable View
Rather than a semicolon, you've probably removed or added extra braces: } or {
I've checked for that, and didn't find any missing or extras. But I just realized that this wasn't a vanilla orders.php. I have the affiliate plug-in installed. So I need to go back and look at what got changed in that. I may have to go back to the orders.php from the installation package and start over from there.
I'm sure it's been mentioned before, but Beyond Compare, and Araxis Merge, are great tools for visually comparing files. (I know Merge even has a 3-way compare which can be really handy.)
I'm receiving the following error PHP Warning: Invalid argument supplied for foreach() in edit_orders.php on line 1700
It's happening when I try to add a product with attributes, the product is added to the order but the attributes are not, any idea what the issue could be?
Edit Orders v4.1.4
Zen Cart v1.5.4
Below is the code staring with line 1700
PHP Code:
foreach($_POST['id'] as $id => $value) {
if(is_array($value)) {
foreach($value as $id2 => $value2) {
if(is_array($value2)) {
foreach($value2 as $id3 => $value3) {
echo '<input type="hidden" name="id[' . $id . '][' . $id2 .'][' . $id3 . ']" value="' . zen_html_quotes($value3) . '">';
}
}
else {
echo '<input type="hidden" name="id[' . $id . '][' . $id2 .']" value="' . zen_html_quotes($value2) . '">';
}
}
}
else {
echo '<input type="hidden" name="id[' . $id . ']" value="' . zen_html_quotes($value) . '">';
}
}
}
@marcopolo, the current version for EO is 4.1.6 (with 4.1.7 in the "works"); it's got a bunch of bug-fixes and other changes incorporated.
Please upgrade to the most recent version and see if the issue has been previously resolved.
Ok just upgraded but now when I click on an order to edit I'm getting this in admin:
You must install the Zen Cart 1.5.5 AdminRequestSanitizer class before you can use Edit Orders on this site
You'll need to also install the latest Trustwave Security patch: https://www.zen-cart.com/showthread....80#post1311680
Ok that fixed that issue and by upgrading to Edit Orders v4.1.6 fixed the attribute issue, thanks. Question I did not upgrade whatever changes were made to the core files though only new files and install, is that a big deal? It worked so I assuming not but just thought I would ask in case I should do it right away or wait until v4.1.7 is released.
I've got this working, but when you go to details, the shipping and billing icons are displaying part of the alt text also.Attachment 16738Attachment 16739