Zen Cart Logo
Forums / Addon Sideboxes / How to add a new sidebox from scratch?

How to add a new sidebox from scratch?

Locked

Views: 1,212

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
22 Aug 2008, 2:21 AM
#1
jamesandjennie avatar

jamesandjennie

New Zenner

Join Date:
Jun 2008
Posts:
10
Plugin Contributions:
0

How to add a new sidebox from scratch?

We are trying to add a new side box for a customization for a client. I want to make sure we do it right instead of just hacking it.

Here is what I can gather:

add a file in /includes/modules/sideboxes/custom_sidebox_name.php
This is the actual meat that has the functioning code.

and then add a file in /includes/templates/template_default/sideboxes/tpl_custom_sidebox_name.php
This is the code for how the box looks- it looks like this is actually required in the preceding file?

I'm not worried about a defining language file because the entire site is exclusively English.

Am I even in the right ballpark?

Also, what actually makes the file appear in the sidebox controller so it can be turned on and controlled in the admin?

Thank you in advance for any help!
:)
Jenn

22 Aug 2008, 2:27 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,650
Plugin Contributions:
0

Re: How to add a new sidebox from scratch?

Am I even in the right ballpark?

Also, what actually makes the file appear in the sidebox controller so it can be turned on and controlled in the admin?

You're hitting a home run.

The sideboxes are auto-magic and as long as you have the right files in the right places, The Zen Cart Admin will find them.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

22 Aug 2008, 11:57 AM
#3
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How to add a new sidebox from scratch?

You could also try the Blank Sidebox mod which puts everything where it belongs. Works great for me.

22 Aug 2008, 12:48 PM
#4
jamesandjennie avatar

jamesandjennie

New Zenner

Join Date:
Jun 2008
Posts:
10
Plugin Contributions:
0

Re: How to add a new sidebox from scratch?

Thank you so much, guys! Zencart can be a little overwhelming just to dive in and find everything- but I'm slowly finding my way. :)