When you enable the profile fields to show on the checkout form you need to also make the fields visible on the default Drupal user registration form. How can we just show the profile fields on the uc checkout form, but not on the user reg form.

Also is it possible to add CCK fields to the checkout form via this module?

Comments

ezra-g’s picture

Title: Profile fields appear on both checkout form and user reg form » Show profile fields in uc_signup attendee info form but not user registration
Category: support » feature

I've updated the title to clarify the form I think you're referring to. This is not currently possible, but would be a good feature request.

> Also is it possible to add CCK fields to the checkout form via this module?
CCK fields cannot be added to the Ubercart checkout form.

ezra-g’s picture

Status: Active » Needs review
StatusFileSize
new5.68 KB

Here's a first stab at this feature. uc_signup attendee information form visibility defaults to the current setting for "visible in user registration form" for non admin-only fields.

ezra-g’s picture

This patch would be improved by unsetting empty fieldsets in the event that all fields of a particular category are set to not display on the uc_signup attendee information form.

ezra-g’s picture

Also, I added a $form_state parameter that we're not using.

ezra-g’s picture

StatusFileSize
new6.54 KB

Here's a revised patch that unsets empty fieldsets when no fields in a category are configured to display on the attendee information form.

It also switches the per-field visibility settings to work on the profile field fid rather than the name, so that settings stay the same when field names change, and to make it easier to clear old values out of the uc_signup_field_visibility variable when a profile field is deleted from a site.

I plan to commit this shortly.

ezra-g’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.