简体   繁体   中英

How to add a custom PHP page in Magento?

Details

  • I already have the .phtml file
  • The actual path = /var/www/html/store/app/design/frontend/base/default/template/page/distributors.phtml

After doing some research I found that I will have to add this

{{block type="core/template" template="/var/www/html/store/app/design/frontend/base/default/template/page/distributors.phtml"}}

Where exactly are we suppose to add this ? I logged in to Mogento Admin. Go to CMS > Pages > Add New Page, and the I don't know what elses to do ?

Here is my distributors.phtml :

Download it

OR

View it

Can someone help shed the light on this ?

Thanks.

It really depends what you want to do. The snippet you posted should look like this:

{{block type="core/template" name="distributors" template="page/distributors.phtml"}}

And it should be placed in CMS page Content area.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM