Answers.Body: <p>Solved: they have to be in the CiviCRM group 'Administrators' to see the price fields restricted by group.</p>
  
  <p>This wasn't documented as far as I noticed...but obvious in the code. Thanks extension creator! /civicrm/group/search?reset=1&amp;force=1&amp;context=smog&amp;gid=1</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-07-18T23:32:29.303Z
Answers.LastActivityDate: 2018-07-18T23:32:29.303Z
Answers.UserDisplayName: Zachary
Body: <p><a href="https://github.com/zengenuity/civicrm_groupprice/issues/7" rel="nofollow noreferrer">https://github.com/zengenuity/civicrm_groupprice/issues/7</a></p>
  
  <p>Does anyone have a creative work-around or fix for this? Basically, when we make a back-end registration, we want to see all price set fields/options, regardless of the group-based pricing. The staff member doing the registrations, as it currently stands, only sees price sets based on the groups they may or may not be a part of.</p>
  
  <p>CiviCRM 4.7.x (sigh:I know)</p>
  
  <p>It should be working, but isn't. The user has 'Administer CiviCRM' permission assigned to their role.</p>
  
  <pre><code> // If the user is an admin, just put a message next to the "hidden" options.
    // Otherwise, really hide them.
    if ($hide) {
      if ($isAdmin) {
        $amount[$amount_id]['options'][$priceOption['id']]['label'] .= '&lt;em class="civicrm-groupprice-admin-message"&gt; (visible by admin access)&lt;/em&gt;';
      }
      else {
        $removed = $amount[$amount_id]['options'][$priceOption['id']];
        unset($amount[$amount_id]['options'][$priceOption['id']]);
        if ($removed['is_default'] &amp;&amp; !empty($amount[$amount_id]['options'])) {
          $amount[$amount_id]['options'][reset(array_keys($amount[$amount_id]['options']))]['is_default'] = 1;
        }
      }
    }
  </code></pre>
  
Tags: <extension><groups><price-sets>
Title: Backend Registrations face group-based pricing (extension) selections
ThreadText: # Backend Registrations face group-based pricing (extension) selections
  
  (Asked by: username_0 on 2018-07-18)
  
  https://github.com/zengenuity/civicrm_groupprice/issues/7
  Does anyone have a creative work-around or fix for this? Basically, when we make a back-end registration, we want to see all price set fields/options, regardless of the group-based pricing. The staff member doing the registrations, as it currently stands, only sees price sets based on the groups they may or may not be a part of.
  CiviCRM 4.7.x (sigh:I know)
  It should be working, but isn't. The user has 'Administer CiviCRM' permission assigned to their role.
   // If the user is an admin, just put a message next to the "hidden" options.
    // Otherwise, really hide them.
    if ($hide) {
      if ($isAdmin) {
        $amount[$amount_id]['options'][$priceOption['id']]['label'] .= ' (visible by admin access)';
      }
      else {
        $removed = $amount[$amount_id]['options'][$priceOption['id']];
        unset($amount[$amount_id]['options'][$priceOption['id']]);
        if ($removed['is_default'] && !empty($amount[$amount_id]['options'])) {
          $amount[$amount_id]['options'][reset(array_keys($amount[$amount_id]['options']))]['is_default'] = 1;
        }
      }
    }
  
  **Tags:** extension, groups, price-sets
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2018-07-18. Score: 2 | Accepted answer
  
  Solved: they have to be in the CiviCRM group 'Administrators' to see the price fields restricted by group.
  
  This wasn't documented as far as I noticed...but obvious in the code. Thanks extension creator! /civicrm/group/search?reset=1&force=1&context=smog&gid=1
  
  
  ---
  
  