contrib
contrib copied to clipboard
Port request: Ubercart Webform Checkout Pane
Name of the module, theme, or layout Ubercart Webform Checkout Pane
Link to the drupal.org module, theme, or layout https://www.drupal.org/project/uc_webform_pane
Link to an issue in the drupal.org queue asking the Drupal community if anyone is working on a Backdrop port of this project https://www.drupal.org/project/uc_webform_pane/issues/3327883
Not the same like Extra Fields Checkout Pane but with similar use this small module would be very helpful to extend the checkout panes.
Port is in progress but needs help please: https://github.com/djzwerg/uc_webform_pane/issues/1.
I'd say that this instance of eval(), while not pretty, it's safe. It's used to create a dynamic function, since the pane callback needs to get the nid of the webform. At quick sight, there isn't an easy way to pass the nid to the callback, so this code dynamically creates a custom callback function for each webform that calls another function with hard-coded nid in the list of arguments. Since this dynamic function is created using eval with known parameters and no user input, it's safe to use in my view.
@argiepiano after a test against a production site the port doesn't work: https://github.com/djzwerg/uc_webform_pane/issues/2.
@djzwerg - Did you ever have luck with this module? Are you still interested?
I'm thinking I MIGHT be interested. https://forum.backdropcms.org/forum/ubercart
Has this port made any progress @stpaultim @djzwerg ? Looks like I'm going to need similar functionality for a site that wants to take donations but with additional info to be provided by the customer, such as:
- In memory (checkbox)
- If In memory is checked, display further inputs: name (textfield), relationship (textfield or select list), more info (textarea)
- Gift Aid (checkbox)
I have not figured this out yet. But, I may be taking another look at it soon.