Thanks for this.. Would be nice if this was an admin configurable option. Though I'm not sure I understand the logic behind the default option..
(three seems abitrary
) Though this is not an issue for my clients (most don't use the packing slips for whatever reason), knowing that this is how the code is structured is a good piece of information..
Carl can ya help out a code challenged girl.. What would I replace this code with if I simply wanted a images true or false option. Would I simply replace this:
Code:
// Add product images if there are 3 or less products on order
if (sizeof($order->products) < 4) {
$display_images = 1;
}
else {
$display_images = 0;
}
with this:
Code:
// Turn product images on or off on packing list
$display_images = false;

Originally Posted by
carlvt88
This was intentional. If you want to change it, it's in admin/super_packingslip.php:
Code:
// Add product images if there are 3 or less products on order
if (sizeof($order->products) < 4) {
$display_images = 1;
}
else {
$display_images = 0;
}
$display_images is effectively a boolean. You can change the limit to something bigger, or hard-code $display_images to always be true.
Bookmarks