Changing Title of Crossell's and Gaps Products Block
-
30-03-2021 - |
質問
I implemented the extension development from Crosssell Products on Product Page with Magento 2 on Magento 2.2.0. It is currently running, but there are several modifications needed.
- The gap between the previous block content and next content (either margin or padding)
- The title said "More Choices" need to change with "You May Also Like?"
I attached this screenshot here:
I'm using Unero Theme for additional information (I put the XML block in the Theme frontend of Magento Catalog -> catalog_product_view.xml ) and I still in an early stage of understanding Magento codes and devs. Thanks before.
解決
To change the title of More Choices You have to override the
/vendor/magento/module-catalog/view/frontend/templates/product/list/items.phtml
to in your theme
/app/design/frontend/[Theme_Vendor]/[Theme]/Magento_Catalog/templates/product/list/items.phtml
In this file replace find the below line of code
$title = __('More Choices:');
And replace it with
$title = __('You May Also Like?');
Hope this will work for you.