Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    932
    Plugin Contributions
    9

    Default Coupon Admin hidden from Navigation Bar in Admin

    I'm currently using a mod that replaces ("extends ot_coupon") and needs me to disable the coupon module "ot_coupon". However when I do so, the coupon admin is removed from the menu in the admin panel. However, I can still access the admin module by directly accessing it via the URL. I checked my database and I can still see it listed in the table with the column "display_on_menu" on. But it's still not listed however.

    Is there something I'm missing?

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,879
    Plugin Contributions
    96

    Default Re: Coupon Admin hidden from Navigation Bar in Admin

    Not missing anything, except perhaps a slight update to your menu processing. Look in /YOUR_ADMIN/includes/functions/admin_access.php (a core file, BTW). Look for the function zen_get_admin_pages and, towards the bottom of its definition, this code fragment:
    Code:
      // don't show Coupon Admin unless installed
      if (!defined('MODULE_ORDER_TOTAL_COUPON_STATUS') || MODULE_ORDER_TOTAL_COUPON_STATUS != 'true') {
        unset ($retVal['gv']['couponAdmin']);
      }
    Assuming that your new coupon-extension order total uses a constant named MODULE_ORDER_TOTAL_COUPON_EXTENDED_STATUS to indicate that it's installed, make the following changes:
    Code:
     // don't show Coupon Admin unless installed
      if ( !(defined('MODULE_ORDER_TOTAL_COUPON_STATUS') && MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') || !(defined('MODULE_ORDER_TOTAL_COUPON_EXTENDED_STATUS') && MODULE_ORDER_TOTAL_COUPON_EXTENDED_STATUS == 'true') ) {
        unset ($retVal['gv']['couponAdmin']);
      }

  3. #3
    Join Date
    Jun 2007
    Location
    Bronx, New York, United States
    Posts
    932
    Plugin Contributions
    9

    Default Re: Coupon Admin hidden from Navigation Bar in Admin

    Thanks for the change lat9. I'll assume that this isn't something that can be overwritten by using extra_functions?

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,879
    Plugin Contributions
    96

    Default Re: Coupon Admin hidden from Navigation Bar in Admin

    retched, I don't see an override opportunity. That function is called and its output processed directly in /includes/header_navigation.php.

 

 

Similar Threads

  1. Too much in the Navigation Bar - Exodus from Themeforest
    By robbin21973 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Jan 2015, 08:07 PM
  2. Remove buttons from the navigation bar
    By fuchschen in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 29 Nov 2010, 06:18 AM
  3. Admin menu bar disappeared after resetting Admin password
    By stxmona in forum General Questions
    Replies: 7
    Last Post: 10 Sep 2009, 01:16 AM
  4. Coupon Admin disappeared from GC / Coupons menu
    By Diego Vieira in forum General Questions
    Replies: 2
    Last Post: 3 May 2009, 02:03 AM

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