Yep, an ez-page sounds like a good idea, especially as with a small number of cats you probably won't be changing them often.
Yep, an ez-page sounds like a good idea, especially as with a small number of cats you probably won't be changing them often.
I kinda wanted to know the same thing.. I want to put a link to a page which displays all my Zen Cart categories on another webpage. (A link to "All Products" won't work for what I really want) I would prefer not to build a page on the other site with links to the individual category links adding new products would not dynamically update a page like that.. However, if there is a "categories page" that I could link to it would be dynamically updated if new product categories were added..
If you want a "categories page" that is not your home page, you will have to build it. This will take some good PHP skills, but the functionality could be replicated from the home page.
Actually, I got a display of all of my top cats on a regular index page (not my home page) by changing the address bar to read "&cPath=0":
http://www..../index.php?main_page=index&cPath=0
If you can make that call in a link, you may get what you want. I got the breadcrumbs saying "Home", but not my define_main_page formatting.
This kind of call may cause session problems or have other side effects - use with caution.
Browsing through the ZenCart contributions, I ran across this little guy:
http://www.zen-cart.com/index.php?ma...roducts_id=782
Now I had to download WinRar to even open the contribution because it is in a bz2 format (**sigh**). The file is a slightly jumbled mess with lots of strange characters in it. So after looking it over and doing some cleanup, I managed to make sense of the instructions and replacement code. I'm gonna give it a whirl on my test ZenCart.. If this works, I think this might get me EXACTLY what I want..
In case anyone else is interested, I am including my "cleansed" version of the contribution file. All I did was to get rid of the strange characters, and rearranged/edited the contribution instructions for clarity.
The question I have is this.. When I do this, am I correct in assuming that I should follow the override system when replacing the init_sanitize.php file??
Yellow1912 has recently posted a mod to Display all categories+products on one page which may be of interest to you.
I wrote this small contribution. Actually it was .tar.bz2 file, but zen-cart site removed second extension, you were reading .tar archive. I reuploaded it as .zip, it will appear after validation.
(Un)installation instructions should be read as they are. You need just copy/delete included files, you shouldn't have overrides/init_sanitize.php file before installing contribution, unless your zen-cart is heavily modified.
It can help you if you set "Default main page URL" to "index" and "Default main page URL parameters" to "cPath=0". But you'll need another zen-cart installation for this, it works only with index page... I'm not sure it is what you are looking for.
btw, bzip2 can be read with free 7-zip archiver.
Thanks!!I took a look at this too.. One of these guys is gonna do the trick.. Just gotta figure out which one will make mama happy!
======================================================
Thank you SOOOOO much for your response! I only have one small question.. I'm not sure what you mean by "But you'll need another zen-cart installation for this, it works only with index page..."![]()
Perfect!!That is exactly what I was looking for.. Thanks again for your response..
Looks like I now have two options that I am gonna evaluate and test.. I am thinking that your solution might be my better bet.. Dunno.. Gonna test both and see.. You are a doll to respond! Thanks again for your help!