On other view modes the add to cart form (field formatter commerce_cart_add_to_cart_form) does not work properly.

When there are several product variations, you can change the drop down to select the other variation.
Expected: Through AJAX the required fields are loaded.

Result on Content type View mode:

  • Default: The ajax loader appears, the price is changed, just as the other fields that are set to do so.
  • Full content: The ajax loader appears, the price is removed, and all the other product variation fields too.

It is strange that the returned ajax data is only being added on a default view mode.
My guess is that the problem will occur on other view modes, made through code and/or modules like Display Suite.

There are situations (I'm facing one) where the Add to cart form should work on more than one view mode, a Drupal own or custom made.

How can this be solved temporarily, and permanent in the next stable release?

Comments

thierry.beeckmans’s picture

Title: Add to cart on other view modes » Add to cart, AJAX issues on other view modes than default
rszrama’s picture

Version: 7.x-1.4 » 7.x-1.x-dev
Category: bug » support
Priority: Major » Normal
Status: Active » Postponed (maintainer needs more info)

Will need a set of clear instructions to duplicate the problem on a clean installation of Commerce Kickstart 1.x. I do all of my testing with that, and in my local sites I never have any trouble with field injection / AJAX updates in teasers. I suppose I haven't tried a separate configuration for the full display, but it may just be a more isolated issue than a general view mode incompatibility.

rszrama’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)