Try the Demo

Magento Forum

   
Insert Variable into CMS Page
 
LeeOShea
Jr. Member
 
Total Posts:  2
Joined:  2010-11-04
 

I’m a newb and I’m trying to insert a couple of inventory variables into a CMS page.

e.g.
ProductNo1 - Only X items left
ProductNo2 - Only X items left
and so on…

I’ve seen examples of trying to put these directly into php pages but I can’t work out how I can put them into CMS pages.

Any ideas????

Lee

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagePsycho
Moderator
 
Avatar
Total Posts:  1684
Joined:  2009-06-23
 

If you want to include dynamic script in CMS page then you can simply use {{block}} directive as:

{{block type="core/template" template="path/to/your.phtml"}}
And you can code in your.phtml

 Signature 

MagePsycho - Magento Freelancer
Free Modules: jQuery LightBoxes | Frontend Links Manager & more…
Commercial Modules: jQuery Sliders Pro | Custom Login Redirect Pro | Store Restrction Pro & more...

Follow me on Twitter @ magepsycho

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top