If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / Manufactuerer's Sidebox Images Are Huge

Manufactuerer's Sidebox Images Are Huge

Started by mikeel100 on 7 Mar 2024, 1:52 PM · Views: 810

Results 1 to 3 of 3
7 Mar 2024, 1:52 PM
#1
mikeel100 avatar

mikeel100

Zen Follower

Join Date:
Sep 2012
Location:
West Jefferson, NC
Posts:
391
Plugin Contributions:
0

Manufactuerer's Sidebox Images Are Huge

tpl_manufactuer_info.php is missing the image sizes in the zen_image(...) link causing the image to be oversized.

Line 13 of the new file...

  $content .= '<div class="centeredContent">' . zen_image(DIR_WS_IMAGES . $manufacturer_info_sidebox->fields['manufacturers_image'], $manufacturer_info_sidebox->fields['manufacturers_name'])

My fix...

 $content .= '<div class="centeredContent">' . zen_image(DIR_WS_IMAGES . $manufacturer_info_sidebox->fields['manufacturers_image'], $manufacturer_info_sidebox->fields['manufacturers_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)

I have an account on github but I haven't figured out the pull and commit thing yet...maybe in the future.

Hope this helps someone.

7 Mar 2024, 7:41 PM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Manufactuerer's Sidebox Images Are Huge

Oddly enough, the admin had a similar issue with manufacturer images which has been fixed in 2.0.0.

I went ahead and PR'ed the issue you reported, thanks for letting us know.

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

7 Mar 2024, 10:45 PM
#3
mikeel100 avatar

mikeel100

Zen Follower

Join Date:
Sep 2012
Location:
West Jefferson, NC
Posts:
391
Plugin Contributions:
0

Re: Manufactuerer's Sidebox Images Are Huge

swguy:

Oddly enough, the admin had a similar issue with manufacturer images which has been fixed in 2.0.0.

I went ahead and PR'ed the issue you reported, thanks for letting us know.

Thanks.