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
Comment #1
thierry.beeckmans commentedComment #2
rszrama commentedWill 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.
Comment #3
rszrama commented