Page 28 of 30 FirstFirst ... 182627282930 LastLast
Results 271 to 280 of 297
  1. #271
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Template Fluorspar

    Ok, on the product listing I have a product is out of stock with the red image. It the box is longer than the others.


  2. #272
    Join Date
    Jan 2015
    Posts
    728
    Plugin Contributions
    1

    Default Re: Template Fluorspar

    Quote Originally Posted by wmorris View Post
    Are you saying that I need to copy this file:
    \includes\languages\lang.english.php

    and replace it with this file?
    \includes\languages\fluorspar\lang.english.php

    The height issue does work but the way your template is built I would go with a script to size those boxes. Using CSS to get the size would cause more of a headache.



    Lets try this. This will solve your issue in a much easier manner

    path: /includes/templates/your_template/common/tpl_main_page.php

    add this to the very bottom

    Code:
    <script> 
        window.onload = function() {
            var boxes = document.querySelectorAll('.productBox');
            
            var maxHeight = 0;
    
            // First, find the maximum height
            boxes.forEach(function(box) {
                box.style.height = 'auto'; // Reset the height to auto
                var boxHeight = box.offsetHeight;
                if (boxHeight > maxHeight) {
                    maxHeight = boxHeight;
                }
            });
    
            // Now, apply the maximum height to all product boxes
            boxes.forEach(function(box) {
                box.style.height = maxHeight + 'px';
            });
        };
    </script>

  3. #273
    Join Date
    Jan 2015
    Posts
    728
    Plugin Contributions
    1

    Default Re: Template Fluorspar

    Quote Originally Posted by wmorris View Post
    Ok, on the product listing I have a product is out of stock with the red image. It the box is longer than the others.


    The height issue does work but the way your template is built I would go with a script to size those boxes. Using CSS to get the size would cause more of a headache.



    Lets try this. This will solve your issue in a much easier manner

    path: /includes/templates/your_template/common/tpl_main_page.php

    add this to the very bottom

    Code:
    <script> 
        window.onload = function() {
            var boxes = document.querySelectorAll('.productBox');
            
            var maxHeight = 0;
    
            // First, find the maximum height
            boxes.forEach(function(box) {
                box.style.height = 'auto'; // Reset the height to auto
                var boxHeight = box.offsetHeight;
                if (boxHeight > maxHeight) {
                    maxHeight = boxHeight;
                }
            });
    
            // Now, apply the maximum height to all product boxes
            boxes.forEach(function(box) {
                box.style.height = maxHeight + 'px';
            });
        };
    </script>

  4. #274
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Template Fluorspar

    That did it. Thank You!

    Quote Originally Posted by chadlly2003 View Post
    The height issue does work but the way your template is built I would go with a script to size those boxes. Using CSS to get the size would cause more of a headache.



    Lets try this. This will solve your issue in a much easier manner

    path: /includes/templates/your_template/common/tpl_main_page.php

    add this to the very bottom

    Code:
    <script> 
        window.onload = function() {
            var boxes = document.querySelectorAll('.productBox');
            
            var maxHeight = 0;
    
            // First, find the maximum height
            boxes.forEach(function(box) {
                box.style.height = 'auto'; // Reset the height to auto
                var boxHeight = box.offsetHeight;
                if (boxHeight > maxHeight) {
                    maxHeight = boxHeight;
                }
            });
    
            // Now, apply the maximum height to all product boxes
            boxes.forEach(function(box) {
                box.style.height = maxHeight + 'px';
            });
        };
    </script>

  5. #275
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Template Fluorspar

    Ok, I have another issue on the new product module on the main page. Why are my product image is bigger than the other and the product listing images size is right?


  6. #276
    Join Date
    Jan 2015
    Posts
    728
    Plugin Contributions
    1

    Default Re: Template Fluorspar

    Quote Originally Posted by wmorris View Post
    Ok, I have another issue on the new product module on the main page. Why are my product image is bigger than the other and the product listing images size is right?

    Just look at you site. Look like you got it.

    Can i make one suggestion lets have zencart called the image size instead of the css. Once you make the changes below go to backend of zencart
    and adjust your new 'product image size' there.

    Once that is done look at how nice your images look on mobile and desktop. Big difference in quality of the image.



    path: responsive.css
    line:47
    find this and remove....
    Code:
    img.listingProductImage{width:30%;}
    path: responsive.css
    line:150
    find this and remove....
    Code:
    img.listingProductImage{width:60%;}

  7. #277
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Template Fluorspar

    Quote Originally Posted by chadlly2003 View Post
    Just look at you site. Look like you got it.

    Can i make one suggestion lets have zencart called the image size instead of the css. Once you make the changes below go to backend of zencart
    and adjust your new 'product image size' there.

    Once that is done look at how nice your images look on mobile and desktop. Big difference in quality of the image.



    path: responsive.css
    line:47
    find this and remove....
    Code:
    img.listingProductImage{width:30%;}
    path: responsive.css
    line:150
    find this and remove....
    Code:
    img.listingProductImage{width:60%;}
    What am I looking for in the backend of Zen-Cart?

  8. #278
    Join Date
    Jan 2015
    Posts
    728
    Plugin Contributions
    1

    Default Re: Template Fluorspar

    Quote Originally Posted by wmorris View Post
    What am I looking for in the backend of Zen-Cart?
    Now you can control the image width and height via the admin.


    After you make the above changes you can login to your admin and change images sizes there.

    go to configuration
    - images

    look for
    Image - Product Listing Height
    Image - Product Listing width

    You can also resize the new product images etc...

  9. #279
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: Template Fluorspar

    Quote Originally Posted by chadlly2003 View Post
    Now you can control the image width and height via the admin.


    After you make the above changes you can login to your admin and change images sizes there.

    go to configuration
    - images

    look for
    Image - Product Listing Height
    Image - Product Listing width

    You can also resize the new product images etc...
    The new product module the main page hasn't changed its still showing the big or height is long. The product listing is fine.

  10. #280
    Join Date
    Jan 2015
    Posts
    728
    Plugin Contributions
    1

    Default Re: Template Fluorspar

    You haven't made the changes yet. I am still seeing the css there.

 

 
Page 28 of 30 FirstFirst ... 182627282930 LastLast

Similar Threads

  1. theme277 from template monster and replacing with new template
    By DarkAngel in forum General Questions
    Replies: 0
    Last Post: 8 Nov 2012, 07:17 AM
  2. Can't seem to get template on the admin/tools/template selection
    By avmejias in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 19 Aug 2012, 07:39 AM
  3. Replies: 8
    Last Post: 29 Apr 2011, 07:53 PM
  4. Template selection page not viewable after uploading custom template
    By mek113 in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 28 Apr 2011, 05:16 PM
  5. open_basedir restriction in effect - trying to use tm001 template monster template
    By prantiC in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 10 Aug 2007, 10:02 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