Thread: hideCategories

Page 10 of 49 FirstFirst ... 8910111220 ... LastLast
Results 91 to 100 of 487
  1. #91
    Join Date
    May 2007
    Posts
    19
    Plugin Contributions
    0

    Default Re: hideCategories

    could you elaborate on how you installed it?
    i must have installed this contrib incorrectly somehow
    i hand copied all the files listed to the correct dirs and sub dirs,
    i can see the new table has three rows ( where i have first created a category then edited it and chosen to give it only direct links.
    however, the categories still show up ( along with the other categories)
    so i wonder which php file is either missing or not copied right.
    i have double checked everything...

  2. #92
    Join Date
    Mar 2005
    Location
    Helsinki
    Posts
    570
    Plugin Contributions
    0

    Default Re: hideCategories

    Quote Originally Posted by poosk View Post
    I'm quite in a hurry so I didn't have time to flip through the whole topic so hope anyone hasn't asked this yet.

    Could it be possible to set all 0 qty products automaticly to hidden? Since we use social bookmarking mod it would be useful to have those products around even though they'd be sold out but still hidden from the menu..
    Still thinking about this.. would it be hard to hide PRODUCTS from listings instead of the whole categories?

  3. #93
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default Re: hideCategories

    Poosk... Probably no harder, no... but a completely different mod as it affects totally different files. Its a good idea, but it won't be part of this contrib.

    Eddie... can't really elaborate any more than what's in the readme. Follow it step-by-step. If there's a particular step that you're stuck on let us know but be specific.

    - Steven

  4. #94

    Idea or Suggestion Re: hideCategories | Hiding Categories in Site Map & Customers who bought... Sections

    After installing the mod, I noticed that there were a few places where my hidden categories were still showing (Site Map, Customers who bought this product also purchased...).

    I haven't seen any posts for solutions to hiding in Site Map & Customers who bought... sections, so I thought I'd post my ideas. I use Zen-Cart 1.3.7 too, BTW.

    Here's how I stopped the categories from showing in Site Map & individual products from w/in a hidden category from being shown in Customers who bought...

    Customers who bought...
    go to: /includes/classes/db/mysql/define_queries.php
    and find the section that starts w/ DEFINE('SQL_ALSO_PURCHASED' and make it look like this:

    Code:
    DEFINE('SQL_ALSO_PURCHASED', "select p.products_id, p.products_image
                         from " . TABLE_ORDERS_PRODUCTS . " opa, " . TABLE_ORDERS_PRODUCTS . " opb, "
                                . TABLE_ORDERS . " o, " . TABLE_PRODUCTS . " p LEFT JOIN "
    			    . TABLE_HIDE_CATEGORIES . " h ON (p.master_categories_id = h.categories_id)
    		     where (h.visibility_status < 2 OR h.visibility_status IS NULL)
                         and opa.products_id = '%s'
                         and opa.orders_id = opb.orders_id
                         and opb.products_id != '%s'
                         and opb.products_id = p.products_id
                         and opb.orders_id = o.orders_id
                         and p.products_status = 1
                         group by p.products_id
                         order by o.date_purchased desc
                         limit " . MAX_DISPLAY_ALSO_PURCHASED);

    Now for the Site Map
    go to: /includes/classes/site_map.php
    On or around line 37 (depending if you've edited this file before) & make sure it looks like this:

    Code:
    $categories_query = "select c.categories_id, cd.categories_name, c.parent_id
    	from " . TABLE_CATEGORIES . " c LEFT JOIN "
    	. TABLE_HIDE_CATEGORIES . " h ON (c.categories_id = h.categories_id), "
    	. TABLE_CATEGORIES_DESCRIPTION . " cd
    	where (h.visibility_status < 2 OR h.visibility_status IS NULL)
    	and c.categories_id = cd.categories_id
    	and cd.language_id = '" . (int)$_SESSION['languages_id'] . "'
    	and c.categories_status != '0'
    	order by c.parent_id, c.sort_order, cd.categories_name";
    These changes *should* work. Mileage may vary. Make a copy of these files & backup before editing them in case something looks screwy afterwords.

    I hope this is useful to someone out there.
    Shawn
    Es Developed - Website & Graphic Design
    www.esdev.net

  5. #95

    Idea or Suggestion Re: hideCategories | Hiding Prev / Next Buttons in Hidden Categories

    I also forgot something. After I made the changes I posted above, I still had an issue.

    If you have more than one product in a hidden category, visitors who are able to view one of your 'hidden' products will be able to use the previous/next buttons at the top of the product page to browse to your other hidden products w/in that same category. Depending on your situation, this may be undesirable.

    Of course, you could edit the listing template, but this might be destructive if you wanted to show the buttons later on down the road. This is a non-destructive alternative using the CSS stylesheet.

    Hide the Previous Next Buttons
    A simple CSS rule will fix it. This is useful if you have multiple products in a hidden category that you don't want customers to be able to browse to easily.

    NOTE: This will also hide those buttons in every category throughout your site (hidden or not), so use wisely. You might be able to narrow it down to only affect certain pages, but not very easily, I don't think.

    Go to: stylesheet.css in includes/templates/css/ and add a rule to your css:
    Code:
    .navNextPrevWrapper { display: none; }
    The rule will hide the whole section from prying eyes, but still allow you to make it visible later if you so desire.

    Hope this isn't too off-topic.
    Shawn
    Es Developed - Website & Graphic Design
    www.esdev.net

  6. #96
    Join Date
    Aug 2005
    Location
    Trujillo Alto, Puerto Rico
    Posts
    1,547
    Plugin Contributions
    9

    Default Re: hideCategories

    Just a thought... I'm not programmer but maybe this will help.

    Instead of using the "Product General" you can use any of the other product types to create your hidden category. This way you could take out those previous, listing, next buttons without compromising the regular products.

    Oh! and Trevor... I haven't used your hacks but I will try them, looks like great options.
    IDEAS Girl
    IDEAS Creative Group
    = Your image... our business!

  7. #97

    Default Re: hideCategories

    Quote Originally Posted by ideasgirl View Post
    Instead of using the "Product General" you can use any of the other product types to create your hidden category. This way you could take out those previous, listing, next buttons without compromising the regular products.
    I didn't realize there was an option for that. Hmm... I'm still learning

    My css hack works for me on the project I finished. I'll keep this in mind though for next time; thanks.

    If you care, it's www.earpops.com
    Shawn
    Es Developed - Website & Graphic Design
    www.esdev.net

  8. #98

    Default Re: hideCategories

    Is their an example of this mod on a test or live site, if so can someone put up a link to it?
    Rich People scream, Wealthy people whisper

    www.cooltechcentral.com

  9. #99
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: hideCategories

    You mean like the link in the post above yours? :)

    Seriously, you are only going to be able to see the effect of the mod by having admin access to a site, or the site owner giving you a link to a hidden category on their site.

  10. #100
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default Re: hideCategories

    Exactly. Although... you can sort of see it.

    Go to this site: www.smartieparts.com

    Search for "oem floor mats" and a couple things should come up. You won't find either of those items by way of the menu or categories. That is an example of a search-only category. I don't think that sites use any fully hidden ones that don't show up with search either.

    - Steven

 

 
Page 10 of 49 FirstFirst ... 8910111220 ... LastLast

Similar Threads

  1. how to get hidecategories an dual pricing to work
    By davidweaver88 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 4 Jun 2012, 03:35 PM
  2. anyone using HideCategories in 1.3.9d??
    By redheads in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 8 Jun 2010, 06:54 AM
  3. HideCategories problem...
    By ShadowAngel in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 10 Nov 2009, 10:17 PM
  4. hideCategories Module
    By marcusimages in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 25 Aug 2009, 06:31 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