1

I'm creating a Drupal view and would like to reference the discount end date field created by the CiviDiscount extension, but the only thing associated with that extension that's available as a field is the "Default Discount Fee ID". Is there a way to access the other CiviDiscount fields from Drupal Views?

2

If you're on D7, you can use the Views CiviCRM Expose Tables module.

3
  • I'm running Drupal 7.59 and this module doesn't seem to have an effect. I've installed and enabled it, and when I click the configuration icon next to it, I'm redirected to the views admin page (admin/structure/views). There don't seem to be any new fields available in the views fields. Feb 27 '20 at 11:47
  • 1
    Have you done this: docs.civicrm.org/sysadmin/en/latest/integration/drupal/views/… since enabling the CiviDiscount module?
    – Aidan
    Feb 27 '20 at 17:25
  • I did have the databases set up properly but I hadn't cleared the caches. Clearing all Drupal cache's did the trick, thanks! Feb 27 '20 at 18:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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