0

With Magento2 template path hints turned on, (custom theme inherited from luma) I have been able to locate that want to change some of the code in the area where the downloadable links are shown on a product details page of a downloadable item.

(really I want to hide that on the storefront, and only show to customer on purchase) - as it's pushing the add to cart button way down the page, etc.

From the template path hints, I have located I want to edit:

vendor > magento > module-downloadable > frontend > templates > catalog > product > links.phtml

so I thought that I could create a similar structure in my:

app > design > frontend > MYVENDOR > MYTHEME 

directory, but it's not working, no matter what, so I am thinking I am not necessarily doing it right. If I could see an example of how to accomplish this, I should be able to figure out others on my own :) thanks in advance for any help!

2 Answers 2

1

Solution that worked is for the path to be:

app > design > frontend > MYVENDOR > MYTHEME > Magento_Downloadable > templates > catalog > product > links.phtml

so no "frontend" subfolder UNDER the theme...

0

You should copy file to app > design > frontend > MYVENDOR > MYTHEME > Magento_Downloadable > frontend > templates > catalog > product > links.phtml and modify it

3
  • thank you for the reply, I did that exactly, flushed everything caches, etc. didnt work... after doing that and turning template path hints back on, it shows: public_html/vendor/magento/module-downloadable/view/frontend/templates/catalog/product/links.phtml
    – M21
    Commented Feb 2, 2016 at 15:54
  • Did you switch to new theme, delete pub/static/frontend/* and run bin/magento setup:static-content:deploy:?
    – goral
    Commented Feb 3, 2016 at 17:25
  • I did and now I found the solution, answer below:
    – M21
    Commented Feb 4, 2016 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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