Solved

Embed a Joomla created menu into another php script

Posted on 2012-04-10
2
398 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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

803 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