Hi! Thanks for this fantastic module! But one feature would be really nice: Conditions! Like i know from webform, if i choose Yes in select list, then show Textfield XY. Is that possible in future? Would be great.

Thanks!

Comments

FNGR’s picture

Status: Active » Needs review

okay it seems like i found an solution: http://drupal.org/project/field-conditional-state

does that really fine.

FNGR’s picture

Status: Needs review » Needs work

okay, this works not that well. now i get an error:

- got a select list, if customer chooses YES then show textfield, customer fills in and put product in his cart = everything works fine
- if customer chooses NO, textfield is not shown (its not a rquired field!) = customer is adding to cart = that works but it also shows this error message:

Notice: Undefined offset: 0 in commerce_pricing_attributes_field_attach_submit() (Line 1239 von /sites/all/modules/commerce_pricing_attributes/commerce_pricing_attributes.module).

i'm not a programmer, so somebody else got an idea?

nchar’s picture

Status: Needs work » Fixed

Fixed the warning and committed the changes to the latest working branch. Please check if it solves your issue. Thanks for your feedback Matthias!

FNGR’s picture

Thank you Nick! I will test it and give you feedback!

FNGR’s picture

Everything works great! Thank you very much!

nchar’s picture

I mark this issue as fixed.

Status: Fixed » Closed (fixed)

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

TravisJohnston’s picture

Status: Closed (fixed) » Active

I wanted to open this one instead of opening another. I am curious if this will work for me.

I am creating a Commerce site for Courses. There is a Register By date field and if it is passed, there needs to be a $75 Late Fee applied. I have created the Late Fee option set and the Register By field.

Though I need the Late Fee field to not show or be applied until the date the content editor has entered has passed.