Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Making Information Sidebox a Dropdown

    hat sidebox is a ul - unordered list
    Seethe code for a dropdown
    http://www.alistapart.com/articles/horizdropdowns/
    Zen-Venom Get Bitten

  2. #2
    Join Date
    Feb 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: Making Information Sidebox a Dropdown

    Could you give me a little more information on how to incorporate that into the zen cart? I've spent hours working on it and still can't seem to figure it out. I can't seem to get the actual Information sidebox heading to drop down. Thanks!

  3. #3
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Making Information Sidebox a Dropdown

    Use the override system - see tutorials

    Make/retain originals in all cases

    This will be a hardcoded alteration

    Edit your tpl_information.php file adding your ul list constructed as the link I provided explains

    Original file code:
    Code:
    <?php
    /**
     * Side Box Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_information.php 2982 2006-02-07 07:56:41Z birdbrain $
     */
      $content = '';
      $content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
      $content .= "\n" . '<ul style="margin: 0; padding: 0; list-style-type: none;">' . "\n";
      for ($i=0; $i<sizeof($information); $i++) {
        $content .= '<li>' . $information[$i] . '</li>' . "\n";
      }
      $content .= '</ul>' .  "\n";
      $content .= '</div>';
    ?>
    Change to:
    Code:
    <?php
    /**
     * Side Box Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2005 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: tpl_information.php 2982 2006-02-07 07:56:41Z birdbrain $
     */
      YOUR UL CODE
    ?>
    Zen-Venom Get Bitten

 

 

Similar Threads

  1. Replies: 2
    Last Post: 6 Mar 2013, 08:07 AM
  2. Replies: 0
    Last Post: 8 Dec 2011, 09:31 PM
  3. Making new information pages
    By Ivanna in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 28 Jul 2011, 08:37 PM
  4. Making a state default in the dropdown
    By delia in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 21 May 2008, 10:14 PM
  5. Making Products Model a dropdown option in admin
    By Joseph M in forum General Questions
    Replies: 4
    Last Post: 2 May 2008, 05:27 PM

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