Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default Centerbox Image Size

    I want to activate my featured products center box and have one product with a large image. The problem I have encountered making the image larger is I am using the image manager mod which creates small medium and large images.

    The admin settings for:
    configuration > images > Image - Featured Products Width
    configuration > images > Image - Featured Products Height

    can't resize/enlarge the image larger than it's actual size which is much to small for what I want.

    I'm looking in this file

    includes/modules/featured_products.php

    on line 143 in my file

    Code:
     'text' => (($featured_products->fields['products_image'] ==  '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<h1  class="itemTitle"><a href="' . zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$featured_products->fields['products_id']] . '&products_id=' . $featured_products->fields['products_id']) . '">' . $featured_products->fields['products_name'] . '</a></h1><div>' . '<a href="' .  zen_href_link(zen_get_info_page($featured_products->fields['products_id']), 'cPath=' . $productsInCategory[$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)) . '<span>' . zen_trunc_string(zen_clean_html(stripslashes(zen_get_products_description($featured_products->fields['products_id'],  $_SESSION['languages_id']))), PRODUCT_LIST_DESCRIPTION) . '</span></a></div><br /><div class="prodPrice">' . $products_price . '</div><br /><a style="padding-bottom:10px" href="' . zen_href_link(FILENAME_PRODUCT_INFO, zen_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $new_products->fields['products_id'], 'NONSSL') . '">' . zen_image_button('button_in_cart.gif', BUTTON_IN_CART_ALT) . '</a>');
    I tried replacing

    Code:
    IMAGE_FEATURED_PRODUCTS_LISTING_WIDTH,  IMAGE_FEATURED_PRODUCTS_LISTING_HEIGHT
    with this

    Code:
    MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT
    which doesn't work


    I had done something similar with a sidebox once before but I can't find the post where I received help and I can't find my notes on it either.

    Am I way off? What am I missing?

    Thanks

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Centerbox Image Size

    can't resize/enlarge the image larger than it's actual size which is much to small for what I want.
    Use a graphic editor to increase the image size of the base file image
    Save it and replace that image with the one you resized

  3. #3
    Join Date
    Jun 2008
    Posts
    627
    Plugin Contributions
    0

    Default Re: Centerbox Image Size

    Thanks

    Yes, I had considered that but didn't want to have to redo images each time I wanted to set an item as featured.

  4. #4
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default Re: Centerbox Image Size

    did you ever fix this? ive posted an almost identical thread (oops!) and i cant get it working?

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Centerbox Image Size

    Quote Originally Posted by bonnit
    did you ever fix this?
    If for the OP's issue, well then yes a procedure was recommended

    One should NEVER have only a small low resolution image for a product

    Featured image size is settable but only will resize "down" from an images native size

    Image - Featured Products Width
    Image - Featured Products Height

  6. #6
    Join Date
    Jun 2009
    Location
    Kent, UK
    Posts
    347
    Plugin Contributions
    5

    Default Re: Centerbox Image Size

    sorry i shoul have put mre detail, i see the recommendation to change the standard image size, but i was looking for a solution which would directly call the large image instead of the standard image. ive tried inserting . 'large/' . into the code of modules/featuredproducts.php but it just displays no image found, due to the noimage.gif - all i can see is the path to that rather han the (albeit broken) path to the large image in that modified code, despite having turned this off in admin, i presume its i need to somehow add the _LRG suffix to the image name, although im not alltogether sure on how to do this, ive tried copying a few other files methods but no joy.

    i cant really use the standard image, same as OP because i need just one 300x300 image to display when featured products are on. of course all my standard images are only 150x150 and then i have medium and large sized images for each product. it seems a little long winded to increase the size of the normal image to display for featured products each time i want to set a featured product up, hence the reason for wanting to rewrite it to automatically call the large image version instead,does that make sense?

 

 

Similar Threads

  1. v150 matching image size to box size so that image doesn't tile
    By cyberbaffled in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Jul 2013, 02:08 PM
  2. Pop up image size.. image right size, window too small
    By grayceworks in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 18 Dec 2011, 06:25 AM
  3. Image in New Products Centerbox heading
    By reversegarbage in forum Basic Configuration
    Replies: 7
    Last Post: 7 Aug 2008, 08:33 PM
  4. Quick question - change centerbox size
    By charmedbytina2 in forum General Questions
    Replies: 5
    Last Post: 17 May 2007, 03:15 AM

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