Results 1 to 10 of 385

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    the $products_image_directory is defined further up in this file and actually this code has not been changed, so I can only assume that you are either organising your files in a way zen cart has never intended or there is a bug in the zencart core code?

    this is how it is defined:
    PHP Code:
    $products_image_directory str_replace($products_image''substr($products_imagestrrpos($products_image'/')));
      if (
    $products_image_directory != '') {
        
    $products_image_directory DIR_WS_IMAGES str_replace($products_image_directory''$products_image) . "/";
      } else {
        
    $products_image_directory DIR_WS_IMAGES;
      } 
    check you have this code above in your file. as you can see it gets the image directly from the image file location against your product.

    so assumably if on the database it is like this:
    images/coats/12345.jpg
    then the above code will strip this back to just
    images/coats/
    which defines the image directory. so there is no reason why this shouldnt be working.
    Phil Rogers
    A problem shared is a problem solved.

  2. #2
    Join Date
    Aug 2009
    Location
    Bedford, England
    Posts
    966
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    I think I see your problem


    images/Manufacturer_Name/ImageA.jpg
    images/ Manufacturer_Name /ImageA_01.jpg
    Medium images:
    images/medium/ Manufacturer_Name/ImageA_MED.jpg
    images/medium/ Manufacturer_Name/ImageA_01_MED.jpg
    Large images:
    images/large/ Manufacturer_Name/ImageA_LRG.jpg
    images/large/ Manufacturer_Name/ImageA_01_LRG.jpg
    should it not be:
    images/Manufacturer_Name/ImageA.jpg
    images/Manufacturer_Name/ImageA_01.jpg
    Medium images:
    images/Manufacturer_Name/medium/ImageA_MED.jpg
    images/Manufacturer_Name/medium/ImageA_01_MED.jpg
    Large images:
    images/Manufacturer_Name/large/ImageA_LRG.jpg
    images/Manufacturer_Name/large/ImageA_01_LRG.jpg

    ???
    Phil Rogers
    A problem shared is a problem solved.

  3. #3
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    Quote Originally Posted by philip937 View Post
    I think I see your problem




    should it not be:
    images/Manufacturer_Name/ImageA.jpg
    images/Manufacturer_Name/ImageA_01.jpg
    Medium images:
    images/Manufacturer_Name/medium/ImageA_MED.jpg
    images/Manufacturer_Name/medium/ImageA_01_MED.jpg
    Large images:
    images/Manufacturer_Name/large/ImageA_LRG.jpg
    images/Manufacturer_Name/large/ImageA_01_LRG.jpg

    ???
    It should be:
    images/Manufacturer_Name/ImageA.jpg
    images/Manufacturer_Name/ImageA_01.jpg
    Medium images:
    images/medium/Manufacturer_Name/ImageA_MED.jpg
    images/medium/Manufacturer_Name/ImageA_01_MED.jpg
    Large images:
    images/large/Manufacturer_Name/ImageA_LRG.jpg
    images/large/Manufacturer_Name/ImageA_01_LRG.jpg

    I am trying to get rid of all $products_image_directory and replace it back to DIR_WS_IMAGES as it was (I think originally intended). I will let you know what happens.
    Last edited by Kevin205; 2 May 2013 at 05:25 PM.
    Using Zen Cart 1.5.1

  4. #4
    Join Date
    Dec 2012
    Posts
    607
    Plugin Contributions
    0

    Default Re: Jquery Zoom [Support thread]

    From what I have found out so far, the problem is where DIR_WS_IMAGES is replaced with $products_image_directory!


    Quote Originally Posted by philip937 View Post
    the $products_image_directory is defined further up in this file and actually this code has not been changed, so I can only assume that you are either organising your files in a way zen cart has never intended or there is a bug in the zencart core code?

    this is how it is defined:
    PHP Code:
    $products_image_directory str_replace($products_image''substr($products_imagestrrpos($products_image'/')));
      if (
    $products_image_directory != '') {
        
    $products_image_directory DIR_WS_IMAGES str_replace($products_image_directory''$products_image) . "/";
      } else {
        
    $products_image_directory DIR_WS_IMAGES;
      } 
    check you have this code above in your file. as you can see it gets the image directly from the image file location against your product.

    so assumably if on the database it is like this:
    images/coats/12345.jpg
    then the above code will strip this back to just
    images/coats/
    which defines the image directory. so there is no reason why this shouldnt be working.


    The highlighted in Red is where the problem is. It should show it as images/medium/coats/ (for medium) or images/large/coats/ (for large) and it doesn't. That's why you get all your small images images/coats/ (Thumbnails) and non of the other, medium or large.

    Of-course this matters where you have your directories organized in a certain way, and not when placing all images under, images/, images/medium/ and images/large/.
    Using Zen Cart 1.5.1

 

 

Similar Threads

  1. v153 jQuery Scrolling Sideboxes [Support Thread]
    By lat9 in forum Addon Sideboxes
    Replies: 79
    Last Post: 15 Apr 2024, 10:20 PM
  2. v152 Down for Maintenance jQuery Countdown (Support Thread)
    By rbarbour in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 27 Nov 2015, 03:04 PM
  3. v152 jQuery Banners (Support Thread)
    By rbarbour in forum All Other Contributions/Addons
    Replies: 6
    Last Post: 30 Sep 2015, 02:07 AM
  4. Jquery Lightbox [Support thread]
    By yellow1912 in forum All Other Contributions/Addons
    Replies: 257
    Last Post: 2 Aug 2012, 10:57 PM
  5. Is there an add-on combine the functions of AJAX_image_swapper and Jquery Zoom?
    By mybiz9999 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 10 Jul 2010, 01:57 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