1

I am trying to override vendor/magento/module-catalog/* ( * for whole module ).

I copied,

vendor/magento/module-catalog/view/templates/*

files under

app/design/frontend/Magento/Magento_Catalog/*

But I can't get any change of copied files. I don't have any custom theme.

How can I do this? I want to keep original files unchanged with my custom changes.

dukebody
  • 7,025
  • 3
  • 36
  • 61
Rixit Patel
  • 21
  • 1
  • 5

2 Answers2

4

You can override all files from vendor to our theme using below method.

Goto vendor\magento\module-catalog\view\frontend

Copy all folders and files to

app\design\frontend\{Your_vendor}\{Theme_name}\Magento_Catalog

Clear your cache using below command.

php bin/magento cache:clean

Refresh your page you can see files from your theme.

Shailesh Chauhan
  • 559
  • 3
  • 14
-1

You can use this as a theme.

app/design/frontend/Magento/Magento_Catalog/

First, you have to create your own theme containing folder like:

app/design/frontend/Mytheme/Theme/Magento_Catalog

And select the theme from admin.

Then this folder will override core module_catalog

Abhinav Kumar Singh
  • 2,325
  • 1
  • 10
  • 11