Originally Posted by
TheOracle
Marvelous. Thanks for this addition.
However, you might want to keep the definition name for users who are working under the admin section with more than a single language for loading the arrow_south_east.gif image file.
You should rather add this definition name within your extra_datafiles folder instead.
The gif image is included with the package, borrowed taken from the stock catalog. It's not used anywhere else, so there's no define to worry about. That's the case with the great majhority of the images in the core package. The arrow has a define because those often change due to stylistic needs.
How do I fix the product thumbnails under Batch Form Printing of the Packing Slips.
Open admin/includes/classes/order.php
Find this line:
Code:
$orders_products = $db->Execute("select orders_products_id, products_name, products_model,
Modify it to read:
Code:
$orders_products = $db->Execute("select products_id, orders_products_id, products_name, products_model,
Find this line:
Code:
$this->products[$index] = array('qty' => $new_qty,
Make a new line after it and add the following:
Code:
'id' => $orders_products->fields['products_id'],
Originally the product image was looked up using the model number, since that already existed in the order class. It required a unique model per product, so I ditched it in favor of this solution. I'll add another step to the readme, and fix the code so that it doesn't display a broken image if it doesn't find the value.
Bookmarks