Rather than a semicolon, you've probably removed or added extra braces: } or {
Rather than a semicolon, you've probably removed or added extra braces: } or {
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
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.)
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
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.
Bookmarks