Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Posts
    121
    Plugin Contributions
    0

    Default Featured Image Resizing

    Hi, i wanted to reconfigure the main homepage of my site, and i wanted to put the featured products on the front page. When i try and resize the image for this to 200x200 the image size does not change it just stays at the 125x125 dimensions. If i go the opposite way and resize it to 50x50 it works absolutley fine, can some explain why my image won't go over 125x125 and how i can rectify it. Thanks in advance.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: Featured Image Resizing

    What is the actual size of the image? Zencart can squish images down smaller, but it can't make an image larger.

  3. #3
    Join Date
    Jan 2006
    Posts
    121
    Plugin Contributions
    0

    Default Re: Featured Image Resizing

    ah ok thankyou that makes sense as the image size would be 125x125 (its using the small image dimensions), how would i change this so it uses my medium size image which is 200 x 200? thanks

  4. #4
    Join Date
    Jan 2006
    Posts
    121
    Plugin Contributions
    0

    Default Re: Featured Image Resizing

    Images

    Title Value Action
    Small Image Width 125
    Small Image Height 125
    Heading Image Width 125
    Heading Image Height 125
    Subcategory Image Width 125
    Subcategory Image Height 125
    Calculate Image Size true
    Image Required true
    Image - Shopping Cart Status 1
    Image - Shopping Cart Width 125
    Image - Shopping Cart Height 125
    Category Icon Image Width - Product Info Pages 57
    Category Icon Image Height - Product Info Pages 40
    Top Subcategory Image Width 150
    Top Subcategory Image Height 85
    Product Info - Image Width 200
    Product Info - Image Height 200
    Product Info - Image Medium Suffix _MED
    Product Info - Image Large Suffix _LRG
    Product Info - Number of Additional Images per Row 3
    Image - Product Listing Width 125
    Image - Product Listing Height 125
    Image - Product New Listing Width 125
    Image - Product New Listing Height 125
    Image - New Products Width 125
    Image - New Products Height 125
    Image - Featured Products Width 250
    Image - Featured Products Height 250
    Image - Product All Listing Width 125
    Image - Product All Listing Height 125
    Product Image - No Image Status 1
    Product Image - No Image picture no_picture.gif
    Image - Use Proportional Images on Products and Categories 1


    That is what i have as my image settings.

  5. #5
    Join Date
    Jan 2006
    Posts
    121
    Plugin Contributions
    0

    Default Re: Featured Image Resizing

    But they arent because i have my images set at 125x125 (that is the size set for my small sized images) for the rest of the website so how do i get round this :/ .My _MED images are set at 200x200 so i wondered how i could make the featured images use that.

  6. #6
    Join Date
    Jan 2006
    Posts
    121
    Plugin Contributions
    0

    Default Re: Featured Image Resizing

    are these the two files i would need to change, and if so what would i need to change in the code to direct it to the MED size image? Thanks once again.


    /path/to/your/shop/includes/modules/featured_products.php

    Line #53 : 'text' => '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a><br /><a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a><br />' . $products_price);




    /path/to/your/shop/includes/templates/template_default/templates/tpl_modules_products_featured_listing.php

    Line #28 : $display_products_image = '<a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'products_id=' . $featured_products->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $featured_products->fields['products_image'], $featured_products->fields['products_name'], IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH, IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT) . '</a>' . str_repeat('<br clear="all" />', substr(PRODUCT_FEATURED_LIST_IMAGE, 3, 1));


    Line #115 : <td width="<?php echo IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH + 10; ?>" valign="top" class="main" align="center">

 

 

Similar Threads

  1. v153 Larger image popup not resizing - image is tall and skinny
    By laurelsstitchery in forum General Questions
    Replies: 4
    Last Post: 13 Oct 2014, 05:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR