Question

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.

  1. The gap between the previous block content and next content (either margin or padding)
  2. The title said "More Choices" need to change with "You May Also Like?"

I attached this screenshot here:

Cross Sell Product on Product Detail Page

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top