Step 1: Override the Minicart Template In To Your Theme
- Copy the original content.html file from the following path:
vendor/magento/module-checkout/view/frontend/web/template/minicart/content.html
- Paste it into your theme directory:
app/design/frontend/MyAgency/MyTheme/Magento_Checkout/web/template/minicart/content.html
Step 2: Edit the content.html File
Replace below code
<button type="button"
class="action primary checkout"
data-bind="click: proceedToCheckout, attr: { title: $t('Go to Checkout') }">
<span data-bind="i18n: 'Go to Checkout'"></span>
</button>
With this code
<button type="button"
class="action primary checkout"
data-bind="click: proceedToCheckout, attr: { title: $t('Checkout') }">
<span data-bind="i18n: 'Checkout'"></span>
</button>
Step 3: Run all magento command for deploy
php bin/magento s:s:d -f
php bin/magento c:f
Alternative Way
Step 1: Create or edit the en_US.csv or any other language file in your theme:
app/design/frontend/MyAgency/MyTheme/i18n/en_US.csv
Step 2: Add the following line to change the text:
"Go to Checkout","Checkout"
Step 3: Run all magento command for deploy
php bin/magento s:s:d -f
php bin/magento c:f