So Select box/Radio buttons/etc with PHP enabled would show list resulting from the code.

You could think of it as an extension of the "Text field" display so the user has input, but outside of the normal Attribute from Options functionality.

Thanks!

Comments

TR’s picture

Version: 6.x-2.x-dev » 7.x-3.x-dev

New features should go into 7.x-3.x first.

TR’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

In the absence of a use case or concrete proposal for how this should/could work, I'm closing this issue.

In general, a lot can be done with JavaScript on the front end, to control which attributes/options are shown for instance. A lot can also be done on the back end by altering the product using the various hooks we have defined.

Allowing PHP code to be attached is, in general, a security hazard, which is why the PHP module has been removed from core Drupal.