Dirty Butter Posted October 21, 2012 Share Posted October 21, 2012 I would like to have the full 600px image for the master image on the Image tab of the Admin product listing, but I can't find where that size is determined. By default it's 175. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 22, 2012 Share Posted October 22, 2012 I assume you are referring to the admin screen? Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted October 22, 2012 Author Share Posted October 22, 2012 Yes, sorry. Original title and request have been revised, in case this can help someone else. Quote Link to comment Share on other sites More sharing options...
bsmither Posted October 22, 2012 Share Posted October 22, 2012 Starting with the admin skin template, products.index.php (about line 414), we see that $PRODUCT.master_image holds the reference to the image on the Image tab. Then, in the admin source file, products.index.inc.php (about line 991), we see that Smarty assigns $result[0] to PRODUCT. Coincidentally, the two statements just above it are where the image is calculated and fetched. In the GUI class, getProductImage(), we learn that the default $mode is 'small'. That's just the default and we don't really want to change that. Going back to products.index.inc.php, we can override the default: getProductImage((int)$_GET['product_id'], 'large') This may cause the layout to change on the tab, so plan accordingly. Quote Link to comment Share on other sites More sharing options...
Dirty Butter Posted October 22, 2012 Author Share Posted October 22, 2012 Thanks, Bsmither. I had actually tracked down that line of code, but didn't know how to accomplish it. I have a wide screen laptop, so the large size works just fine on my screen - no scrolling. This is very beneficial, as many of our toys look similar in small images - sometimes the only difference is a bow or the wording - HUGE differences to that little one who is in love with it! Now I won't have to go to the customer listing to double check before pulling from stock. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.