Zen Cart Logo
Forums / Addon Sideboxes / How to detect if a specific sidebox is enabled/active

How to detect if a specific sidebox is enabled/active

Views: 3,749

Results 1 to 3 of 3
4 Dec 2022, 10:14 AM
#1
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

How to detect if a specific sidebox is enabled/active

Apart from a SQL query, as far as I can see there is no function to determine if a specific sidebox is active.
Or is there another way?

4 Dec 2022, 10:38 AM
#2
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,693
Plugin Contributions:
56

Re: How to detect if a specific sidebox is enabled/active

There's no built-in function if that's what you're asking.
If you want to see the logic for doing the SQL query to figure it out, see includes/modules/sideboxes/bootstrap/search_header.php.

7 Dec 2022, 10:13 AM
#3
torvista avatar

torvista

Totally Zenned

Join Date:
Aug 2007
Location:
Gijón, Asturias, Spain
Posts:
2,872
Plugin Contributions:
7

Re: How to detect if a specific sidebox is enabled/active

Exactly what I did thanks.