following this guide to display alternative prices for certain roles: http://jamestombs.co.uk/2012-09-14/drupal-commerce-different-prices-different-customer-groups

But for some reason I don't get any suggestions or dropdown in the Data Selector field.

I've tried changing jquery versions which doesn't correct the error.

Any other ideas? I've added a detailed description of my approach below the screenshot.

It's a d7 commerce site, all modules is the latest versions


Step by step approach to making the pricing rule

  1. created 'retailer' role
  2. added a new field of the type 'price' called field_ppd (ppd = price per dealer)
  3. created a 'retail price' rule at admin/commerce/config/product-pricing/rules/add
  4. added a 'Entity has field' condition
  5. And it's in the condition config I'm stuck since the Data Selector field doesn't auto-suggest when I start typing

closed as off-topic by Pierre.Vriens, Shawn Conn, DRUPWAY, Neograph734, kiamlaluno Feb 4 '17 at 18:15

  • This question does not appear to be about Drupal within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1
    Hello and welcome. Please, do not restrict yourself to posting link. It will not stay valid indefinitely. Content there may change. Or maybe you misinterpreted it? So please tell us what you did. with your words. Also, please include any errors shown in JavaScript console of your browser. If your browser does not have one, use Google Chrome (built-in), Firefox (with Firebug), or, if you prefer some other brand, find out how to get it. – Mołot Aug 22 '14 at 21:17
  • Thanks Sir, a link isn't possible since my site is only available locally on my own machine. The console har one error: "Uncaught TypeError: undefined is not a function" – Kristoffer Rom Aug 22 '14 at 21:27
  • I meant - don't just link to a guide, tell us how you used that guide. You know, so we could tell if you made any mistake using it. Sorry for my lack of precision. – Mołot Aug 22 '14 at 21:31
  • No worries, I'm grateful for your time. I've updated my initial question with my approach and a screenshot showing where I'm stuck. Do you think this is sufficient? – Kristoffer Rom Aug 22 '14 at 21:41
  • I hope so. Looks solid, +1 from me. – Mołot Aug 22 '14 at 21:45

It is a bug in the rules module. The issue is discussed HERE.
You can either apply the patch in the issue or use the latest dev version of the jquery update module which allows you to select the drupal default version of jquery for the backend.


Thanks @2pha. To elaborate:

  • I disabled jQuery Update, cleared the cache, checked that Rules were working (they were), reenabled jQuery Update. At this step Rules was out of order again, with 1-5 as admin and 1.8 as default. I tried changing to 1.7 as admin version, still no result. I then tried new settings in the CDN field. Having 1.7 as admin with jQuery as CDN works:)
  • My answer not acceptable? using the dev version of jquery update and setting the admin jquery to 'Default (provided by drupal)' will allow you to run any jquery update version and still have drupals default jquery in the backend. I recently needed this when using the bootstrap theme. – 2pha Sep 18 '14 at 11:59
  • 1
    totally, sorry, marked your answer now. This is with Zen theme btw. Just marked my own elaboration as I thought this was more precise, but you should definitely get the credit for showing me in the right direction – Kristoffer Rom Sep 18 '14 at 12:30

Not the answer you're looking for? Browse other questions tagged or ask your own question.