Results 1 to 10 of 62

Hybrid View

  1. #1

    Default Updating Mod for 150 - Little Problem

    Hi There,

    I'm attempting to update the Recently Viewed Items mod to be compatible with ZC150.

    However, after install, the product images showing in the sidebox are full sized images, instead of smaller thumbs, even though the code in templates/YOUR_TEMPLATE/sideboxes/tpl_recent_products.php calls a smaller image:

    PHP Code:
     $content .= '<a href="' zen_href_link(zen_get_info_page($recent_products->fields["products_id"]), 'products_id=' $recent_products->fields["products_id"]) . '">' .  zen_image(DIR_WS_IMAGES $recent_products->fields['products_image'], SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT) . '</a><br />' $recent_products->fields['products_name'] . '<br />' 
    You can see the issue in my test store. Just view a couple products and you'll see the issue straight away.

    This mod worked just fine for me in ZC139. All I did to update it to 150 was copy the mod's code from old outdated ZC files (dating back to 1.3.8) into their new 150 counterparts....but obviously I've still messed up somewhere.

    Suggestions?
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  2. #2
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Updating Mod for 150 - Little Problem

    I'm not familiar with the mod, but when looking at the source of the recently viewed, did you notice that the alt and title tags were both "80", it seems almost as though the code you have above is missing the alt and title variables, isn't there supposed to be either a null or the product title passed through eg

    zen_image(DIR_WS_IMAGES . $recent_products->fields['products_image'], 'title or empty', SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)

    Do you have your working copy available for us to play with?


    Quote Originally Posted by ScriptJunkie View Post
    Hi There,

    I'm attempting to update the Recently Viewed Items mod to be compatible with ZC150.

    However, after install, the product images showing in the sidebox are full sized images, instead of smaller thumbs, even though the code in templates/YOUR_TEMPLATE/sideboxes/tpl_recent_products.php calls a smaller image:

    PHP Code:
     $content .= '<a href="' zen_href_link(zen_get_info_page($recent_products->fields["products_id"]), 'products_id=' $recent_products->fields["products_id"]) . '">' .  zen_image(DIR_WS_IMAGES $recent_products->fields['products_image'], SMALL_IMAGE_WIDTHSMALL_IMAGE_HEIGHT) . '</a><br />' $recent_products->fields['products_name'] . '<br />' 
    You can see the issue in my test store. Just view a couple products and you'll see the issue straight away.

    This mod worked just fine for me in ZC139. All I did to update it to 150 was copy the mod's code from old outdated ZC files (dating back to 1.3.8) into their new 150 counterparts....but obviously I've still messed up somewhere.

    Suggestions?
    Webzings Design
    Semi retired from Web Design

  3. #3

    Default Re: Updating Mod for 150 - Little Problem

    Quote Originally Posted by nigelt74 View Post
    I'm not familiar with the mod, but when looking at the source of the recently viewed, did you notice that the alt and title tags were both "80", it seems almost as though the code you have above is missing the alt and title variables, isn't there supposed to be either a null or the product title passed through eg

    zen_image(DIR_WS_IMAGES . $recent_products->fields['products_image'], 'title or empty', SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)

    Do you have your working copy available for us to play with?
    Yes, I noticed that too (the 80 showing up as the title and alt tags). I think that's very weird...AND it happens to be the image dimensions I have set in config>images for my small image size. I haven't been able to locate that bit of code in order to edit it or try and understand which other bit of code may be generating it. (no luck with developer's toolkit).

    I'm attaching the zip file so anyone who's interested can take a look at it.

    Thanks for taking the time to respond to the thread and peek at the code. I know how busy you are
    Attached Files Attached Files
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  4. #4

    Default Re: Updating Mod for 150 - Little Problem

    And here's the text from the error log that's being generated:

    Code:
    [31-Mar-2012 22:09:27]
    PHP Warning:  include(includes/modules/FILENAME_RECENT_PRODUCTS_MODULE.php) [<a 
    href='function.include'>function.include</a>]: failed to open stream: No such file or directory in 
    /xxx/xxx/public_html/2testzc/includes/templates/atestcustom/templates/tpl_modules_recent_products.php 
    on line 12
    
    
    [31-Mar-2012 22:09:27]
    PHP Warning:  include(includes/modules/FILENAME_RECENT_PRODUCTS_MODULE.php) [<a 
    href='function.include'>function.include</a>]: failed to open stream: No such file or directory in 
    /xxx/xxx/public_html/2testzc/includes/templates/atestcustom/templates/tpl_modules_recent_products.php 
    on line 12
    
    
    [31-Mar-2012 22:09:27] 
    PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening 
    'includes/modules/FILENAME_RECENT_PRODUCTS_MODULE.php' for inclusion 
    (include_path='.:/usr/lib/php:/usr/local/lib/php') in 
    /xxx/xxx/public_html/2testzc/includes/templates/atestcustom/templates/tpl_modules_recent_products.php on line 12
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

  5. #5
    Join Date
    Sep 2005
    Location
    Waikato, New Zealand
    Posts
    1,539
    Plugin Contributions
    3

    Default Re: Updating Mod for 150 - Little Problem

    Umm that seems to be working fine on my test site, working exactly as it should the images in the sidebox are exactly the size they should be.

    And there don't appear to be any errors being generated at all
    Webzings Design
    Semi retired from Web Design

  6. #6

    Default Re: Updating Mod for 150 - Little Problem

    Quote Originally Posted by nigelt74 View Post
    Umm that seems to be working fine on my test site, working exactly as it should the images in the sidebox are exactly the size they should be.

    And there don't appear to be any errors being generated at all
    Hmmm....I don't understand that because I just took a look again in FF, IE, Chrome, and Opera. Got the same results each time (huge blown up images in the recently viewed sidebox) in all browsers and four new error logs in the cache.

    I'm going to try reinstalling and see what happens.
    Go that extra mile, you never know what's at the end of the road

    Empowerment Sanctuary

 

 

Similar Threads

  1. v150 Updating GV Admin Edit mod for 1.5?
    By ecclescake in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 9 Mar 2013, 04:25 PM
  2. Checklist for 150 mod upgrades?
    By dw08gm in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 8 Dec 2011, 03:32 AM
  3. Need expert help updating Optional Insurance Mod for 1.3.8
    By jettrue in forum Upgrading from 1.3.x to 1.3.9
    Replies: 12
    Last Post: 28 Dec 2007, 04:34 PM
  4. Need advice for updating an older shipping by product mod
    By bettysue in forum Addon Shipping Modules
    Replies: 0
    Last Post: 10 Dec 2006, 09:01 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