Is there a way to have an option (or options) checked by default under a particular attribute?

Thanks for any help!

Comments

m.roma created an issue. See original summary.

TR’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

Please be more specific and describe exactly what you're trying to do. This could mean several things and I don't feel like trying to guess and answer them all.

m.roma’s picture

Have a checkbox option for an attribute already "checked" when they arrive on a given product's page. i.e. default setting set to TRUE.

TR’s picture

Status: Postponed (maintainer needs more info) » Fixed

No, there's no way to do that built into Ubercart. By default all checkbox options will be unchecked on a product page. It should be simple to do what you want for a particular product via hook_form_alter(), and that will work if you only have a small number of products that need this, but for a large number of products all having a different set of checks you would have to patch uc_attribute. This might be a good new feature.

Status: Fixed » Closed (fixed)

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