skip to Main Content

I want to reorder the product details page.

I am changing in this file -
checkout/view/frontend/layout/catalog_product_view.xml
but my changes are not reflecting.

I have tried to clear the cache also and reindex command.

3

Answers


  1. You have to run

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

    Should see

    Generated code and dependency injection configuration successfully.
    
    Login or Signup to reply.
  2. You might need to clear generation file and then clear cache:

    rm -rf ./generated/*
    
    Login or Signup to reply.
  3. Try this:

    Create catalog_product_view.xml like below

    app/code/Vendor/Module/view/frontend/layout/catalog_product_view.xml

    Or:

    app/design/frontend/Vendor/Module/Magento_Catalog/layout/catalog_product_view.xml

    And clean cache! Goodluck!

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search