Jump to content

Resolved - Size of Master Image in Admin Product Listing


Dirty Butter

Recommended Posts

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...