Hello everyone,
I'm using Zen Cart for an online store and I need to display a different menu on certain pages. Of course the whole store's design is controlled by 1 file which is why I'm looking to use PHP for this.
My knowledge of PHP is basically 0 and I've tried to find a solution. I can find the code which will allow me to display code based on 1 page but not multiple pages. The URLS are dynamic e.g index.php?main_page=index&cPath=10 so I hope that's not a problem.
So for example:
If URL is /index.php?main_page=index&cPath=10, /index.php?main_page=index&cPath=8, index.php?main_page=index&cPath=4
display:
<ul>
<li><a href="link.php">Link 1</li>
<li><a href="link.php">Link 2</li>
<li><a href="link.php">Link 3</li>
</ul>
else display:
<ul>
<li><a href="link.php">Link 4</li>
<li><a href="link.php">Link 5</li>
<li><a href="link.php">Link 6</li>
</ul>
I'm also offering $10 via PayPal to anyone who can point me in the right direction
Thanks,
Jack
Last edited by zomex; 01-28-2011 at 08:35 AM..
|