Results 1 to 9 of 9
  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,623
    Plugin Contributions
    123

    Default Accessibility Page

    Zen Cart 2.0.0 will come with a page built in for you to provide a site accessibility statement, like your terms, privacy and shipping information pages.

    Users of older versions may create this page with the Accessibility Page plugin.

    https://www.zen-cart.com/downloads.php?do=file&id=2383
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,108
    Plugin Contributions
    11

    Default Re: Accessibility Page

    This will need some tweaking as the sql for the define status seems to be missing and the includes/modules/sideboxes/information.php with the code for Conditions being
    Code:
    if (DEFINE_CONDITIONS_STATUS <= 1) {    $information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
    }
    and for ACCESSIBILITY
    Code:
    $information[] = '<a href="' . zen_href_link(FILENAME_ACCESSIBILITY) . '">' . BOX_INFORMATION_ACCESSIBILITY . '</a>';
    This causes problems with bootstrap sites especially as the formatting is lost with it not properly defined.

    At least that's what I am seeing.

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,108
    Plugin Contributions
    11

    Default Re: Accessibility Page

    Testing shows the same problem on 2.0.0 with bootstrap

    Works on 2.0.0 with responsive classic
    Last edited by dbltoe; 3 Mar 2024 at 01:53 AM.

  4. #4
    Join Date
    Aug 2013
    Location
    Perth, WA, AU
    Posts
    167
    Plugin Contributions
    1

    Default Re: Accessibility Page

    On a tangent - I've never looked at my site with lynx before, impressed, it's not bad!

  5. #5
    Join Date
    Apr 2006
    Location
    Ohio
    Posts
    6,162
    Plugin Contributions
    0

    Default Re: Accessibility Page

    You will have to run the following sql statement into your database for the ability to turn off/on Accessibility under the side box labeled Information for your web site:
    This is controlled by your admin panel/ configuration/ Define Page Status
    Code:
    INSERT INTO `configuration` (`configuration_id`, `configuration_title`, `configuration_key`, `configuration_value`, `configuration_description`, `configuration_group_id`, `sort_order`, `last_modified`, `date_added`, `use_function`, `set_function`, `val_function`) VALUES (NULL, 'Define Accessibility', 'DEFINE_ACCESSIBILITY_STATUS', '1', 'Enable the Defined Accessibility Link/Text?<br />0= Link ON, Define Text OFF<br />1= Link ON, Define Text ON<br />2= Link OFF, Define Text ON<br />3= Link OFF, Define Text OFF', '25', '88', NULL, '0001-01-01 00:00:00.000000', NULL, 'zen_cfg_select_option(array(\'0\', \'1\', \'2\', \'3\'),', NULL);
    includes/modules/sideboxes/bootstrap/information.php
    Code:
    if (DEFINE_ACCESSIBILITY_STATUS <= 1) {
        $information[] = '<a class="' . $information_classes . '" href="' . 
        zen_href_link(FILENAME_ACCESSIBILITY) . '">' . BOX_INFORMATION_ACCESSIBILITY . '</a>';
    }
    includes/templates/bootstrap/templates/tpl_accessibility_default.php
    Code:
    <?php
    /**
     * Page Template
     *
     * BOOTSTRAP v3.6.0
     *
     * @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_accessibility_default.php 3464 2006-04-19 00:07:26Z ajeh $
     */
    ?>
    <div class="centerColumn" id="accessibility">
    <h1 id="accessibilityDefaultHeading"><?php echo HEADING_TITLE; ?></h1>
    <?php
    if (DEFINE_ACCESSIBILITY_STATUS === '1' || DEFINE_ACCESSIBILITY_STATUS === '2') {
    ?>
    <div id="accessibilityDefaultMainContent" class="content">
    <?php
    /**
     * require the html_define for the accessibility page
     */
      require $define_page;
    ?>
    </div>
    <?php
    }
    ?>
        <div id="privacyDefault-btn-toolbar" class="btn-toolbar my-3" role="toolbar">
            <?php echo zca_back_link(); ?>
        </div>
    </div>
    Mark
    Hare Do

  6. #6
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,623
    Plugin Contributions
    123

    Default Re: Accessibility Page

    The newer pages (brands, about us and now this page) were not intended to have DEFINE constants.
    You can add one if you wish but it's not built in to the 2.0.0 SQL.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,623
    Plugin Contributions
    123

    Default Re: Accessibility Page

    > This causes problems with bootstrap sites especially as the formatting is lost with it not properly defined.

    With Bootstrap, update the override file includes/modules/sideboxes/bootstrap/information.php to include the new file with bootstrap styling.

    $information[] = '<a '<a class="' . $information_classes . '" href="' . zen_href_link(FILENAME_ACCESSIBILITY) . '">' . BOX_INFORMATION_ACCESSIBILITY . '</a>';

    At some point this will be built into the Bootstrap template. A PR has been submitted: https://github.com/lat9/ZCA-Bootstrap-Template/pull/325
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #8
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,623
    Plugin Contributions
    123

    Default Re: Accessibility Page

    There is another change required: update your sitemap template (includes/templates/template_default/templates/tpl_site_map_default.php or the override file if you have overridden). Add below the display of BOX_INFORMATION_CONDITIONS:

    <li><?php echo '<a href="' . zen_href_link(FILENAME_ACCESSIBILITY) . '">' . BOX_INFORMATION_ACCESSIBILITY . '</a>'; ?></li>
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  9. #9
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,108
    Plugin Contributions
    11

    Default Re: Accessibility Page

    Thanx for the info and fixes.

    IMHO, despite my focus on all things being accessibility compliant, I still feel this define page should have the same options as the others. If for no other reason than to disable editing once it is defined.

 

 

Similar Threads

  1. v157 Admin accessibility
    By swguy in forum Addon Admin Tools
    Replies: 11
    Last Post: 13 Oct 2021, 08:09 PM
  2. Accessibility issues
    By pazdar in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 17 Sep 2020, 07:50 PM

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