Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / How do I lock out a catagory

How do I lock out a catagory

Views: 591

Results 1 to 10 of 10
14 Mar 2014, 1:49 AM
#1
tenthilltoys avatar

tenthilltoys

New Zenner

Join Date:
Aug 2013
Location:
Brisbane
Posts:
25
Plugin Contributions:
0

How do I lock out a catagory

I need to stop a particular category from displaying on the home page is there a way to accomplish this.

we have Educational pricing that should only be accessed through the categories side box.

thanks
pete

14 Mar 2014, 1:40 PM
#2
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: How do I lock out a catagory

You want them to stop displaying in the 'featured products' list on your index page?

16 Mar 2014, 6:52 AM
#3
tenthilltoys avatar

tenthilltoys

New Zenner

Join Date:
Aug 2013
Location:
Brisbane
Posts:
25
Plugin Contributions:
0

Re: How do I lock out a catagory

Just as a quick fix we disabled the new products on the main screen then only allow the featured products that we want to be displayed.

see how we go.

Thanks Twitchtoo

16 Mar 2014, 3:43 PM
#4
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: How do I lock out a catagory

Have you installed Twitch Wholesale or Twitch Restrict yet?

16 Mar 2014, 4:04 PM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How do I lock out a catagory

That is kinda over kill, don't you think?

You could just customize the modules using your templates and overrides directory for the center boxes, example for the Featured Centerbox:
/includes/modules/featured_products.php

and copy that to your templates and overrides directory:
/includes/modules/your_templates_dir/featured_products.php

[B]// bof: Do not display categories_id 10 on home page
if ($this_is_home_page) {
  $featured_products_query .= " and p.master_categories_id != 10";
}
// eof: Do not display categories_id 10 on home page
[/B]if ($featured_products_query != '') $featured_products = $db->ExecuteRandomMulti($featured_products_query, MAX_DISPLAY_SEARCH_RESULTS_FEATURED);

Just change 10 to your categories_id ...

See if you are able to adapt that for your other centerboxes or else give a yell ...

16 Mar 2014, 4:27 PM
#6
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: How do I lock out a catagory

It's important to recognize some stores can hide products with bandaide solutions/hacks or hide them at higher levels to ensure no one has access through search/google etc. Tenthilltoys has requested help with the Twitch modules in the past... therefore my question.

16 Mar 2014, 4:48 PM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How do I lock out a catagory

I guess I am failing to see how either of those add ons have any relevance to or control over
this issue ... :blink:

16 Mar 2014, 4:59 PM
#8
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: How do I lock out a catagory

If the Twitch modules were installed properly as tenthilltoys originally intended to do, there would be no issue, and no bandaides needed.

Waiting for the OP to respond is likely more effective than furthering this discussion at this point.

16 Mar 2014, 5:03 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: How do I lock out a catagory

Which add on do you think controls the centerboxes on the home page? Maybe I am just totally not seeing this in your addons ...

16 Mar 2014, 10:39 PM
#10
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: How do I lock out a catagory

tenthilltoys:

I need to stop a particular category from displaying on the home page is there a way to accomplish this.

we have Educational pricing that should only be accessed through the categories side box.

thanks
pete

Pete,

Ajeh's post (#5) would be the simplest and easiest way to go. I have the day off and could have a chat later today - check your PM.

Cheers / Frank (from up the road :smile: )