Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
User experience
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Mar 2017 at 16:18 UTC
Updated:
14 Oct 2020 at 14:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
wim leersWhy optional? Why not enabled by default? This is a huge usability win.
Comment #3
bojanz commentedIt was off by default in the D7 module, and my previous checkout research (looking at major sites) didn't show it to be common.
I'd be happy to re-investigate and flip that boolean, once we have the actual code for it :)
Comment #4
bojanz commentedComment #5
finneComment #6
finnePR: https://github.com/drupalcommerce/commerce/pull/686
Comment #7
luksakThe pull request doesn't apply anymore.
Comment #8
mglamanI'd like to postpone this until #2869818: Checkout progress block does not set current step appropriately when 'go back' link is used is merged. This provides a utility method for testing the currently highlighted step, and adds test coverage to the fact they even work.
Comment #9
mglaman#2869818: Checkout progress block does not set current step appropriately when 'go back' link is used landed. This should be quick to implement and test.
Comment #10
luksakDoes this only need a reroll or do we need to implement it diffrently?
Comment #11
mglamanIt needs a re-roll and tests. The issue I referenced in #9 provides test coverage for the block, which we were missing. So it'll be easier to work on this, now.
Comment #12
luksakok, i'll give it a try tomorrow.
Comment #13
luksakI re-rolled the pull request here and improved/fixed the tests:
https://github.com/drupalcommerce/commerce/pull/732
Comment #14
luksakRe-rolling.
Comment #16
flocondetoilePatch #14 rerolled for commerce 2.5
Comment #18
flocondetoileComment #20
flocondetoileComment #21
mglamanComment #22
getekid commentedHello, I can confirm the patch is working as expected.
Would it make sense to expose the link to the
stepsarray? This way one could use it in a custom template e.g. to assign classes to the link tag.Thanks a lot for your work
Comment #23
heddnComment #24
heddnComment #25
flocondetoilePatch rerolled for commerce 2.14
Comment #27
flocondetoilePatch rerolled and updated with new behavior address book
Comment #28
jnrfred commentedPatch tested and works
Comment #29
flocondetoileComment #30
michiellucas commentedI created this block for my project but used a different approach.
You are checking on if ($index <= $current_step_index) { but you can use the same logic as CheckoutController::formPage
Comment #31
sumi commentedTested the patch and checkbox for enabling this functionality doesn’t do anything. Checkbox is unchecked by default but steps in the progress block are links. No matter if the checkbox is checked or not steps are links.
Comment #32
sumi commentedComment #33
andypostRe-roll for fresh codebase
Comment #34
andypostThere's no link in markup, means test needs more work
Comment #35
andypostFix re-roll for tests
Comment #36
mglamanComment #37
sumi commentedStill checkbox "Display checkout progress breadcrumb as links" is not doing anything. It is unchecked by default but steps are links, it doesn't matter what is set on that checkbox.
Comment #38
mglamanThis doesn't respect
display_checkout_progress_breadcrumb_linksWhy did this have to be changed to raw?
Comment #39
simgui8 commented# 35 works for me, but the checkbox ain't
Comment #40
simgui8 commentedHere is a rerolled patch,
+
The raw filter has been removed
and I have added a display_checkout_progress_breadcrumb_links configuration verification.
Hope it address 1. and 2.
Comment #41
simgui8 commentedComment #42
sumi commentedTested the patch and links are now respecting the backend configuration and are working as expected. There is only one thing and that is once user finishes the checkout and is on "Complete" step, previous steps are links but at that point you can't actually go back to "Review" or "Order information" steps so when you click on the links your page just reloads. It would probably be better that once you are on "Complete" step other steps are no longer links
Comment #43
mglamanPer #42, this needs work.
This should check if the current step is the last step as well.
Comment #44
simgui8 commentedThis one check if current step is 'complete'
Comment #45
simgui8 commentedComment #46
sumi commentedTested the patch and all works as expected.
Comment #47
mglaman💪Thanks!
Per #46 this is +1, will commit later today.
Comment #49
mglamanCommitted 🥳! Thanks all.