Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

PHP code in CMS pages
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

Is it possible to call PHP code from within CMS pages.I need to query the database and retrieve a list of products category-wise and display them on the page.
If not how do I go about creating an independent page and how do I display it on my store?

 
Magento Community Magento Community
Magento Community
Magento Community
 
the311guy
Sr. Member
 
Avatar
Total Posts:  120
Joined:  2007-10-18
 

Good question!  I am curious about this myself… Anone?

 
Magento Community Magento Community
Magento Community
Magento Community
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

I am trying to create two drop down boxes- one for brands and the other for products in that brand.
I will need to retrieve the data from the database and dynamically build the two drop downs.
This will involve Javascript, PHP and AJAX.

I have tried using PHP code in the CMS page but it doesnt work.
How can I go about doing this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

Helllloooo anybody???

 
Magento Community Magento Community
Magento Community
Magento Community
 
Moshe
Magento Team
 
Avatar
Total Posts:  1770
Joined:  2007-08-07
Los Angeles
 

See here: http://www.magentocommerce.com/aboards/viewthread/3698/P15/#t16791

 
Magento Community Magento Community
Magento Community
Magento Community
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

The link isn’t working Moshe, u sure it is the correct URL?

 
Magento Community Magento Community
Magento Community
Magento Community
 
adityak
Member
 
Total Posts:  63
Joined:  2008-02-10
India
 

Thanks Moshe I got the page.

 
Magento Community Magento Community
Magento Community
Magento Community
 
pankajk
Member
 
Avatar
Total Posts:  38
Joined:  2008-04-15
Mumbai -101, Maharastra, India
 
Moshe - 06 May 2008 09:40 PM

See here: http://www.magentocommerce.com/aboards/viewthread/3698/P15/#t16791

I’m posting here a correct link http://www.magentocommerce.com/boards/viewthread/3698/P15/#t16791
given by Aditya

Thank you Aditya

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