If the cart module is enabled we should allow it as the first step of the checkout process. We will need to add it block configuration page as a possible option checkbox and also add it to the list of page items sent to the theme function.

Comments

thehong’s picture

Assigned: Unassigned » thehong
rtdean93’s picture

I would love this feature, How can I display "Cart" as the first in the progression.

Seem like a customer may want to go back and remove/adjust quantities in the cart, but this cannot be done with this progress bar as is.

thehong’s picture

Assigned: thehong » jcisio

Reassign.

DeFr’s picture

Assigned: jcisio » Unassigned
Status: Active » Needs review
StatusFileSize
new4.86 KB

Attaching a proof of concept that should fulfill all the requirements.

From a functional point of view, this should do the trick. I'm not completely fond of having to hardcode the 'cart' path though, and the surgery done to the $items in commerce_checkout_progress_get_items to put the cart link in the first place feels a bit hackish. Suggestions on how to improve that would be more than welcome :-)

jcisio’s picture

Status: Needs review » Fixed

Reviewed, changed a bit in page order in the block settings, tested and committed. Thanks!

brunorios1’s picture

i tested --dev version and this feature not worked.

thanks.

jcisio’s picture

How did you test? Did you enable it in the checkout settings page?

brunorios1’s picture

Sorry! I didn't know that settings...

Now, the "cart" is the first step!

Thank you!

brunorios1’s picture

one problem:

the "payment" (Pagamento) step is not displayed when i'm on "/cart": http://i.minus.com/ixK7kE0ekpcGU.png
only when i'm on "/checkout": http://i.minus.com/iRIc5k1WKOsDA.png

thanks!

jcisio’s picture

Did it work before this change (the dev version without the patch, not the stable release which had the caching problem?

Do you have something in hook_commerce_checkout_page_info_alter()?

brunorios1’s picture

i think this is a question to another issue...
i made a test with the last snapshot before the stable release and it seems that isnt't related to this feature...

it seems that the payment step is only detected when the payment method is selected...

right?

thanks.

jcisio’s picture

It depends on which module you are using... File an issue in that module issue queue. If it is not fixed there, I think it is "works as designed".

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.