Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    220
    Plugin Contributions
    0

    Default Problem with custom tpl_whats_new.php sidebox after upgrade

    We performed the upgrade from 1.3.7 to 1.3.9b yesterday and for the most part things seem to be working well but we have run into a few problems.


    We have a custom box that we build for display of our products on other websites. In the code of our file which is equivalent of the includes\templates\custom_template\sideboxes\tpl_whats_new.php file there is a part of the code that says this

    . zen_image(DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], 50, 40)

    This piece of code dealt with the display of the image in this custom box and would cause the image to appear very small within the 50X40 range (in 1.3.7) Now with this upgrade it seems that the image is appearing in the store default (100X80) range regardless of the fact that in the code it says 50X40.

    Any assistance would be appreciated.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Problem with custom tpl_whats_new.php sidebox after upgrade

    Sounds like your /includes/functions/html_output.php file might be damaged or maybe it's using content from another version of Zen Cart or from an addon not built for the ZC version you're using.
    Or maybe you've got an image addon that's intercepting the normal image treatment, and thus giving unexpected results.
    Or maybe the image itself is damaged somehow?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jul 2005
    Posts
    220
    Plugin Contributions
    0

    Default Re: Problem with custom tpl_whats_new.php sidebox after upgrade

    Ok did some more work on this and narrowed this down

    If we used this piece as originally written

    ' . zen_image (DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], 57,40 ) . '

    The image size in the sidebox for some reason still defaults to 100 X 80

    If we do this

    ' . zen_image_OLD (DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'] ) . '

    Same behavior

    BUT if we do this

    ' . zen_image_OLD (DIR_WS_IMAGES . $random_whats_new_sidebox_product->fields['products_image'], $random_whats_new_sidebox_product->fields['products_name'], 57,40 ) . '

    The image in the custom sidebox will now be 57X40 BUT the image now has a border around it.

    How can we change the line above for the image to not have a border and why must we switch from zen_image to zen_image_OLD


    Thanks

  4. #4
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Problem with custom tpl_whats_new.php sidebox after upgrade

    There were no changes to zen_image() or zen_image_OLD() from v1.3.7 to 1.3.8 or 1.3.9, as far as original code is concerned.

    Maybe you're using an addon that is changing things?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v151 tpl_whats_new.php
    By SilverHD in forum General Questions
    Replies: 4
    Last Post: 17 Jan 2014, 06:49 PM
  2. define_main_page.php problem after upgrade to 1.3.9g
    By justin2010 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 1 Oct 2010, 04:05 AM
  3. Replies: 2
    Last Post: 30 Jul 2007, 11:17 AM
  4. Help! - Problem with DB after upgrade to 1.3.7
    By Peter Homann in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 2 Feb 2007, 11:50 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