Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Hide settings in admin


dstebo

Recommended Posts

Posted

How can I hide some titles in the admin / settings.

Just not to appear to the administrator, plus get on the table mysql running, for example: EXPECTED_PRODUCTS_SORT

No longer appear in the title or value configurations.

Posted

very easy, as you can see from the configuration table. Simply don't set the configuration_group_id and sort_order.

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Posted

How can I hide some titles in the admin / settings.

Just not to appear to the administrator, plus get on the table mysql running, for example: EXPECTED_PRODUCTS_SORT

No longer appear in the title or value configurations.

In order to remove Headings from the admin, go to admin/includes/column_left. and remove each line.

 

For example if you wanted to remove Catalog, remove this line :

require(DIR_WS_BOXES . 'catalog.php');

 

If you want to remove sub-headings from headings such as Catalog, go to admin/includes/boxes/ and pick a file from there.

 

For example if you navigate to admin/includes/boxes/catalog.php, you should see something similar to this.

<?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_CATALOG,
                    'link'  => tep_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'));

 if ($selected_box == 'catalog') {
   $contents[] = array('text'  => 
                                 '<a href="' . tep_href_link(FILENAME_CATEGORIES, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_CATEGORIES_PRODUCTS . '</a><br>' .

                                  '<a href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_REVIEWS . '</a>');
 }

 $box = new box;
 echo $box->menuBox($heading, $contents);
?>

 

This is my custom version for a client. If you wanted to remove reviews from the above, you would select.

'<a href="' . tep_href_link(FILENAME_REVIEWS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CATALOG_REVIEWS . '</a>'

and delete

 

N.B. Note that there is no full stop after '</a>' as there is with products. This is because it is the last one and the bracket is instead of the full stop.

 

Hope this helps.

Posted

Would equal what you said:

I want to make the link (My Stores) just hide some idens this table configuration.sql

Hide for example where the arrow is large (Expected Sort Fiels)

working longer leave this option on the table mysql

 

 

as the image below:

http://img255.imageshack.us/f/oscommercemystore.jpg/

 

 

boxes/configuration.php

<?php
/*
 $Id: configuration.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2007 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- configuration //-->
         <tr>
           <td>
<?php
 $heading = array();
 $contents = array();

 $heading[] = array('text'  => BOX_HEADING_CONFIGURATION,
                    'link'  => tep_href_link(FILENAME_CONFIGURATION, 'gID=1&selected_box=configuration'));

 if ($selected_box == 'configuration') {
   $cfg_groups = '<a href="' . tep_href_link(FILENAME_ADMINISTRATORS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CONFIGURATION_ADMINISTRATORS . '</a><br>';
   $configuration_groups_query = tep_db_query("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' order by sort_order");
   while ($configuration_groups = tep_db_fetch_array($configuration_groups_query)) {
     $cfg_groups .= '<a href="' . tep_href_link(FILENAME_CONFIGURATION, 'gID=' . $configuration_groups['cgID'], 'NONSSL') . '" class="menuBoxContentLink">' . $configuration_groups['cgTitle'] . '</a><br>';
   }

   $contents[] = array('text'  => $cfg_groups);
 }

 $box = new box;
 echo $box->menuBox($heading, $contents);
?>
           </td>
         </tr>
<!-- configuration_eof //-->

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...