- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Change the text in the 'Next' button at the bottom of step one of checkout
I need to change the text in the 'Next' button at the bottom of step one of the checkout, i.e. the button that takes the user to the payment step.
Button currently says 'Next', I want to change it to 'Proceed To Payment'.
I have tried using hints to direct me to the file, but they don't take me to the correct file. I have tried updating the language file in i18n, but still no change.
Magento version is 2.3.4.
Any suggestions greatly appreciated!
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Change the text in the 'Next' button at the bottom of step one of checkout
Have you cleared static content and run again static content deploy command. Just after flush Magento cache.
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Change the text in the 'Next' button at the bottom of step one of checkout
Yes, already flushed cache and redeployed static content.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Change the text in the 'Next' button at the bottom of step one of checkout
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Change the text in the 'Next' button at the bottom of step one of checkout
I can't find the file to change the code, this is what I need help with.
I can see that it is this code:
<span data-bind="i18n: 'Next’”>Next</span>
but I can't find where that is.
I have updated language csc in i8ln, but this hasn't made a difference.
Turning on hints doesn't help.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Change the text in the 'Next' button at the bottom of step one of checkout
Here you can find file:
vendor/magento/module-checkout/view/frontend/web/template/shipping.html
but this should be done by i18n/en_US.csv. Try to delete static content and run store level once like:
php bin/magento setup:static-content:deploy en_US
https://www.manishmittal.com/
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Change the text in the 'Next' button at the bottom of step one of checkout
Thanks Manish.
I originally tried modifying that file to
<button data-role="opc-continue" type="submit" class="button action continue primary"> <span translate="'Continue To Payment'" /> </button>
but it didn't make a difference.
I updated i18n/en_US.csv and I also created a i18n/en_GB.csv file, but the change has not been reflected on the front end.
I ran both
php -d memory_limit=1024M bin/magento setup:static-content:deploy en_GB -f;
and
php -d memory_limit=1024M bin/magento setup:static-content:deploy en_US -f;
flushed caches, and browser cache, but still change is not on frontend.
If the above file is the file to change, and changes have been made in language csv too, then the question is how can we force the change on the frontend?