When determining whether the user has access to previous checkout pages this module uses a simple 'every page before this page is allowed' algorithm rather than the more complex algorithm used in commerce_checkout_page_access which checks that there is a 'previous' or 'next' button chain between this page and the requested page. A patch to change
if ($visited){
to
if (commerce_checkout_access_page($page_id, $order)){
in theme_commerce_checkout_progress_list would use the commerce function. At the moment I override the theme function to get this functionality as I use a complex checkout process.
Comment | File | Size | Author |
---|---|---|---|
#6 | 1699610-follow-up.patch | 883 bytes | jcisio |
#2 | 1699610-commerce_checkout_page_access.patch | 1.13 KB | jcisio |
Comments
Comment #1
nvahalik CreditAttribution: nvahalik at Centarro commentedComment #2
jcisio CreditAttribution: jcisio at Axess Open Web Services for ARTE G.E.I.E. commentedComment #4
jcisio CreditAttribution: jcisio at Axess Open Web Services commentedCommitted and pushed #2.
Comment #6
jcisio CreditAttribution: jcisio at Axess Open Web Services commentedThe last patch has a problem with the cart page. This patch fixes it.
Comment #7
jcisio CreditAttribution: jcisio at Axess Open Web Services commentedCommitted and pushed.