I have defined a product and added an attribute (text field, required).

On the product page, if I leave the attribute field empty, and click on 'Add to cart', the field border becomes red (which is ok), but no error message is displayed.

If I click again on 'Add to cart' after having filled the attribute field, I'm correctly redirected to the cart page, but the error message 'fieldname is required' eventually appears.

Note: I searched the forum and found a similar problem http://drupal.org/node/803784 that has been solved, don't know if it can be of any help...

Comments

TR’s picture

This seems to be a problem with the Bartik theme, which is the default theme for Drupal 7. It operates properly it you switch to Garland. Let me investigate further, this may already be a known problem with Bartik. If not, I'll add some information and move the problem over there.

zezile’s picture

I am using the Busy theme.
I switched to Garland but I got the very same problem. and with Bartik too.

MPeli’s picture

I am using http://drupal.org/project/zen and I am having the same problem. Martin.

longwave’s picture

Status: Active » Fixed

Calling drupal_get_form() inside a theme function causes the form to be processed too late for the errors to be shown. Fix committed: http://drupalcode.org/project/ubercart.git/commit/1b93199

Status: Fixed » Closed (fixed)

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