devilgrins Posted October 24, 2007 Share Posted October 24, 2007 hi... i am using two modules together.. and its currently.. working BUT.... in \admin\inlcues\boxes\customers.php there is code which i have to edit but also add a line of code which sppc uses.. SPPC has t this way... i installed this mod first.. // BOF Separate Pricing Per Customer if ($selected_box == 'customers') { $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a><br>' . '<a href="' . tep_href_link('customers_groups.php', '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_GROUPS . '</a>'); // EOF Separate Pricing Per Customer } with Admin Access levels i have to edit that part of code to with this: if ($selected_box == 'customers') { // BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 1 // reverse comments to below lines to disable // $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' . // '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>'); $contents[] = array('text' => tep_admin_files_boxes(FILENAME_CUSTOMERS, BOX_CUSTOMERS_CUSTOMERS) . tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS)); // EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 1 } now looking carfeully.. SPPC hs this extra code which i need to add : '<a href="' . tep_href_link('customers_groups.php', '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_GROUPS . '</a>'); and i have tired with the code below.. if ($selected_box == 'customers') { // BOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 1 // reverse comments to below lines to disable // $contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_CUSTOMERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_CUSTOMERS . '</a><br>' . // '<a href="' . tep_href_link(FILENAME_ORDERS, '', 'NONSSL') . '" class="menuBoxContentLink">' . BOX_CUSTOMERS_ORDERS . '</a>'); $contents[] = array('text' => tep_admin_files_boxes(FILENAME_CUSTOMERS, BOX_CUSTOMERS_CUSTOMERS) . tep_admin_files_boxes(FILENAME_CUSTOMERS_GROUPS, BOX_CUSTOMERS_CUSTOMERS) . tep_admin_files_boxes(FILENAME_ORDERS, BOX_CUSTOMERS_ORDERS)); // EOE Access with Level Account (v. 2.2a) for the Admin Area of osCommerce (MS2) 1 of 1 } BUT though i do not get any errors.. I cannot view the file in admin to edit customers_groups.. can anyone advise why?.. or have any other suggstions i could try to get this available.. thanks for your time peoples!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.