Solved

Embed a Joomla created menu into another php script

Posted on 2012-04-10
2
401 Views
Last Modified: 2012-04-16
Hello.  I am working on a site that has a separate Joomla CMS and a PHP based ecommerce system.  I would like to be able to somehow display the Joomla top or main menu within the shopping cart system template. I am trying to create a single consistent menu across the two platforms and would really love to be able to use Joomla to manage the menu rather than hard coding it into the ecommerce system.   Is there a technique that would allow this to happen?

I am aware of the wrapper functions and the different eCommerce systems available for Joomla, but I want to utilize this legacy system because it is highly modified and tuned to the owners particular business. I don't want to have to create a custom component or module that would embed the ecommerce platform into the CMS and possibly break compatibility with other ecommerce addons.  Thanks for the help.
0
Comment
Question by:FourMat
2 Comments
 
LVL 14

Accepted Solution

by:
Scott Madeira earned 500 total points
ID: 37832350
My suggestion would be to figure out how Joomla stores the menu data in the MySQL database.  Once you figure out how the data is stored you should be able to write some PHP code to extract the data from the database and format it the same way in your eCommerce system.  

In your ecommerce system you would use your code to build the menu.  

This should always keep the two menus in sync as long as you make all menu changes through Joomla.
0
 

Author Closing Comment

by:FourMat
ID: 37851151
Thanks for the poke in the right direction.
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, we will look at our content management system as a whole, to get an idea of how we will start to manage these content items.
In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question