I discovered after some testing that the script was caching product images to the size of the sub-category image demensions. This caused unexpected display problems when viewing products in the product-listing.php.

This code updates the previous contribution. You will be adding a new imageResize function and make a slight change to the code in the index.php file.

More...