Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 44
  1. #31
    Join Date
    Feb 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: how to add an additional sidebox

    Why is this so hard?
    I've been struggling for days trying to get this right.
    Why can't the admin section just have an option to "Create New Sidebox"?

  2. #32
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: how to add an additional sidebox

    Quote Originally Posted by bizshop1 View Post
    Why can't the admin section just have an option to "Create New Sidebox"?
    Because the Admin has no way of knowing what to put in the sidebox.

    Most additional sideboxes are used to add functionality that is new to Zen Cart, so for which there is no programming available.

    That's not always the case, extra category and banner boxes (for example) could re-use code already written. However this would need to be built into the structure of Zen Cart ... and has been for the forthcoming 2.0 release.
    Last edited by kuroi; 12 Mar 2009 at 10:19 AM.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #33
    Join Date
    Nov 2009
    Location
    London
    Posts
    64
    Plugin Contributions
    0

    Default Re: how to add an additional sidebox

    Quote Originally Posted by Ajeh View Post
    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:
    PHP Code:
    INSERT INTO configuration (configuration_titleconfiguration_keyconfiguration_valueconfiguration_descriptionconfiguration_group_idsort_orderuse_functionset_functiondate_addedVALUES ('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()); 
    Then, you customize the new files for banners_box3 to use the changes described above ...

    Example:

    SHOW_BANNERS_GROUP_SET8

    would become:

    SHOW_BANNERS_GROUP_SET10

    TEXT_BANNER_BOX2

    would become:
    TEXT_BANNER_BOX3

    PHP Code:
        require($template->get_template_dir('tpl_banner_box2.php',DIR_WS_TEMPLATE$current_page_base,'sideboxes'). '/tpl_banner_box2.php'); 
    would become:
    PHP Code:
        require($template->get_template_dir('tpl_banner_box3.php',DIR_WS_TEMPLATE$current_page_base,'sideboxes'). '/tpl_banner_box3.php'); 
    etc. etc. etc.
    ...
    So If I understand correctly I create a php file (called my_banner_box3) containing:

    <?php
    define('SHOW_BANNERS_GROUP_SET10', 'MY BANNER NAME');
    ?>

    OR I can change the codei n "tpl_banner_box3.php"

    and enter the code into the "Configuration table"?

    PHP Code:
    INSERT INTO configuration (configuration_titleconfiguration_keyconfiguration_valueconfiguration_descriptionconfiguration_group_idsort_orderuse_functionset_functiondate_addedVALUES ('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()); 
    Where can I find the Configuration table?

  4. #34
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: how to add an additional sidebox

    The INSERT statement can be run in either Tools ... Install SQL Patches ... or you can run it in your phpMyAdmin for your database ...
    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!

  5. #35
    Join Date
    Nov 2009
    Location
    London
    Posts
    64
    Plugin Contributions
    0

    Default Re: how to add an additional sidebox

    Quote Originally Posted by Ajeh View Post
    The INSERT statement can be run in either Tools ... Install SQL Patches ... or you can run it in your phpMyAdmin for your database ...
    Thanks I show save this thread and try it out soon.

    Since posting the previous message I've come across a number of sidebox add ons. Could I use any one of those and customise it how I like?

  6. #36
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: how to add an additional sidebox

    You can use an add on or make your own based on an existing sidebox as a model to make your new one ...
    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!

  7. #37
    Join Date
    Dec 2009
    Posts
    3
    Plugin Contributions
    0

    Default Re: how to add an additional sidebox

    O.k I'm struggling to understand this. I'm completely new to php, zen cart and coding in general.

    All I want to do is add an additional 2 sideboxes to my main page below the existing two. I've followed the guide up untill;

    Quote Originally Posted by Ajeh View Post

    <?php
    define('SHOW_BANNERS_GROUP_SET10', 'BANNER GROUP NAMES GO HERE');
    ?>

    This would load at the same time as the english.php file ...

    ...
    And now I'm lost. I don't know where that code should go or what my banner group name is. Could someone break it down a bit more for us beginners please?

    I'm using Zen Cart 1.3.8a and my site is http://www.nmfurniture.com/

  8. #38
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: how to add an additional sidebox

    I am confused ...

    You say you want to add new "sideboxes" ...

    You show code for "banners" ...

    What is it that you "really" want to do here ...
    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!

  9. #39
    Join Date
    Dec 2008
    Posts
    158
    Plugin Contributions
    0

    Default Re: how to add an additional sidebox

    I'm curious. What would you put in an additional categories box? Wouldn't it just repeat what was already in your categories box??
    www.alepia.ch Alepia suisse

  10. #40
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: how to add an additional sidebox

    You can do anything you like ...

    Some want multiple categories sidebox with different conditions on them for when the show or don't show or what categories they include or don't include ...

    They would not be "idenitcal" to one another ... they would have differences to them that make them unique in some manner ...
    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!

 

 
Page 4 of 5 FirstFirst ... 2345 LastLast

Similar Threads

  1. v139h How to add additional images
    By Chicky in forum General Questions
    Replies: 3
    Last Post: 20 Mar 2013, 12:28 PM
  2. Add Additional Page Link to Information Sidebox?
    By shinyo21 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 12 Aug 2010, 03:22 PM
  3. How can I define additional pages for the Sidebox?
    By memerson in forum Basic Configuration
    Replies: 4
    Last Post: 9 Feb 2009, 06:49 PM
  4. Add additional sidebox banners
    By hockley in forum Basic Configuration
    Replies: 2
    Last Post: 19 Jan 2009, 05:25 PM
  5. Add An Additional Sidebox
    By CarolinaReefs in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Aug 2006, 07:28 AM

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