If I create a custom shopping cart form view or shopping cart block view, I can't save the selection to my order type.
Steps to reproduce:
1. Duplicate Cart form (commerce_cart_form) view.
2. Duplicate Cart block (commerce_cart_block) view.
3. Edit an order type. (/admin/commerce/config/order-types/{order type}/edit)
4. Select new cart form view in "Shopping cart form view".
5. Select new cart block view in "Shopping cart block view".
6. Press "Save".
7. Edit the order type again.
"Shopping cart form view" and "Shopping cart block view" still show the original default values, not the values we just selected.
Comment | File | Size | Author |
---|---|---|---|
#2 | commerce_cart_cart_views_2882858-2.patch | 1023 bytes | franksj |
Comments
Comment #2
franksj CreditAttribution: franksj at Breakthrough Technologies, LLC commentedIn
commerce_cart_order_type_form_submit()
, there is a todo comment regarding this:// @todo open follow up and fix cart_form_view, commerce_cart_block saving.
Attached patch saves settings for both cart_form_view and cart_block_view.
Comment #3
franksj CreditAttribution: franksj at Breakthrough Technologies, LLC commentedChange status to Needs review.
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedRetitling.
Comment #6
bojanz CreditAttribution: bojanz at Centarro commentedThanks! Crazy that this @todo survived for so long. I've cleaned up the code a bit to resemble commerce_checkout_order_type_form_submit(), and committed.