Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default how to I alter image size of specials in centre on main page?

    I can't find which file to alter in order to change the image size of specials images in the center column on the main page.I've renamed the specials box to 'SPECIAL OFFERS' and you can see it seems to be using my product listing page images but it looks messy and id like to be sized the same as the box above which is out featured products which we've re-named 'great gift ideas'

    Any ideas?

  2. #2
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: how to I alter image size of specials in centre on main page?

    anybody? Really need to get this tidied up for the client.

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: how to I alter image size of specials in centre on main page?

    Currently, the Specials Centerbox in:
    /includes/modules/specials_index.php

    uses:
    Code:
        'text' => (($specials_index->fields['products_image'] == '' and PRODUCTS_IMAGE_NO_IMAGE_STATUS == 0) ? '' : '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'cPath=' . $productsInCategory[$specials_index->fields['products_id']] . '&products_id=' . (int)$specials_index->fields['products_id']) . '">' . zen_image(DIR_WS_IMAGES . $specials_index->fields['products_image'], $specials_index->fields['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a><br />') . '<a href="' . zen_href_link(zen_get_info_page($specials_index->fields['products_id']), 'cPath=' . $productsInCategory[$specials_index->fields['products_id']] . '&products_id=' . $specials_index->fields['products_id']) . '">' . $specials_index->fields['products_name'] . '</a><br />' . $products_price);
    You would need to make your size changes, in your templates and overrides, where you see the:
    SMALL_IMAGE_WIDTH
    SMALL_IMAGE_HEIGHT
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: how to I alter image size of specials in centre on main page?

    But some images may look distorted if i give them a set height and width, is there some code to add in so that they will constrain proportions, so if i set the width to 100 all heights will adjust accordingly?

    Thanks

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: how to I alter image size of specials in centre on main page?

    You can try setting the height to 100 and the width to 0 ... and see how that looks for you ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  6. #6
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: how to I alter image size of specials in centre on main page?

    Ok, thank you so much for your help. I can't find a file called specials_index.php though. Any idea where this is?

    Thanks

  7. #7
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: how to I alter image size of specials in centre on main page?

    I've found the file Will give your suggestion a go. Thank you!

  8. #8
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: how to I alter image size of specials in centre on main page?

    P.s also how would I edit the code to do this, would I do it like this;

    SMALL_IMAGE_WIDTH 100, SMALL_IMAGE_HEIGHT 0)

    I'm unsure. Thanks again inadvance for your help.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: how to I alter image size of specials in centre on main page?

    The constants:
    SMALL_IMAGE_WIDTH
    SMALL_IMAGE_HEIGHT

    are values ...

    You need to replace them with:
    0
    100
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Mar 2009
    Posts
    435
    Plugin Contributions
    0

    Default Re: how to I alter image size of specials in centre on main page?

    Doh! Thank you. That's done it

 

 

Similar Threads

  1. Main Page: Centre Col: Category Thumbnail Image Size
    By bettercup in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Apr 2011, 08:16 PM
  2. Change image and text size on specials page
    By BlacksmithRon in forum General Questions
    Replies: 1
    Last Post: 11 Feb 2009, 09:56 PM
  3. Category on Main Page Image Size
    By DigitalGuard in forum General Questions
    Replies: 3
    Last Post: 22 Jul 2008, 09:45 PM
  4. Ok, I give up! How do I alter the size of the header image?
    By karentown in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 3 Nov 2007, 02:40 AM

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