Results 1 to 10 of 1688

Threaded View

  1. #11
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: products_image_large equivalent

    Quote Originally Posted by nipinuk View Post
    Hi there, I'm trying to find out the same thing but I don't understand what you replaced $products_image_large with? I did a search for the handle_image function on the developers toolkit and saw a few results. I did look into the files but really don't understand what to replace it with.

    I've found the following code on zen colorbox:
    Code:
    // hook for handle_image() function such as Image Handler etc
      if (function_exists('handle_image')) {
        $newimg = handle_image($src, $alt, $width, $height, $parameters);
        list($src, $alt, $width, $height, $parameters) = $newimg; 
      }
    I tried replacing $products_image_large with $newimg_large and checking the source code shows up a blank I'm trying to get Product Image Zoom plugin to point to IH4 large image instead of having to put large images into the images/large folder.

    Thank you for your patience!
    The code snippet above provides the characteristics of the image to be displayed as a type of an "array" with the image source returned as $src. If you take a look at IH4s includes/modules/YOUR_TEMPLATE/additional_images.phpfor example, you will see a similar function call with $products_image_large assigned to zen_output_string($src). This type of assignment for your situation would need to be performed after the original image is identified, but before the image is displayed/used further.

    Looking atthe code a little further, there is yet more "work" done to ensure all things associated with the assignment of the image is correct. (Ie, the path/file is pulled from the correct location. Etc.)
    Last edited by mc12345678; 31 Oct 2014 at 06:22 PM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v158 Image Handler 5 (for v1.5.5 - v1.5.8) Support Thread
    By lat9 in forum All Other Contributions/Addons
    Replies: 749
    Last Post: 20 May 2026, 03:47 PM
  2. Attribute image replaces main product image on select [Support Thread]
    By exoticcorpse in forum All Other Contributions/Addons
    Replies: 176
    Last Post: 14 Dec 2025, 12:55 AM
  3. v139h Image Handler 3 Support Thread (for ZC v1.3.9)
    By DivaVocals in forum All Other Contributions/Addons
    Replies: 1095
    Last Post: 2 Oct 2017, 12:42 PM
  4. v138a Image Handler 2 (for ZC v1.3.8 ONLY) Support
    By timkroeger in forum All Other Contributions/Addons
    Replies: 7098
    Last Post: 12 Oct 2014, 03:48 AM
  5. Image Handler Support Please
    By nadinesky in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 30 Sep 2013, 03:47 PM

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