I've been trying to create an override for the addto.phtml file but it doesn't seem to be working.

I have this theme file:


With this in the file:

<div class="product-addto-links" data-role="add-to-links">
    <?php echo $block->getChildHtml(); ?>

    <a href="#amfinder.product.attributes" class="action">
        <span>View Compatibility</span>

I've run:

$ php bin/magento setup:upgrade
$ php bin/magento setup:di:compile
$ php bin/magento setup:static-content:deploy -f
$ php bin/magento cache:clean

Everything was a-ok but refreshing the product view page had no changes. What am I missing from my override?

  • Are you sure you are using the custom theme? (settings in the backoffice) – Arno Vande Cappelle Nov 20 '18 at 10:07
  • @ArnoVandeCappelle I am sure indeedy – treyBake Nov 20 '18 at 10:08
  • ^^flagging own question due to typo issue – treyBake Nov 20 '18 at 16:04
  • I'm voting to close this question as off-topic because of last comment ;) – sv3n Nov 20 '18 at 20:21

You have put your file in the wrong place.

Instead of:


you should put the file in:


Notice the templates in the file path.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.