contrib icon indicating copy to clipboard operation
contrib copied to clipboard

Port request: Ubercart Webform Checkout Pane

Open djzwerg opened this issue 2 years ago • 6 comments

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.

djzwerg avatar Dec 18 '22 10:12 djzwerg

Port is in progress but needs help please: https://github.com/djzwerg/uc_webform_pane/issues/1.

djzwerg avatar Dec 18 '22 12:12 djzwerg

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 avatar Dec 18 '22 14:12 argiepiano

@argiepiano after a test against a production site the port doesn't work: https://github.com/djzwerg/uc_webform_pane/issues/2.

djzwerg avatar Dec 18 '22 20:12 djzwerg

@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

stpaultim avatar Sep 05 '24 03:09 stpaultim

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)

nattywebdev avatar Jan 31 '25 13:01 nattywebdev

I have not figured this out yet. But, I may be taking another look at it soon.

stpaultim avatar Mar 05 '25 06:03 stpaultim