Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use better function for 'Continue Shopping' url #8341

Merged
merged 8 commits into from
Feb 3, 2017

Conversation

dmatthew
Copy link

@dmatthew dmatthew commented Jan 31, 2017

The 'Continue Shopping' url on the checkout success page is basically hard-coded to be the store base url because it just calls Magento\Framework\View\Element\AbstractBlock::getUrl() without any parameters. This means a developer would need to override the module-checkout/view/frontend/templates/success.phtml file completely in order to change the url.

I propose creating a getContinueUrl function in the Magento\Checkout\Block\Onepage\Success class that would allow developers a way to change the url for the 'Continue Shopping' button by using a plugin instead of needing to override a core template, which is bad practice. The Magento_Multishipping module already does this for its success page 'Continue Shopping' url, so I mostly copied that implementation.

@magento-cicd2
Copy link
Contributor

magento-cicd2 commented Jan 31, 2017

CLA assistant check
All committers have signed the CLA.

@dmatthew dmatthew closed this Jan 31, 2017
@dmatthew dmatthew reopened this Jan 31, 2017
@okorshenko
Copy link
Contributor

Thank you for contribution to Magento 2 project!

@okorshenko okorshenko added this to the February 2017 milestone Feb 11, 2017
magento-devops-reposync-svc pushed a commit that referenced this pull request Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants