Hi,
I would like to add additional "have you seen" sideboxes. I am using these to advertise products on my site. Could someone point me in the direction of how to add an extra box, I'm sure it can be done but not sure how.
Thanks
Pete
Hi,
I would like to add additional "have you seen" sideboxes. I am using these to advertise products on my site. Could someone point me in the direction of how to add an extra box, I'm sure it can be done but not sure how.
Thanks
Pete
FORUM:
# a public meeting or assembly for open discussion
#An online discussion group, where participants with common interests can exchange open messages.
# a public facility to meet for open discussion
Wouldnt this be great if someone would reply?
Wouldn't this be great if some of us had a few cups of coffee while others waited patiently for a response or perhaps searched the forums while waiting ...
Or perhaps posting what kind of additional sideboxes you need and their purpose ...
More details result in better responses ... as does a tad more patiences ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Not to sound picky...but that post was from more than a yr ago.
I already found the information I was looking for regarding it.
Its just there are usually two types of posts on these boards, people who ask for information thats easily found, or complex questions that entitles too much messing around with code. Not sure how you guys have the patience....
If you found the information that is being requested ... then perhaps you could post the link to it to be helpful ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
The banner sideboxes can be cloned once you understand a bit more about what they do ...
For example ...
are clones of:/includes/modules/sideboxes/banner_box2.php
/includes/templates/template_default/sideboxes/tpl_banner_box2.php
The differences that allow them to pull their own set of Banner Group banners are the settings in the Layout Settings where the Banner Groups are defined for each banner sidebox .../includes/modules/sideboxes/banner_box.php
/includes/templates/template_default/sideboxes/tpl_banner_box.php
The banners_box uses the Banner Group names defined in:
SHOW_BANNERS_GROUP_SET7
To know which banners to look for to be displayed ...
The banners_box2 uses the Banner Group names defined in:
SHOW_BANNERS_GROUP_SET8
To know which banners to look for to be displayed ...
To clone this for another banner sidebox, you would need to create copies for the 2 files for banners_box2 and modify them by copying to:
This would require its own unique setting for which Banner Groups to include, such as creating a new configuration_key for:/includes/modules/sideboxes/banners_box3.php
/includes/templates/template_default/sideboxes/tpl_banner_box3.php
SHOW_BANNERS_GROUP_SET10
Why use SHOW_BANNERS_GROUP_SET10? Because it is unique and has not been used before ...
This could be added to the configuration table like the other Banner Group definitions, or it could be added to a define statement ...
Extra define statements are best added to the directory in a file that has meaning to you such as:
/includes/languages/english/extra_definitions/my_banners_box3.php
<?php
define('SHOW_BANNERS_GROUP_SET10', 'BANNER GROUP NAMES GO HERE');
?>
This would load at the same time as the english.php file ...
Or, you could add it to the configuration table in the same way all the other settings are added:
Then, you customize the new files for banners_box3 to use the changes described above ...PHP Code:
INSERT INTO configuration (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, use_function, set_function, date_added) VALUES ('Banner Display Groups - Side Box banner_box3', 'SHOW_BANNERS_GROUP_SET10', 'SideBox-Banners', 'The Banner Display Groups can be from 1 Banner Group or Multiple Banner Groups<br /><br />For Multiple Banner Groups enter the Banner Group Name separated by a colon <strong>:</strong><br /><br />Example: Wide-Banners:SideBox-Banners<br />Default Group is SideBox-Banners<br /><br />What Banner Group(s) do you want to use in the Side Box - banner_box3?<br />Leave blank for none', '19', '73', '', '', now());
Example:
SHOW_BANNERS_GROUP_SET8
would become:
SHOW_BANNERS_GROUP_SET10
TEXT_BANNER_BOX2
would become:
TEXT_BANNER_BOX3
would become:PHP Code:
require($template->get_template_dir('tpl_banner_box2.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_banner_box2.php');
etc. etc. etc.PHP Code:
require($template->get_template_dir('tpl_banner_box3.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_banner_box3.php');
NOTE: The new defines can also be included in your new file:
/includes/languages/english/extra_definitions/my_banners_box3.php
to keep everything related together ...
Hope this can help give you a start on making new banner boxes ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Thanks for the info Ajeh...Did I miss something, what were the previous messages about? Kinda lost track with what was going on there for a sec
Pete
FORUM:
# a public meeting or assembly for open discussion
#An online discussion group, where participants with common interests can exchange open messages.
# a public facility to meet for open discussion
Lack of coffee ... hope this worked for you ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
How do I create an additional categories sidebox. I don't know if I am to follow the instructions provided here about additional sideboxes. Thanks!
same concept applies.
.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole
Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.
Bookmarks