Page 8 of 9 FirstFirst ... 6789 LastLast
Results 71 to 80 of 83
  1. #71
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: How to hide categories with no active products

    Quote Originally Posted by carlwhat View Post
    i am not sure why a responsive design template would in fact be slower.... other than the template itself might be poorly coded.... but a responsive design template per se, in my experience, does not slow a site down...

    page speed, y-slow and the like are all fine.... they can point you to elements that can make your site faster..... and caching resources definitely helps with a responsive template (or any template for that matter), but...

    https://www.webpagetest.org/

    really tells a better story (thanks to @rodg)....

    in my experience, ZC can slow down due to database lookups, and hosting on fast servers makes a big difference....

    and when i say a fast server, i mean a server with SSD drives including hosting of of your database. big difference IMHO....

    if you can ssh to your server, you can test the speed of your drives. you are looking for under 1 second when you run the following code:

    Code:
    time for i in `seq 1 1000`; do
        dd bs=4k if=/dev/sda count=1 skip=$(( $RANDOM * 128 )) >/dev/null 2>&1;
    done;the
    and if your disks respond with under 1 second, ensure that your db is hosted on the same server. i have had some shared hosts where they claimed SSD drives, only to host the db on a separate server using HDD.

    best.
    Off topic for this thread...but I appreciate the input.

    My DB is on the same drive, speed is okay, and I use db cache already...not sure what is happening.

    All I know is that when I turn on responsive in every version of ZC since 1.5.0, my page load speeds are unacceptable (4-5 times slower with GoDaddy and Inmotion Hosting).

    So, it is, in fact, slower for me. I have reported this in another forum and if I figure out why it is happening, I will update in that forum.

    My images are off site, so I thought something in the CSS might be causing it. https://www.webpagetest.org/ verifies the image loads are the issue, but only in Responsive. Images and pages load very fast in Classic...which tells me the problem is with Responsive.

    Maybe it will not be an issue when Bootstrap is introduced in 1.6. I'll live with Classic for now.

    Thanks.

  2. #72
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,144
    Plugin Contributions
    11

    Default Re: How to hide categories with no active products

    Quote Originally Posted by mikeel100 View Post
    My images are off site, so I thought something in the CSS might be causing it.
    Seriously?
    Your images are someplace other than your images folder?
    Putting them where they belong would certainly be the first way to fix image slowness. Don't know what you have with the responsive but, any image caching would certainly be hampered by having to go offsite for every request. Not to mention problems in https mode.

  3. #73
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: How to hide categories with no active products

    Quote Originally Posted by dbltoe View Post
    Seriously?
    Your images are someplace other than your images folder?
    Putting them where they belong would certainly be the first way to fix image slowness. Don't know what you have with the responsive but, any image caching would certainly be hampered by having to go offsite for every request. Not to mention problems in https mode.
    What is the subject of this thread-- " How to hide categories with no active products?"

    This discussion shouldn't even be happening here...and I did mention that in the previous post. Please stop responding in this thread unless it has to do with the subject of this thread:-)

    Speed is not an issue in Classic...even with the images off site. Believe me, I know all about image optimization. I was reluctant to use off-site images but it works fine in Classic...and there are no cache, speed, or https issues. Again, Classic works great but Responsive does not.

  4. #74
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,144
    Plugin Contributions
    11

    Default Re: How to hide categories with no active products

    I won't mention what I thought of responding but, I would like to point out that you made a blanket comment in post #65 that could affect many folk's decisions on templates.
    Be careful with the responsive templates...I'm having an awful time with page load speeds when I use the default install in 1.5.5d. The layout is okay but I do not like the performance.
    Like lat9, we have somewhat of an interest in helping with responsive templates. Your comment sent me straight to test sites to see what could be the cause UNTIL... I saw your offsite images comment.

    Non-standard practices WILL have an adverse effect on Zen Cart performance. Other things like old mods, wrong PHP, etc. as well. That's why the posting tips are so important. One of those posting tip questions is "In what ways is your site customized or different from a brand new uncustomized install?"

    Your statement (without clarification that yours was not a standard install) could very well cause someone to make an unwise decision in template selection or image placement. You might be able to handle it well but, are you willing to tell others that they could do it as well? Speed is not the only concern when images are off site.

    The posting tips are there because we are never "in the same boat." Once one letter; one bit of code; one div call is changed, it becomes your cart unlike any other. Always a similar situation but never the same.
    I will comment whenever I feel there is something a budding Zenner needs to know, regardless of the topic. Hopefully, it being found on a Google or forum search will help someone in the future.
    That's why I'm here.
    you?

  5. #75
    Join Date
    Sep 2012
    Location
    West Jefferson, NC
    Posts
    383
    Plugin Contributions
    0

    Default Re: How to hide categories with no active products

    Quote Originally Posted by dbltoe View Post
    I won't mention what I thought of responding but, I would like to point out that you made a blanket comment in post #65 that could affect many folk's decisions on templates.
    Like lat9, we have somewhat of an interest in helping with responsive templates. Your comment sent me straight to test sites to see what could be the cause UNTIL... I saw your offsite images comment.

    Non-standard practices WILL have an adverse effect on Zen Cart performance. Other things like old mods, wrong PHP, etc. as well. That's why the posting tips are so important. One of those posting tip questions is "In what ways is your site customized or different from a brand new uncustomized install?"

    Your statement (without clarification that yours was not a standard install) could very well cause someone to make an unwise decision in template selection or image placement. You might be able to handle it well but, are you willing to tell others that they could do it as well? Speed is not the only concern when images are off site.

    The posting tips are there because we are never "in the same boat." Once one letter; one bit of code; one div call is changed, it becomes your cart unlike any other. Always a similar situation but never the same.
    I will comment whenever I feel there is something a budding Zenner needs to know, regardless of the topic. Hopefully, it being found on a Google or forum search will help someone in the future.
    That's why I'm here.
    you?
    I did not mean to be abrasive in my post. I've been hammered a couple of times by the Good Doctor for having off topic conversations...just trying to prevent it from happening again.

    I do appreciate your insight.

    Let's end the discussion on Responsive Classic speed in this topic.

    Later:-)

  6. #76
    Join Date
    Dec 2008
    Location
    Pittsburgh, PA
    Posts
    237
    Plugin Contributions
    1

    Default Re: How to hide categories with no active products

    Quote Originally Posted by mikeel100 View Post
    I feel your pain...took me a while to upgrade as well. I tried Westminster a couple of years ago and had to abandon it.

    Be careful with the responsive templates...I'm having an awful time with page load speeds when I use the default install in 1.5.5d. The layout is okay but I do not like the performance.

    It sounds like you are on the right path. I probably don't need to say this but...after you fresh install your test shop and before installing any other mods, I recommend you copy the classic files to your template system and modify the appropriate files with the suggestions on page 5 of this feed and test them first.

    Good luck.
    thanks for the advice, I followed it and realized I must have been trying to make these mods too late at night haha.

  7. #77
    Join Date
    Dec 2008
    Location
    Phoenix, AZ
    Posts
    28
    Plugin Contributions
    0

    bug NOT WORKING IN V1.5.5f Re: How to hide categories with no active products

    This does not create a switch in layout:

    Quote Originally Posted by Ajeh View Post
    Then add the switch to the configuration table via the Tools ... Install SQL Patches ...
    Code:
    INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) VALUES ('Categories with Inactive Products Status', 'CATEGORIES_PRODUCTS_INACTIVE_HIDE', '0', 'Hide Categories with Inactive Products?<br />0= off<br />1= on', 19, 30, 'zen_cfg_select_option(array(\'0\', \'1\'), ', now());
    Setting this new setting in the Configuration ... Layout Settings ... for Categories with Inactive Products Status to 0 or OFF will NOT hide the empty Categories or Categories with all Products set to products_status = 0 and setting this to 1 or ON will hide them ...

  8. #78
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: NOT WORKING IN V1.5.5f Re: How to hide categories with no active products

    Quote Originally Posted by net3431 View Post
    This does not create a switch in layout:
    When you access your admin and select configuration->Layout Settings, what does the rest of your uri show after configuration.php ?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #79
    Join Date
    Dec 2008
    Location
    Phoenix, AZ
    Posts
    28
    Plugin Contributions
    0

    Default Re: NOT WORKING IN V1.5.5f Re: How to hide categories with no active products

    configuration.php?gID=19

  10. #80
    Join Date
    Dec 2008
    Location
    Phoenix, AZ
    Posts
    28
    Plugin Contributions
    0

    Default Re: NOT WORKING IN V1.5.5f Re: How to hide categories with no active products

    Son of gun... it's there now.

    Categories with Inactive Products Status
    Edit

    Hide Categories with Inactive Products?
    0= off
    1= on

 

 
Page 8 of 9 FirstFirst ... 6789 LastLast

Similar Threads

  1. v150 how do i hide sub categories with no products listed
    By alibaba99 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 28 Jan 2017, 06:19 PM
  2. Hide Categories with 0 Products
    By Semenek in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 4 Sep 2010, 05:44 PM
  3. Hide categories/subcategories with no products
    By earthone in forum Basic Configuration
    Replies: 0
    Last Post: 22 Jul 2010, 09:38 PM
  4. Active products in categories box
    By ouxly40 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 26 Sep 2007, 11:46 AM
  5. How to hide sub-categories with no active products?
    By donplay in forum Setting Up Categories, Products, Attributes
    Replies: 5
    Last Post: 29 Aug 2007, 08:20 PM

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