X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Where to edit menu_content (https://forum.x-cart.com/showthread.php?t=16731)

Debra 09-20-2005 11:15 AM

Where to edit menu_content
 
Hey I can't seem to figure out how to edit the content inside my categorie menu. I went to menu.tpl but that does not seem to be it. I want to be able to edit the individual tables inside of the menu box other than just editing the text, I think it has something to do with menu_content, but I cannot find this anywhere.

rightminddesigns 09-20-2005 11:38 AM

I don't know if this would help, but have you tried editing skin1/customer/categories.tpl?

Good luck! :)

Debra 09-20-2005 12:17 PM

Yes, I went to categories.tpl and I don't think it's what I need. It includes the file menu.tpl. I might be able to edit it from there but I am just not sure how to because the menu content is not physically in menu.tpl, rather it seems to call a string {$menu_content}...and I don't know what to edit. What I want to do is put a line in my categories menu between each category, seems simple enough, don't know why I can't figure it out.
Thanks for your reply though! Let me know if you can think of anything else.

rightminddesigns 09-20-2005 12:33 PM

I just tried this out on the site I am working on and it worked, editing in this section:

Code:

{section name=cat_num loop=$categories}
<FONT class="CategoriesList">{$categories[cat_num].category}</FONT>

{/section}
{else} {section name=cat_num loop=$subcategories}
<FONT class="CategoriesList">{$subcategories[cat_num].category}</FONT>

{/section}


The HTML for the formatting of the links is there. For example, to add an image between each main category, you would add the the <img> tag (I put some extra blank space around to make it easier to see):
Code:

{section name=cat_num loop=$categories}
<FONT class="CategoriesList">{$categories[cat_num].category}</FONT>



[img]{$ImagesDir}/myimage.gif[/img]


{/section}
{else} {section name=cat_num loop=$subcategories}
<FONT class="CategoriesList">{$subcategories[cat_num].category}</FONT>

{/section}


Let me know if it works. :)

Debra 09-20-2005 12:42 PM

It works PERFECT! I was looking in the complete wrong direction!
Thanks!!!


All times are GMT -8. The time now is 07:17 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.