hello - im having some trouble setting up this module.

i have created a webform with a select field (Additional Info) and a hidden field (Order ID).

i have selected my webform in the 'Webform Checkout Panes' settings page.
however, in the 'Order ID Field: ' dropdown i cannot select the webform's hidden field - it says 'hidden fields not found!'.

please can you help shed some light on where have i gone wrong?

thanks
cnp

Comments

CGSS-CyberGeek’s picture

I am also having the same issues.

CGSS-CyberGeek’s picture

@cnp: In regards to the issue we both were having - well, I have found the bug along with also patched it within my version.

The problem is in the following file: uc_webform_pane.module on line: 155 (approximately) in function uc_webform_pane_admin();

The following piece of code is causing the problem:

      if($node->webformcomponents) {
        foreach($node->webformcomponents as $cid => $field) {
          if($field['type'] == 'hidden') {
            $fields[$cid] = $field['name'];  
          }        
        }        
      }

Replace the piece of code that is posted above with the following:

    if( TRUE == isset($node->webform) && TRUE == $node->webform ) {
		if( TRUE == isset($node->webform['components']) ) {
			foreach( $node->webform['components'] as $cid => $field ) {
				if( 'hidden' == $field['type'] ) {
					$fields[$cid] = $field['name'];
				}
			}
		}
	}

Anyways, I have not found any other issues ... yet

arski’s picture

Hi,

it suffices to replace $node->webformcomponents with $node->webform['components'] in the code.

I wonder.. was the D5 really working at some point? I had to fix a lot of bugs when porting to D6 so maybe someone would be interested to backport the D6 version(s) back to D5 in the future? I know I don't have the time or real desire to do that :x

Thanks,
Martin

arski’s picture

Assigned: chris_getdepth » Unassigned
Status: Active » Postponed

Switching off as the 5.x version is currently discontinued. Feel free to contact me if you want to take it up again.

arski’s picture

Status: Postponed » Closed (won't fix)