Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Checkout
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2016 at 13:50 UTC
Updated:
12 May 2016 at 20:04 UTC
Jump to comment: Most recent
Comments
Comment #2
bojanz commentedAgreed. We need to skip the entire foreach for panes that aren't visible.
Comment #4
bojanz commentedDone.
agoradesign argued that certain hidden panes should have a chance to show a review.
That would be an unplanned feature that I haven't seen on other sites, so let's leave that to a followup.
Comment #5
agoradesign commentedadded the parent issue
Comment #6
bojanz commentedMerging #2715311: Introduce isPaneSummaryVisible() to allow checkout panes hide its pane, but show its summary into this issue, since this is where the discussion started.
After rediscussing with agoradesign, rszrama and mglaman, we agreed that the pane summaries should by default be shown even when the pane is hidden. The contact information pane is a good example of this.
We definitely want to hide the Edit link if $pane->isVisible() is FALSE, like the original patch did.
What remains is deciding whether summary visibility should be controlled via a new method (isPaneSummaryVisible()) or the return value of buildSummary().
Comment #7
bojanz commentedComment #8
agoradesign commentedI've also thought about the visibility thing in the meantime, after I've proposed the patch in #2715311: Introduce isPaneSummaryVisible() to allow checkout panes hide its pane, but show its summary.
I believe:
Comment #10
bojanz commentedI consulted with mglaman and rszrama and we concluded that the implicit approach is simpler.
So I've basically committed #1 + a comment on the buildPaneSummary method.