Solved

Embed a Joomla created menu into another php script

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

756 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