So I added a "Pot Size" attribute to my plant product (1gallon,3gallon,5gallon sizes in a select dropdown list).
That field got added to the Variation (since its different per variation).
Now i can set each Variation's size for my 'Plant Product' type and dynamically on the product view, i can see the price/title change.

That field btw has "enable this field to function as an attribute on Add to Cart forms" checked for the "Attribute Field Settings" which Im guessing is what makes that dynamic price/title change work when changing the dropdown (aka the "Add to Cart" form).

I was wondering could that attribute also show up on the 'view cart' page (in the same nice way the 'product view' page changes the price/etc when you change the dropdown via AJAX [which is good for caching])?

Right now, I can only add the text via adding the "Pot Size" field on the "Product in Cart" view (on the page admin/commerce/config/product-variation-types/product-plant/display). But this only adds read-only text, and not a full dropdown-ajax functionality where you can update the size of the product you want straight from the View Cart page.
Is this possible without too much custom code (I just thought maybe someone has done this before so it would be built somehow into Drupal Commerce's Cart form)?

(Note: I'm using DrupalKickstart2)

Comments

armyofda12mnkeys created an issue. See original summary.

armyofda12mnkeys’s picture

Issue summary: View changes
armyofda12mnkeys’s picture

Issue summary: View changes
rszrama’s picture

Status: Active » Closed (outdated)

Make sure you're running the latest version of Drupal Commerce and then edit the cart View to use the Attribute field widgets field. For future support requests, please use https://drupal.stackexchange.com with the drupal-commerce tag. Thanks!

armyofda12mnkeys’s picture

Hey rszrama,
Thanks! For others searching for this, I added the field 'Attribute field widgets' to the View:
/admin/structure/views/view/commerce_cart_form/edit