1

I am editing file:

/app/code/Magento/Checkout/view/frontend/templates/success.phtml

but Nothing changed. What should I do?

Also I installed a theme which not have a success.phtml. that means enforce me to edit the core file(the path above). Is there is a solution to edit in the theme?

0

1 Answer 1

3

you have to override file into your theme, After overriding file you can change your custom code using theme file,

app/design/frontend/{Packagename}/{themename}/Magento_Checkout/templates/success.phtml
12
  • I copied the file success.phtml from /app/code/Magento/Checkout/view/frontend/templates/success.phtml and added into the path you mentioned and edited it, but nothing changed. is there is something wrong?
    – Jsparo30
    Commented May 18, 2017 at 12:44
  • Did you clear or flush cache ? Commented May 18, 2017 at 12:48
  • You have to just clear cache and check. Commented May 18, 2017 at 12:53
  • yes, I cleared the cache.
    – Jsparo30
    Commented May 18, 2017 at 12:53
  • 1
    I did the same thing and it worked at my end. app/design/frontend/Vendor/themename/Magento_Checkout/templates/success.phtml
    – Sejal Shah
    Commented May 18, 2017 at 13:04

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.